🎈 perf(api): v1的接口全面换成v2

This commit is contained in:
xuan 2022-11-09 16:34:48 +08:00
parent 6ed3f7456b
commit 3f74d4500d
18 changed files with 79 additions and 79 deletions

View File

@ -6,7 +6,7 @@ import { useRequest } from "@/use/useHttp"
*/ */
export const GetAddressListApi = () => { export const GetAddressListApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/district/list`, url: `/v2/mp/district/list`,
method: "get", method: "get",
}) })
} }
@ -14,35 +14,35 @@ export const GetAddressListApi = () => {
//获取客户地址 //获取客户地址
export const mppurchaseraddresslist = () => { export const mppurchaseraddresslist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser/address/list`, url: `/v2/mp/purchaser/address/list`,
method: "get", method: "get",
}) })
} }
//新增客户地址 //新增客户地址
export const mppurchaseraddress = () => { export const mppurchaseraddress = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser/address`, url: `/v2/mp/purchaser/address`,
method: "post", method: "post",
}) })
} }
//获取编辑地址信息 //获取编辑地址信息
export const mppurchaseraddressget = () => { export const mppurchaseraddressget = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser/address`, url: `/v2/mp/purchaser/address`,
method: "get", method: "get",
}) })
} }
//编辑收货地址信息 //编辑收货地址信息
export const mppurchaseraddressput = () => { export const mppurchaseraddressput = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser/address`, url: `/v2/mp/purchaser/address`,
method: "put", method: "put",
}) })
} }
//删除收货地址信息 //删除收货地址信息
export const mppurchaseraddressdelect = () => { export const mppurchaseraddressdelect = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser/address`, url: `/v2/mp/purchaser/address`,
method: "delete", method: "delete",
}) })
} }

View File

