// 构建订单
export const shoporderBuild_Api = (data) => uni.$uv.http.post(`/shoporder/build`, data);

// 构建订单
export const shoporderCreate_Api = (data) => uni.$uv.http.post(`/shoporder/create`, data);

// 取消主订单
export const shoporderCancel_Api = (data) => uni.$uv.http.post(`/shoporder/cancel`, data);

// 删除订单
export const shoporderDel_Api = (orderId) => uni.$uv.http.post(`/shoporder/del/${orderId}`, {});

// 余额支付
export const shoporderBalance_Api = (data) => uni.$uv.http.post(`/shoporder/balance`, data);

// 微信小程序支付
export const shoporderWxMinPay_Api = (data) => uni.$uv.http.post(`/shoporder/wxMinPay`, data);

// 查询订单详情
export const shoporderInfo_Api = (orderId) => uni.$uv.http.get(`/shoporder/info/${orderId}`, {})

// 分页查询用户的普通订单
export const shoporderPage_Api = (params) => uni.$uv.http.get(`/shoporder/page`, { params });

// 分页查询商家的普通订单
export const shoporderBusinessPage_Api = (params) => uni.$uv.http.get(`/shoporder/business-page`, { params });

// 商家核销简单统计
export const shopOrderBusinessSimpleCount_Api = (params) => uni.$uv.http.get(`/shopOrder/business-simple-count`, { params });

// 分页查询商家的退款订单
export const saleRightsOrderBusinessPage_Api = (params) => uni.$uv.http.get(`/rights/saleRightsOrder/business-page`, { params });

// 获得子订单维权可以最多可以退多少钱
export const ableRefundMoney_Api = (data) => uni.$uv.http.post(`/rights/saleRightsOrder/child/able-refund-money`, data);

// 获得主订单维权可以最多可以退多少钱
export const ableRefundMoneyMain_Api = (data) => uni.$uv.http.post(`/rights/saleRightsOrder/main/able-refund-money`, data);

// 会员发起子订单维权
export const childOrder_Api = (data) => uni.$uv.http.post(`/rights/saleRightsOrder/apply/child-order`, data);

// 会员发起主订单维权
export const applyOrder_Api = (data) => uni.$uv.http.post(`/rights/saleRightsOrder/apply/order`, data);

// 会员主动取消维权
export const saleRightsOrderCancel_Api = (rightsId) => uni.$uv.http.post(`/rights/saleRightsOrder/cancel/${rightsId}`, {});

// 加载子维权订单
export const saleRightsOrderChild_Api = (orderId, childOrderId) => uni.$uv.http.get(`/rights/saleRightsOrder/child/${orderId}/${childOrderId}`, {});

// 加载主维权订单
export const saleRightsOrderMain_Api = (orderId) => uni.$uv.http.get(`/rights/saleRightsOrder/main/${orderId}`, {});

// 查询维权单列表
export const saleRightsOrderPage_Api = (params) => uni.$uv.http.get(`/rights/saleRightsOrder/page`, { params });

// 加载维权订单
export const saleRightsOrderInfo_Api = (id) => uni.$uv.http.get(`/rights/saleRightsOrder/info/${id}`, {});

// 会员退货订单发货
export const saleRightsOrderShip_Api = (data) => uni.$uv.http.post(`/rights/saleRightsOrder/ship`, data);


// 对订单包裹收货
export const receiptPackage_Api = (data) => uni.$uv.http.post(`/shopOrder/receiptPackage`, data);

// 对订单收货
export const receiptOrder_Api = (data) => uni.$uv.http.post(`/shopOrder/receiptOrder`, data);

// 查看订单的所有包裹信息
export const shopOrderList_Api = (orderId) => uni.$uv.http.get(`/shopOrder/list/${orderId}`, {});

// 查看包裹信息
export const shopOrderInfo_Api = (packageId) => uni.$uv.http.get(`/shopOrder/info/${packageId}`, {});

// 自提订单包裹进行核销
export const pickUpVerification_Api = (data) => uni.$uv.http.post(`/shopOrder/pickUpVerification`, data);

// 通过核销码查询订单
export const getOrderByVerificationCode_Api = (params) => uni.$uv.http.get(`/shopOrder/getOrderByVerificationCode`, { params });

// 查看物流跟踪
export const selectExpress_Api = (packageId) => uni.$uv.http.post(`/shopOrder/selectExpress/${packageId}`, {});

// 用户分页查询在线订单列表
export const onlineorderPage_Api = (params) => uni.$uv.http.get(`/onlineorder/onlineOrder/page`, { params });

// 商家分页查询在线订单列表
export const onlineorderBusinessPage_Api = (params) => uni.$uv.http.get(`/onlineorder/onlineOrder/business-page`, { params });

// 获取在线订单详细信息
export const onlineorderInfo_Api = (orderId) => uni.$uv.http.get(`/onlineorder/onlineOrder/info/${orderId}`, {});

// 用户分页查询的补贴排队列表
export const subsidyQueuePage_Api = (params) => uni.$uv.http.get(`/subsidy/subsidyQueue/page`, { params });

// 商家分页查询的补贴排队列表
export const subsidyQueueBusinessPage_Api = (params) => uni.$uv.http.get(`/subsidy/subsidyQueue/business-page`, { params });

// 获取补贴排队详细信息
export const subsidyQueueInfo_Api = (queueId) => uni.$uv.http.get(`/subsidy/subsidyQueue/info/${queueId}`, {});

// 用户兑换积分
export const subsidyQueueExchange_Api = (data) => uni.$uv.http.post(`/subsidy/subsidyQueue/exchange`, data);

// 判断核销码是否有效
export const shopOrderValid_Api = (params) => uni.$uv.http.get(`/shopOrder/verificationCodeIsValid`, { params })

// 订单是否支付
export const shopOrderIsPay_Api = (params) => uni.$uv.http.get(`/shoporder/isPay`, { params })

// 商家分页查看包裹信息(自提核销)
export const shopOrderBusinessPage_Api = (params) => uni.$uv.http.get(`/shopOrder/business-page`, { params });

// 修改订单支付方式
export const shopOrderGoPay_Api = (data) => uni.$uv.http.post(`/shoporder/goPay`, data);
