| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import { loginStore } from '@/stores'
- import http from '@/services/http'
- import tradeServer from '@/services/socket/trade'
- const { userId } = loginStore.$mapGetters()
- /**
- * 查询收货地址信息
- */
- export function queryUserReceiveInfo(params: Model.UserReceiveInfoReq) {
- params.userid = userId.value
- return http.commonRequest<Model.UserReceiveInfoRsp[]>({
- url: '/Qhj/QueryUserReceiveInfo',
- params,
- })
- }
- /**
- * 查询发票信息
- */
- export function queryWrUserReceiptInfo(params: Model.WrUserReceiptInfoReq) {
- params.userid = userId.value
- return http.commonRequest<Model.WrUserReceiptInfoRsp[]>({
- url: '/WrTrade2/QueryWrUserReceiptInfo',
- params,
- })
- }
- /**
- * 新增修改收货地址
- */
- export function userReceiveInfo(params: Proto.UserReceiveInfoReq) {
- return tradeServer.sendMessage<Proto.UserReceiveInfoRsp>({
- params,
- reqName: 'UserReceiveInfoReq',
- rspName: 'UserReceiveInfoRsp'
- })
- }
- /**
- * 删除收货地址
- */
- export function delUserReceiveInfo(params: Proto.DelUserReceiveInfoReq) {
- return tradeServer.sendMessage<Proto.DelUserReceiveInfoRsp>({
- params,
- reqName: 'DelUserReceiveInfoReq',
- rspName: 'DelUserReceiveInfoRsp'
- })
- }
- /**
- * 设置默认收货地址
- */
- export function userReceiveIsDefault(params: Proto.UserReceiveIsDefaultReq) {
- return tradeServer.sendMessage<Proto.UserReceiveIsDefaultRsp>({
- params,
- reqName: 'UserReceiveIsDefaultReq',
- rspName: 'UserReceiveIsDefaultRsp'
- })
- }
- /**
- * 新增修改用户发票信息
- */
- export function userReceiptInfo(params: Proto.UserReceiptInfoReq) {
- return tradeServer.sendMessage<Proto.UserReceiptInfoRsp>({
- params,
- reqName: 'UserReceiptInfoReq',
- rspName: 'UserReceiptInfoRsp'
- })
- }
- /**
- * 删除用户发票信息
- */
- export function delUserReceiptInfo(params: Proto.DelUserReceiptInfoReq) {
- return tradeServer.sendMessage<Proto.DelUserReceiptInfoRsp>({
- params,
- reqName: 'DelUserReceiptInfoReq',
- rspName: 'DelUserReceiptInfoRsp'
- })
- }
- /**
- * 交易商头像
- */
- export function dealerHead(params: Proto.DealerHeadReq) {
- return tradeServer.sendMessage<Proto.DealerHeadRsp>({
- params,
- reqName: 'DealerHeadReq',
- rspName: 'DealerHeadRsp'
- })
- }
- /**
- * 更新用户头像
- */
- export function updateUserHeadUrl(data: Model.UserHeadUrlReq) {
- return http.commonRequest({
- method: 'post',
- url: '/User/UpdateUserHeadUrl',
- data,
- })
- }
|