@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/ */
export const GetSignApi = () => { export const GetSignApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/cdn/token`, url: `/v2/mp/cdn/token`,
method: 'get', method: 'get',
}) })
} }

View File

@ -3,35 +3,35 @@ import { useRequest } from '@/use/useHttp'
//获取客户信息 //获取客户信息
export const mppurchaser = () => { export const mppurchaser = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser`, url: `/v2/mp/purchaser`,
method: "get", method: "get",
}) })
} }
//新建客户 //新建客户
export const mppurchaserpost = () => { export const mppurchaserpost = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser`, url: `/v2/mp/purchaser`,
method: "post", method: "post",
}) })
} }
//编辑客户 //编辑客户
export const mppurchaserput = () => { export const mppurchaserput = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser`, url: `/v2/mp/purchaser`,
method: "put", method: "put",
}) })
} }
//获取标签列表 //获取标签列表
export const mppurchaserlist = () => { export const mppurchaserlist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser/label/list`, url: `/v2/mp/purchaser/label/list`,
method: "get", method: "get",
}) })
} }
//保存标签 //保存标签
export const mppurchaserlabeladd = () => { export const mppurchaserlabeladd = () => {
return useRequest({ return useRequest({
url: `/v1/mp/purchaser/label/add`, url: `/v2/mp/purchaser/label/add`,
method: "post", method: "post",
}) })
} }

View File

@ -2,35 +2,35 @@ import { useRequest } from '@/use/useHttp'
//列表 //列表
export const DeliverNoticeOrderList = () => { export const DeliverNoticeOrderList = () => {
return useRequest({ return useRequest({
url: `/v1/mp/deliveryNoticeOrder/list`, url: `/v2/mp/deliveryNoticeOrder/list`,
method: 'get', method: 'get',
}) })
} }
//发货详情 //发货详情
export const DeliverNoticeOrder = () => { export const DeliverNoticeOrder = () => {
return useRequest({ return useRequest({
url: `/v1/mp/deliveryNoticeOrder`, url: `/v2/mp/deliveryNoticeOrder`,
method: 'get', method: 'get',
}) })
} }
//发货附件上传 //发货附件上传
export const DeliveryNoticeOrderUpload = () => { export const DeliveryNoticeOrderUpload = () => {
return useRequest({ return useRequest({
url: `/v1/mp/deliveryNoticeOrder/upload`, url: `/v2/mp/deliveryNoticeOrder/upload`,
method: 'put', method: 'put',
}) })
} }
//审核发货单 //审核发货单
export const DeliveryNoticeOrderAudit = () => { export const DeliveryNoticeOrderAudit = () => {
return useRequest({ return useRequest({
url: `/v1/mp/deliveryNoticeOrder/audit`, url: `/v2/mp/deliveryNoticeOrder/audit`,
method: 'put', method: 'put',
}) })
} }
//采购退货的拒收接口 //采购退货的拒收接口
export const DeliveryNoticeOrderRejection = () => { export const DeliveryNoticeOrderRejection = () => {
return useRequest({ return useRequest({
url: `/v1/mp/deliveryNoticeOrder/rejection`, url: `/v2/mp/deliveryNoticeOrder/rejection`,
method: 'put', method: 'put',
}) })
} }
@ -38,14 +38,14 @@ export const DeliveryNoticeOrderRejection = () => {
//类型枚举 //类型枚举
export const EnumDeliveryNoticeTypeList = () => { export const EnumDeliveryNoticeTypeList = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/deliveryNoticeType/list`, url: `/v2/mp/enum/deliveryNoticeType/list`,
method: 'get', method: 'get',
}) })
} }
//tabs枚举 //tabs枚举
export const EnumSaleorderStatus = () => { export const EnumSaleorderStatus = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/sale/order/status`, url: `/v2/mp/enum/sale/order/status`,
method: 'get', method: 'get',
}) })
} }

View File

@ -56,7 +56,7 @@ import { useRequest } from '@/use/useHttp'
*/ */
export const kindListApi = () => { export const kindListApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/kind/list`, url: `/v2/mp/product/kind/list`,
method: 'get', method: 'get',
}) })
} }
@ -67,7 +67,7 @@ export const kindListApi = () => {
*/ */
export const ProductListApi = () => { export const ProductListApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/list`, url: `/v2/mp/product/list`,
method: 'get', method: 'get',
}) })
} }

View File

@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/ */
export const LoginApi = () => { export const LoginApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/login`, url: `/v2/mp/login`,
method: 'post', method: 'post',
}) })
} }

View File

