2025-04-15 11:00:48 +08:00
|
|
|
import {request,aiShopRequest,phoneRequest,newRequest} from './request'
|
2025-04-11 16:20:46 +08:00
|
|
|
// import newRequest from './request'
|
2025-04-15 11:00:48 +08:00
|
|
|
// 开票功能operatorPluginBaseUrl-------------------------------------------------------------------------------------------------------------------------------------------------------
|
2025-03-28 09:44:48 +08:00
|
|
|
// 获取登录标志
|
2025-04-11 16:20:46 +08:00
|
|
|
export const getLoginflag = (userId: string) => request.get(`/operator-plugin/app/contentcensusrelease/log?requestUrl=网页USER${userId}`)
|
2025-04-02 15:30:55 +08:00
|
|
|
// 获取开票记录列表
|
2025-04-11 16:20:46 +08:00
|
|
|
export const getInvoiceRecordList = (userId: string, params: any) => request.get(`/operator-plugin/api/invoicerecharge/listpage/${userId}`, { params })
|
2025-04-02 15:30:55 +08:00
|
|
|
// 获取开票信息数组
|
2025-04-11 16:20:46 +08:00
|
|
|
export const getInvoiceList = (userId: string, params: any) => request.get(`/operator-plugin/api/invoice-config/listpage/${userId}`, { params })
|
2025-03-28 09:44:48 +08:00
|
|
|
|
2025-04-02 15:30:55 +08:00
|
|
|
// 新增开票信息
|
2025-04-11 16:20:46 +08:00
|
|
|
export const addInvoiceInfo = (userId: string, params: any) => request.post(`/operator-plugin/api/invoice-config/save/${userId}`, params)
|
2025-04-02 15:30:55 +08:00
|
|
|
// 获取开票信息
|
|
|
|
export const getInvoiceInfo = (invoiceId: string) => request.get(`/operator-plugin/api/invoice-config/get/${invoiceId}`)
|
|
|
|
//更新开票信息
|
2025-04-11 16:20:46 +08:00
|
|
|
export const updateInvoiceInfo = (invoiceId: string, params: any) => request.put(`/operator-plugin/api/invoice-config/update/${invoiceId}`, params)
|
2025-04-02 15:30:55 +08:00
|
|
|
// 删除开票信息
|
|
|
|
export const deleteInvoiceInfo = (invoiceId: string) => request.delete(`/operator-plugin/api/invoice-config/remove/${invoiceId}`)
|
|
|
|
// 获取可申请开票的充值记录列表
|
2025-04-11 16:20:46 +08:00
|
|
|
export const getRechargeRecordList = (userId: string, params: any) => request.get(`/operator-plugin/api/invoicerecharge/recharge-listpage/${userId}/not`, { params })
|
2025-04-02 15:30:55 +08:00
|
|
|
//获取开票的充值记录(点击查看开票的充值记录)
|
2025-04-11 16:20:46 +08:00
|
|
|
export const getInvoiceRechargeList = (invoiceRechargeId: string, params: any) => request.get(`/operator-plugin/api/invoicerecharge/listpage-byid/${invoiceRechargeId}`, { params })
|
2025-04-02 15:30:55 +08:00
|
|
|
// 提交开票申请
|
2025-04-11 16:20:46 +08:00
|
|
|
export const submitInvoiceApply = (userId: string, params: any) => request.post(`/operator-plugin/api/invoicerecharge/save/${userId}`, params)
|
2025-04-02 15:30:55 +08:00
|
|
|
// 查看开票信息
|
|
|
|
export const getInvoiceInfoById = (invoiceRechargeId: string) => request.get(`/operator-plugin/api/invoicerecharge/get/${invoiceRechargeId}`)
|
|
|
|
// 取消开票
|
|
|
|
export const cancelInvoice = (invoiceRechargeId: string) => request.put(`/operator-plugin/api/invoicerecharge/cancel/${invoiceRechargeId}`)
|
|
|
|
// 获取开票信息
|
|
|
|
export const getInvoiceInfoByinvoiceRechargeId = (invoiceRechargeId: string) => request.get(`/operator-plugin/api/invoicerecharge/get/${invoiceRechargeId}`)
|
|
|
|
// 修改开票信息
|
2025-04-11 16:20:46 +08:00
|
|
|
export const updateInvoiceInfoByinvoiceRechargeId = (invoiceRechargeId: string, params: any) => request.put(`/operator-plugin/api/invoicerecharge/update/${invoiceRechargeId}`, params)
|
2025-04-18 14:41:01 +08:00
|
|
|
|
2025-04-15 11:00:48 +08:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
2025-04-11 16:20:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-15 11:00:48 +08:00
|
|
|
|
|
|
|
// 买卖商品接口aiShopBaseUrl---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取商品列表
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getGoodsList = (params: any) => aiShopRequest.get(`/aishop/api/goods/listpage`, { params })
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取开发语言
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getLanguageList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/f8bf7112-623c-494c-ad29-ccef5cfe2e1f`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取软著类型
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getSoftTypeList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/0b00884a-f7a2-425f-93e5-599fbaad4bde`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取商品详情
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getGoodsDetail = (goodsId: string) => aiShopRequest.get(`/aishop/api/goods/get/${goodsId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取证件类型
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getCertificateTypeList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/ce3ded65-68ed-4f42-89da-de1b813b8f7e`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取省份
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getProvinceList = () => aiShopRequest.get(`/aishop/api/area/listbyparentid/0`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取市
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getCityList = (provinceId: string) => aiShopRequest.get(`/aishop/api/area/listbyparentid/${provinceId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
|
|
|
|
// 新增商品
|
2025-04-15 11:00:48 +08:00
|
|
|
export const addGoods = (params: any) => aiShopRequest.post(`/aishop/api/goods/save`, params)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 修改商品
|
2025-04-15 11:00:48 +08:00
|
|
|
export const updateGoods = (goodsId: string, params: any) => aiShopRequest.put(`/aishop/api/goods/update/${goodsId}`, params)
|
2025-04-11 16:20:46 +08:00
|
|
|
|
|
|
|
// 提交审核
|
2025-04-15 11:00:48 +08:00
|
|
|
export const submitAudit = (goodsId: string) => aiShopRequest.put(`/aishop/api/goods/sub-check/${goodsId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
|
|
|
|
// 商品上架
|
2025-04-15 11:00:48 +08:00
|
|
|
export const putOnShelf = (goodsId: string) => aiShopRequest.put(`/aishop/api/goods/publish/${goodsId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 商品下架
|
2025-04-15 11:00:48 +08:00
|
|
|
export const putOffShelf = (goodsId: string) => aiShopRequest.put(`/aishop/api/goods/no-publish/${goodsId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 删除商品
|
2025-04-15 11:00:48 +08:00
|
|
|
export const deleteGoods = (goodsId: string) => aiShopRequest.delete(`/aishop/api/goods/remove/${goodsId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 我要卖订单分页列表
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getSellOrderList = (params: any) => aiShopRequest.get(`/aishop/api/order/listpage-sell`, { params })
|
2025-04-11 16:20:46 +08:00
|
|
|
// 我要买订单分页列表
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getBuyOrderList = (params: any) => aiShopRequest.get(`/aishop/api/order/listpage-buy`, { params })
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取订单详情
|
2025-04-15 11:00:48 +08:00
|
|
|
export const orderDetail = (orderId: string) => aiShopRequest.get(`/aishop/api/order/get/${orderId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
|
|
|
|
// 获取卖家补充资料列表
|
2025-04-15 11:00:48 +08:00
|
|
|
export const sellSupplementList = (params: any) => aiShopRequest.get(`/aishop/api/correction/listpage-sell`, { params })
|
2025-04-11 16:20:46 +08:00
|
|
|
|
|
|
|
// 获取买家补充资料列表
|
2025-04-15 11:00:48 +08:00
|
|
|
export const buySupplementList = (params: any) => aiShopRequest.get(`/aishop/api/correction/listpage-buy`, { params })
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取补充资料详情
|
2025-04-15 11:00:48 +08:00
|
|
|
export const supplementDetail = (correctionId: string) => aiShopRequest.get(`/aishop/api/correction/get/${correctionId}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取可以买的商品列表
|
2025-04-15 11:00:48 +08:00
|
|
|
export const buyGoodsList = (params: any) => aiShopRequest.get(`/aishop/api/goodsonline/listpage`, { params })
|
2025-04-14 16:14:27 +08:00
|
|
|
// 获取上架商品详情
|
2025-04-15 11:00:48 +08:00
|
|
|
export const goodsDetail = (goodsId: string) => aiShopRequest.get(`/aishop/api/goodsonline/get/${goodsId}`)
|
2025-04-14 16:14:27 +08:00
|
|
|
// 创建订单
|
2025-04-15 11:00:48 +08:00
|
|
|
export const createOrder = (goodsId: string) => aiShopRequest.post(`/aishop/api/order/save/${goodsId}`)
|
2025-04-14 16:14:27 +08:00
|
|
|
// 确认付款
|
2025-04-15 11:00:48 +08:00
|
|
|
export const confirmPayment = (orderId: string) => aiShopRequest.put(`/aishop/api/order/confirm-pay/${orderId}`)
|
2025-04-17 08:36:10 +08:00
|
|
|
|
|
|
|
// 通过ids获取文件类型
|
|
|
|
export const getFileTypeByIds = (params:any) => aiShopRequest.get(`/aishop/api/file/list`, { params })
|
|
|
|
// 补充资料
|
|
|
|
export const supplementData = (params:any) => aiShopRequest.post(`/aishop/api/correction/save`, params)
|
2025-04-18 14:41:01 +08:00
|
|
|
// 取消订单
|
|
|
|
export const cancelOrder = (orderId: string) => aiShopRequest.put(`/aishop/api/order/save-cancel/${orderId}`)
|
|
|
|
// 填写过户人信息
|
|
|
|
export const fillInputInfo = (orderId: string, params:any) => aiShopRequest.post(`/aishop/api/order/save-input/${orderId}`, params)
|
2025-04-15 11:00:48 +08:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
2025-04-11 16:20:46 +08:00
|
|
|
|
|
|
|
|
2025-04-15 11:00:48 +08:00
|
|
|
// 绑定手机号接口operatorBaseUrl----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
2025-04-11 16:20:46 +08:00
|
|
|
// 获取验证码
|
2025-04-15 11:00:48 +08:00
|
|
|
export const getCode = (phone: number) => phoneRequest.get(`/operator/api/verify/code/send/${phone}`)
|
2025-04-11 16:20:46 +08:00
|
|
|
// 验证手机号是否可用
|
2025-04-15 11:00:48 +08:00
|
|
|
export const checkPhone = (phone: number) => phoneRequest.get(`/operator/api/user-wx-update-username/check-phone/${phone}`)
|
2025-04-21 15:45:45 +08:00
|
|
|
|
2025-04-11 16:20:46 +08:00
|
|
|
// 更新手机号
|
|
|
|
export const updatePhone = (params:any) => newRequest.post(`/operator/oauth/wx/update/phone`, params)
|
2025-04-21 15:45:45 +08:00
|
|
|
|
|
|
|
// 更新绑定手机号
|
|
|
|
export const updateBindPhone = (params:any) => phoneRequest.post(`/operator/api/user-wx-update-username/update-phone`, params)
|
|
|
|
|
2025-04-15 11:00:48 +08:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|