import {request,aiShopRequest,phoneRequest,newRequest} from './request' // import newRequest from './request' // 开票功能operatorPluginBaseUrl------------------------------------------------------------------------------------------------------------------------------------------------------- // 获取登录标志 export const getLoginflag = (userId: string) => request.get(`/operator-plugin/app/contentcensusrelease/log?requestUrl=网页USER${userId}`) // 获取开票记录列表 export const getInvoiceRecordList = (userId: string, params: any) => request.get(`/operator-plugin/api/invoicerecharge/listpage/${userId}`, { params }) // 获取开票信息数组 export const getInvoiceList = (userId: string, params: any) => request.get(`/operator-plugin/api/invoice-config/listpage/${userId}`, { params }) // 新增开票信息 export const addInvoiceInfo = (userId: string, params: any) => request.post(`/operator-plugin/api/invoice-config/save/${userId}`, params) // 获取开票信息 export const getInvoiceInfo = (invoiceId: string) => request.get(`/operator-plugin/api/invoice-config/get/${invoiceId}`) //更新开票信息 export const updateInvoiceInfo = (invoiceId: string, params: any) => request.put(`/operator-plugin/api/invoice-config/update/${invoiceId}`, params) // 删除开票信息 export const deleteInvoiceInfo = (invoiceId: string) => request.delete(`/operator-plugin/api/invoice-config/remove/${invoiceId}`) // 获取可申请开票的充值记录列表 export const getRechargeRecordList = (userId: string, params: any) => request.get(`/operator-plugin/api/invoicerecharge/recharge-listpage/${userId}/not`, { params }) //获取开票的充值记录(点击查看开票的充值记录) export const getInvoiceRechargeList = (invoiceRechargeId: string, params: any) => request.get(`/operator-plugin/api/invoicerecharge/listpage-byid/${invoiceRechargeId}`, { params }) // 提交开票申请 export const submitInvoiceApply = (userId: string, params: any) => request.post(`/operator-plugin/api/invoicerecharge/save/${userId}`, params) // 查看开票信息 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}`) // 修改开票信息 export const updateInvoiceInfoByinvoiceRechargeId = (invoiceRechargeId: string, params: any) => request.put(`/operator-plugin/api/invoicerecharge/update/${invoiceRechargeId}`, params) // 获取套餐包使用详情 export const getPackageDetail = (userId:string,packageOrderId:string,params:any) => request.get(`/operator-plugin/app/packageorderitem/listpagerelease/${userId}?packageOrderId=${packageOrderId}`, { params }) //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // 买卖商品接口aiShopBaseUrl--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // 获取商品列表 export const getGoodsList = (params: any) => aiShopRequest.get(`/aishop/api/goods/listpage`, { params }) // 获取开发语言 export const getLanguageList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/f8bf7112-623c-494c-ad29-ccef5cfe2e1f`) // 获取软著类型 export const getSoftTypeList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/0b00884a-f7a2-425f-93e5-599fbaad4bde`) // 获取商品详情 export const getGoodsDetail = (goodsId: string) => aiShopRequest.get(`/aishop/api/goods/get/${goodsId}`) // 获取证件类型 export const getCertificateTypeList = () => aiShopRequest.get(`/aishop/api/data/listbyparentid/ce3ded65-68ed-4f42-89da-de1b813b8f7e`) // 获取省份 export const getProvinceList = () => aiShopRequest.get(`/aishop/api/area/listbyparentid/0`) // 获取市 export const getCityList = (provinceId: string) => aiShopRequest.get(`/aishop/api/area/listbyparentid/${provinceId}`) // 新增商品 export const addGoods = (params: any) => aiShopRequest.post(`/aishop/api/goods/save`, params) // 修改商品 export const updateGoods = (goodsId: string, params: any) => aiShopRequest.put(`/aishop/api/goods/update/${goodsId}`, params) // 提交审核 export const submitAudit = (goodsId: string) => aiShopRequest.put(`/aishop/api/goods/sub-check/${goodsId}`) // 商品上架 export const putOnShelf = (goodsId: string) => aiShopRequest.put(`/aishop/api/goods/publish/${goodsId}`) // 商品下架 export const putOffShelf = (goodsId: string) => aiShopRequest.put(`/aishop/api/goods/no-publish/${goodsId}`) // 删除商品 export const deleteGoods = (goodsId: string) => aiShopRequest.delete(`/aishop/api/goods/remove/${goodsId}`) // 我要卖订单分页列表 export const getSellOrderList = (params: any) => aiShopRequest.get(`/aishop/api/order/listpage-sell`, { params }) // 我要买订单分页列表 export const getBuyOrderList = (params: any) => aiShopRequest.get(`/aishop/api/order/listpage-buy`, { params }) // 获取订单详情 export const orderDetail = (orderId: string) => aiShopRequest.get(`/aishop/api/order/get/${orderId}`) // 获取卖家补充资料列表 export const sellSupplementList = (params: any) => aiShopRequest.get(`/aishop/api/correction/listpage-sell`, { params }) // 获取买家补充资料列表 export const buySupplementList = (params: any) => aiShopRequest.get(`/aishop/api/correction/listpage-buy`, { params }) // 获取补充资料详情 export const supplementDetail = (correctionId: string) => aiShopRequest.get(`/aishop/api/correction/get/${correctionId}`) // 获取可以买的商品列表 export const buyGoodsList = (params: any) => aiShopRequest.get(`/aishop/api/goodsonline/listpage`, { params }) // 获取上架商品详情 export const goodsDetail = (goodsId: string) => aiShopRequest.get(`/aishop/api/goodsonline/get/${goodsId}`) // 创建订单 export const createOrder = (goodsId: string) => aiShopRequest.post(`/aishop/api/order/save/${goodsId}`) // 确认付款 export const confirmPayment = (orderId: string) => aiShopRequest.put(`/aishop/api/order/confirm-pay/${orderId}`) // 通过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) // 取消订单 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) //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // 绑定手机号接口operatorBaseUrl---------------------------------------------------------------------------------------------------------------------------------------------------------------------- // 获取验证码 export const getCode = (phone: number) => phoneRequest.get(`/operator/api/verify/code/send/${phone}`) // 验证手机号是否可用 export const checkPhone = (phone: number) => phoneRequest.get(`/operator/api/user-wx-update-username/check-phone/${phone}`) // 更新手机号 export const updatePhone = (params:any) => newRequest.post(`/operator/oauth/wx/update/phone`, params) // 更新绑定手机号 export const updateBindPhone = (params:any) => phoneRequest.post(`/operator/api/user-wx-update-username/update-phone`, params) // 解绑 export const unbind = () => phoneRequest.get(`/operator/api/user-wx-update-username/unlock-phone`) //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // APP电子软著接口---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //获取APP电子软著可买商品展示列表 export const appGoodsList = () => aiShopRequest.get(`/aishop/api/apporder/money-list`) // 获取运行系统选项 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`) // 获取小类 export const twoClass = (id:string) => aiShopRequest.get(`/aishop/api/data/listbyparentid/${id}`) // 下单购买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}`) // 生成授权书word文件 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}`) // 第一步 企业认证 export const companyAuth = (appOrderId:any,params:any) => aiShopRequest.post(`aishop/api/apporder/update/1/${appOrderId}`,params) // 第二步 软件基本信息填写 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) // ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------