@ -3,28 +3,28 @@ import { useRequest } from '@/use/useHttp'
//收款单列表 //收款单列表
export const mpcashManagementOrderlist = () => { export const mpcashManagementOrderlist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/cashManagementOrder/list`, url: `/v2/mp/cashManagementOrder/list`,
method: "get", method: "get",
}) })
} }
//收款单详情 //收款单详情
export const mpcashManagementOrder = () => { export const mpcashManagementOrder = () => {
return useRequest({ return useRequest({
url: `/v1/mp/cashManagementOrder`, url: `/v2/mp/cashManagementOrder`,
method: "get", method: "get",
}) })
} }
//收款账号 //收款账号
export const mpcashManagementOrderaccount = () => { export const mpcashManagementOrderaccount = () => {
return useRequest({ return useRequest({
url: `/v1/mp/cashManagementOrder/account`, url: `/v2/mp/cashManagementOrder/account`,
method: "get", method: "get",
}) })
} }
//新建收款单 //新建收款单
export const mpcashManagementOrderpost = () => { export const mpcashManagementOrderpost = () => {
return useRequest({ return useRequest({
url: `/v1/mp/cashManagementOrder`, url: `/v2/mp/cashManagementOrder`,
method: "post", method: "post",
}) })
} }

View File

@ -32,7 +32,7 @@ export const ClientListApi = () => {
//面料种类列表 //面料种类列表
export const mpproductcolorlist = () => { export const mpproductcolorlist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/color/list`, url: `/v2/mp/product/color/list`,
method: "get" method: "get"
}) })
} }
@ -46,7 +46,7 @@ export const mpsaleOrderpreView = () => {
//业务员枚举 //业务员枚举
export const mpenumsaleUserlist = () => { export const mpenumsaleUserlist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/saleUser/list`, url: `/v2/mp/enum/saleUser/list`,
method: "get" method: "get"
}) })
} }
@ -60,7 +60,7 @@ export const mpsaleOrder = () => {
//取消订单 //取消订单
export const mpsaleOrdercancel = () => { export const mpsaleOrdercancel = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrder/cancel`, url: `/v2/mp/saleOrder/cancel`,
method: "put", method: "put",
}) })
} }
@ -74,28 +74,28 @@ export const mpshoppingCartproductColorlist = () => {
//获取账期付款 //获取账期付款
export const orderPaymentorderPaymentMethodInfo = () => { export const orderPaymentorderPaymentMethodInfo = () => {
return useRequest({ return useRequest({
url: `/v1/mp/orderPayment/orderPaymentMethodInfo`, url: `/v2/mp/orderPayment/orderPaymentMethodInfo`,
method: "get", method: "get",
}) })
} }
//预收单获取接口信息 //预收单获取接口信息
export const orderPaymentpreCollectOrderorderPaymentMethodInfo = () => { export const orderPaymentpreCollectOrderorderPaymentMethodInfo = () => {
return useRequest({ return useRequest({
url: `/v1/mp/orderPayment/preCollectOrder/orderPaymentMethodInfo`, url: `/v2/mp/orderPayment/preCollectOrder/orderPaymentMethodInfo`,
method: "get", method: "get",
}) })
} }
//确认交易 //确认交易
export const orderPaymentorderPaymentSubmission = () => { export const orderPaymentorderPaymentSubmission = () => {
return useRequest({ return useRequest({
url: `/v1/mp/orderPayment/orderPaymentSubmission`, url: `/v2/mp/orderPayment/orderPaymentSubmission`,
method: "put", method: "put",
}) })
} }
//订单预支付提交 //订单预支付提交
export const orderPaymentpreCollectOrderorderPaymentSubmission = () => { export const orderPaymentpreCollectOrderorderPaymentSubmission = () => {
return useRequest({ return useRequest({
url: `/v1/mp/orderPayment/preCollectOrder/orderPaymentSubmission`, url: `/v2/mp/orderPayment/preCollectOrder/orderPaymentSubmission`,
method: "put", method: "put",
}) })
} }
@ -122,70 +122,70 @@ export const GetReturnPayCode = () => {
//编辑备注信息 //编辑备注信息
export const mpsaleOrderput = () => { export const mpsaleOrderput = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrder`, url: `/v2/mp/saleOrder`,
method: "put", method: "put",
}) })
} }
//修改销售单的收货地址 //修改销售单的收货地址
export const mpsaleOrderaddress = () => { export const mpsaleOrderaddress = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrder/address`, url: `/v2/mp/saleOrder/address`,
method: "put", method: "put",
}) })
} }
//关键字搜索历史 //关键字搜索历史
export const mpsearchHistorylist = () => { export const mpsearchHistorylist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/searchHistory/list`, url: `/v2/mp/searchHistory/list`,
method: "get", method: "get",
}) })
} }
//添加关键字搜索 //添加关键字搜索
export const mpsearchHistory = () => { export const mpsearchHistory = () => {
return useRequest({ return useRequest({
url: `/v1/mp/searchHistory`, url: `/v2/mp/searchHistory`,
method: "post", method: "post",
}) })
} }
//确认收货 //确认收货
export const mpsaleOrderreceive = () => { export const mpsaleOrderreceive = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrder/receive`, url: `/v2/mp/saleOrder/receive`,
method: "put", method: "put",
}) })
} }
//退货原因 //退货原因
export const mpenumreturnOrderreturnReason = () => { export const mpenumreturnOrderreturnReason = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/returnOrder/returnReason`, url: `/v2/mp/enum/returnOrder/returnReason`,
method: "get", method: "get",
}) })
} }
//二次选择退货原因 //二次选择退货原因
export const mpenumreturnExplain = () => { export const mpenumreturnExplain = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/returnExplain`, url: `/v2/mp/enum/returnExplain`,
method: "get", method: "get",
}) })
} }
//货物状况 //货物状况
export const mpenumreturngoodsStatus = () => { export const mpenumreturngoodsStatus = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/return/goodsStatus`, url: `/v2/mp/enum/return/goodsStatus`,
method: "get", method: "get",
}) })
} }
//申请退货 //申请退货
export const mpreturnApplyOrder = () => { export const mpreturnApplyOrder = () => {
return useRequest({ return useRequest({
url: `/v1/mp/returnApplyOrder`, url: `/v2/mp/returnApplyOrder`,
method: "put", method: "put",
}) })
} }
//退款说明 //退款说明
export const mpenumrefundExplainone = () => { export const mpenumrefundExplainone = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/refundExplain`, url: `/v2/mp/enum/refundExplain`,
method: "get", method: "get",
}) })
} }
@ -193,14 +193,14 @@ export const mpenumrefundExplainone = () => {
//提交订单 //提交订单
export const mpsaleOrderpost = () => { export const mpsaleOrderpost = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrder`, url: `/v2/mp/saleOrder`,
method: "post", method: "post",
}) })
} }
//修改销售单物流方式 //修改销售单物流方式
export const mpsaleOrdershipmentMode = () => { export const mpsaleOrdershipmentMode = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrder/shipmentMode`, url: `/v2/mp/saleOrder/shipmentMode`,
method: "put", method: "put",
}) })
} }

