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-05-20 17:10:45 +08:00
|
|
|
// 获取套餐包使用详情
|
2025-05-21 09:39:30 +08:00
|
|
|
export const getPackageDetail = (userId:string,packageOrderId:string,params:any) => request.get(`/operator-plugin/app/packageorderitem/listpagerelease/${userId}?packageOrderId=${packageOrderId}`, { params })
|
2025-05-20 17:10:45 +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-23 18:00:45 +08:00
|
|
|
// 解绑
|
|
|
|
export const unbind = () => phoneRequest.get(`/operator/api/user-wx-update-username/unlock-phone`)
|
2025-04-21 15:45:45 +08:00
|
|
|
|
2025-04-15 11:00:48 +08:00
|
|
|
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
2025-05-27 10:47:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// APP电子软著接口----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
//获取APP电子软著可买商品展示列表
|
2025-05-28 17:28:16 +08:00
|
|
|
export const appGoodsList = () => aiShopRequest.get(`/aishop/api/apporder/money-list`)
|
2025-05-27 10:47:05 +08:00
|
|
|
// 获取运行系统选项
|
|
|
|
export const runSystemList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/9fc8636a-b930-4e82-beb3-db7ca6151e6b`)
|
|
|
|
// 获取大类选项
|
|
|
|
export const bigClassList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/8abb5b58-83d2-465c-b164-a189efee28c1`)
|
|
|
|
// 获取小类
|
2025-05-28 17:28:16 +08:00
|
|
|
export const twoClass = (id:string) => aiShopRequest.get(`/aishop/api/data/listbyparentid/${id}`)
|
2025-05-27 10:47:05 +08:00
|
|
|
|
|
|
|
// 下单购买APP电子软著
|
|
|
|
export const buyAppGoods = (orderMoneyId:string) => aiShopRequest.post(`/aishop/api/apporder/pay/${orderMoneyId}`)
|
|
|
|
// 获取我的app电子软著订单列表
|
|
|
|
export const appOrderList = (params:any) => aiShopRequest.get(`/aishop/api/apporder/listpage-self`, { params })
|
|
|
|
// 获取app电子软著详情
|
|
|
|
export const appOrderDetail = (appOrderId:any) => aiShopRequest.get(`/aishop/api/apporder/get/${appOrderId}`)
|
2025-05-27 15:19:41 +08:00
|
|
|
// 生成授权书word文件
|
2025-05-28 17:28:16 +08:00
|
|
|
export const authorizeWord = (appOrderId:string,companyName:string) => aiShopRequest.get(`/aishop/api/apporder/create-file/SHOP04/${appOrderId}?name=${companyName}授权书&companyName=${companyName}`)
|
|
|
|
// 生成合协议word文件
|
|
|
|
export const agreementWord = (appOrderId:string,appName:string,versionName:string) => aiShopRequest.get(`aishop/api/apporder/create-file/SHOP01/${appOrderId}?name=${appName}合作协议&appName=${appName}&versionName=${versionName}`)
|
|
|
|
// 生成源码文档word文件
|
|
|
|
export const sourceCodeWord = (appOrderId:string,) => aiShopRequest.get(`aishop/api/apporder/create-file/SHOP02/${appOrderId}?name=源码文档示例`)
|
|
|
|
// 生成软件文档word文件
|
|
|
|
export const softwareDocumentWord = (appOrderId:string,) => aiShopRequest.get(`aishop/api/apporder/create-file/SHOP03/${appOrderId}?name=软件文档示例`)
|
|
|
|
|
|
|
|
// 获取文件详细信息
|
|
|
|
export const fileDetail = (fileId:string) => aiShopRequest.get(`aishop/api/file/list?ids=${fileId}`)
|
|
|
|
// 第一步 企业认证
|
2025-05-27 15:47:12 +08:00
|
|
|
export const companyAuth = (appOrderId:any,params:any) => aiShopRequest.post(`aishop/api/apporder/update/1/${appOrderId}`,params)
|
2025-05-28 17:28:16 +08:00
|
|
|
// 第二步 软件基本信息填写
|
|
|
|
export const softwareInfo = (appOrderId:any,params:any) => aiShopRequest.post(`aishop/api/apporder/update/2/${appOrderId}`,params)
|
|
|
|
// 第三步 上传鉴别材料
|
|
|
|
export const uploadMaterial = (appOrderId:any,params:any) => aiShopRequest.post(`/aishop/api/apporder/update/3/${appOrderId}`,params)
|
|
|
|
|
2025-05-27 10:47:05 +08:00
|
|
|
// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|