View File

@ -5,7 +5,7 @@ import { useRequest } from "@/use/useHttp"
*/ */
export const FindColorListApi = () => { export const FindColorListApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/color/absorb/match`, url: `/v2/mp/product/color/absorb/match`,
method: 'get', method: 'get',
pagination: true pagination: true
}) })

View File

@ -3,7 +3,7 @@ import { useRequest } from '@/use/useHttp'
//取色对比 //取色对比
export const productabsorbcontrast = () => { export const productabsorbcontrast = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/color/absorb/contrast`, url: `/v2/mp/product/color/absorb/contrast`,
method: 'get', method: 'get',
}) })
} }
@ -14,7 +14,7 @@ export const productabsorbcontrast = () => {
*/ */
export const SelectProductListApi = () => { export const SelectProductListApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/product/list`, url: `/v2/mp/enum/product/list`,
method: 'get', method: 'get',
}) })
} }

View File

@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/ */
export const ColorListApi = () => { export const ColorListApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/color/absorb/list`, url: `/v2/mp/product/color/absorb/list`,
method: 'get', method: 'get',
}) })
} }
@ -17,7 +17,7 @@ export const ColorListApi = () => {
*/ */
export const ColorDetailedApi = () => { export const ColorDetailedApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/texture`, url: `/v2/mp/product/texture`,
method: 'get', method: 'get',
}) })
} }
@ -28,7 +28,7 @@ export const ColorDetailedApi = () => {
*/ */
export const ColorSamplingSaveApi = () => { export const ColorSamplingSaveApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/color/absorb`, url: `/v2/mp/product/color/absorb`,
method: 'put', method: 'put',
}) })
} }
@ -39,7 +39,7 @@ export const ColorSamplingSaveApi = () => {
*/ */
export const TextureSaveApi = () => { export const TextureSaveApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/texture`, url: `/v2/mp/product/texture`,
method: 'put', method: 'put',
}) })
} }

View File

@ -3,42 +3,42 @@ import { useRequest } from "@/use/useHttp"
//售后订单列表 //售后订单列表
export const mpreturnApplyOrderlist = () => { export const mpreturnApplyOrderlist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/returnApplyOrder/list`, url: `/v2/mp/returnApplyOrder/list`,
method: "get", method: "get",
}) })
} }
//售后状态枚举 //售后状态枚举
export const mpenumreturnStage = () => { export const mpenumreturnStage = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/returnStage`, url: `/v2/mp/enum/returnStage`,
method: "get", method: "get",
}) })
} }
//退款类型枚举 //退款类型枚举
export const mpenumreturnType = () => { export const mpenumreturnType = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/returnType`, url: `/v2/mp/enum/returnType`,
method: "get", method: "get",
}) })
} }
//售后详情 //售后详情
export const mpreturnApplyOrder = () => { export const mpreturnApplyOrder = () => {
return useRequest({ return useRequest({
url: `/v1/mp/returnApplyOrder`, url: `/v2/mp/returnApplyOrder`,
method: "get", method: "get",
}) })
} }
//取消退货 //取消退货
export const returnApplyOrdercancel = () => { export const returnApplyOrdercancel = () => {
return useRequest({ return useRequest({
url: `/v1/mp/returnApplyOrder/cancel`, url: `/v2/mp/returnApplyOrder/cancel`,
method: "post", method: "post",
}) })
} }
//售后确认上传附件 //售后确认上传附件
export const returnApplyOrderuploadAccessory = () => { export const returnApplyOrderuploadAccessory = () => {
return useRequest({ return useRequest({
url: `/v1/mp/returnApplyOrder/uploadAccessory`, url: `/v2/mp/returnApplyOrder/uploadAccessory`,
method: "put", method: "put",
}) })
} }

View File

@ -2,7 +2,7 @@ import { useRequest } from "@/use/useHttp"
//搜索商品 //搜索商品
export const mpproductlist = () => { export const mpproductlist = () => {
return useRequest({ return useRequest({
url: `/v1/mp/product/list`, url: `/v2/mp/product/list`,
method: "get", method: "get",
}) })
} }

View File

@ -5,7 +5,7 @@ import { useRequest } from '@/use/useHttp'
*/ */
// export const ShoppingCartUpdateApi = () => { // export const ShoppingCartUpdateApi = () => {
// return useRequest({ // return useRequest({
// url: `/v1/mp/shoppingCart/productColor`, // url: `/v2/mp/shoppingCart/productColor`,
// method: 'put', // method: 'put',
// }) // })
// } // }

View File

@ -6,7 +6,7 @@ import { useRequest } from "@/use/useHttp"
*/ */
export const EnumSalesTypeApi = () => { export const EnumSalesTypeApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/saleType`, url: `/v2/mp/enum/saleType`,
method: 'get', method: 'get',
}) })
} }
@ -17,7 +17,7 @@ export const EnumSalesTypeApi = () => {
*/ */
export const EnumMarketingDepartmentApi = () => { export const EnumMarketingDepartmentApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/saleDepartment/list`, url: `/v2/mp/enum/saleDepartment/list`,
method: "get" method: "get"
}) })
} }

View File

@ -6,7 +6,7 @@ import { useRequest } from '@/use/useHttp'
*/ */
export const SaleOrderDataFormApi = () => { export const SaleOrderDataFormApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrderDataForm`, url: `/v2/mp/saleOrderDataForm`,
method: 'get', method: 'get',
}) })
} }
@ -17,7 +17,7 @@ export const SaleOrderDataFormApi = () => {
*/ */
export const ProductRankApi = () => { export const ProductRankApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrderDataForm/product/list`, url: `/v2/mp/saleOrderDataForm/product/list`,
method: 'get', method: 'get',
}) })
} }
@ -28,7 +28,7 @@ export const ProductRankApi = () => {
*/ */
export const PurchaserRankApi = () => { export const PurchaserRankApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrderDataForm/purchaser/list`, url: `/v2/mp/saleOrderDataForm/purchaser/list`,
method: 'get', method: 'get',
}) })
} }
@ -39,7 +39,7 @@ export const PurchaserRankApi = () => {
*/ */
export const SupplierRankApi = () => { export const SupplierRankApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrderDataForm/supplier/list`, url: `/v2/mp/saleOrderDataForm/supplier/list`,
method: 'get', method: 'get',
}) })
} }
@ -50,7 +50,7 @@ export const SupplierRankApi = () => {
*/ */
export const SalesmanRankApi = () => { export const SalesmanRankApi = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrderDataForm/saleUser/list`, url: `/v2/mp/saleOrderDataForm/saleUser/list`,
method: 'get', method: 'get',
}) })
} }
@ -58,7 +58,7 @@ export const SalesmanRankApi = () => {
//获取排行指标枚举 //获取排行指标枚举
export const SaleOrderDataFormdataFormStatus = () => { export const SaleOrderDataFormdataFormStatus = () => {
return useRequest({ return useRequest({
url: `/v1/mp/saleOrderDataForm/dataFormStatus`, url: `/v2/mp/saleOrderDataForm/dataFormStatus`,
method: 'get', method: 'get',
}) })
} }

View File

@ -2,14 +2,14 @@ import { useRequest } from '@/use/useHttp'
//提货类型 //提货类型
export const EnumTakeGoodsOrderTypeList = () => { export const EnumTakeGoodsOrderTypeList = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/takeGoodsOrderType/list`, url: `/v2/mp/enum/takeGoodsOrderType/list`,
method: 'get', method: 'get',
}) })
} }
//tabs枚举 //tabs枚举
export const EnumTakeGoodsOrderStatus = () => { export const EnumTakeGoodsOrderStatus = () => {
return useRequest({ return useRequest({
url: `/v1/mp/enum/takeGoodsOrderStatus/list`, url: `/v2/mp/enum/takeGoodsOrderStatus/list`,
method: 'get', method: 'get',
}) })
} }

View File

@ -3,35 +3,35 @@ import { CAP_HTML_TO_IMAGE_BASE_URL } from '@/common/constant'
//列表 //列表
export const TakeGoodsOrderList = () => { export const TakeGoodsOrderList = () => {
return useRequest({ return useRequest({
url: `/v1/mp/takeGoodsOrder/list`, url: `/v2/mp/takeGoodsOrder/list`,
method: 'get', method: 'get',
}) })
} }
//拒收提货 //拒收提货
export const TakeGoodsOrderRefuse = () => { export const TakeGoodsOrderRefuse = () => {
return useRequest({ return useRequest({
url: `/v1/mp/takeGoodsOrder/refuse`, url: `/v2/mp/takeGoodsOrder/refuse`,
method: 'put', method: 'put',
}) })
} }
//审核提货单 //审核提货单
export const TakeGoodsOrderAudit = () => { export const TakeGoodsOrderAudit = () => {
return useRequest({ return useRequest({
url: `/v1/mp/takeGoodsOrder/audit`, url: `/v2/mp/takeGoodsOrder/audit`,
method: 'put', method: 'put',
}) })
} }
//详情 //详情
export const TakeGoodsOrder = () => { export const TakeGoodsOrder = () => {
return useRequest({ return useRequest({
url: `/v1/mp/takeGoodsOrder`, url: `/v2/mp/takeGoodsOrder`,
method: 'get', method: 'get',
}) })
} }
//邀请码 //邀请码
export const UserInvitationInfoRecord = () => { export const UserInvitationInfoRecord = () => {
return useRequest({ return useRequest({
url: `/v1/mp/user/invitationInfoRecord`, url: `/v2/mp/user/invitationInfoRecord`,
method: 'get', method: 'get',
}) })
} }