2025-04-11 16:20:46 +08:00
|
|
|
import {request,newRequest} from './request'
|
|
|
|
// import newRequest from './request'
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 买卖商品接口
|
|
|
|
// 获取商品列表
|
|
|
|
export const getGoodsList = (params: any) => request.get(`/aishop/api/goods/listpage`, { params })
|
|
|
|
// 获取开发语言
|
|
|
|
export const getLanguageList = () => request.get(`/aishop/api/data/listbyparentid/f8bf7112-623c-494c-ad29-ccef5cfe2e1f`)
|
|
|
|
// 获取软著类型
|
|
|
|
export const getSoftTypeList = () => request.get(`/aishop/api/data/listbyparentid/0b00884a-f7a2-425f-93e5-599fbaad4bde`)
|
|
|
|
// 获取商品详情
|
|
|
|
export const getGoodsDetail = (goodsId: string) => request.get(`/aishop/api/goods/get/${goodsId}`)
|
|
|
|
// 获取证件类型
|
|
|
|
export const getCertificateTypeList = () => request.get(`/aishop/api/data/listbyparentid/ce3ded65-68ed-4f42-89da-de1b813b8f7e`)
|
|
|
|
// 获取省份
|
|
|
|
export const getProvinceList = () => request.get(`/aishop/api/area/listbyparentid/0`)
|
|
|
|
// 获取市
|
|
|
|
export const getCityList = (provinceId: string) => request.get(`/aishop/api/area/listbyparentid/${provinceId}`)
|
|
|
|
|
|
|
|
// 新增商品
|
|
|
|
export const addGoods = (params: any) => request.post(`/aishop/api/goods/save`, params)
|
|
|
|
// 修改商品
|
|
|
|
export const updateGoods = (goodsId: string, params: any) => request.put(`/aishop/api/goods/update/${goodsId}`, params)
|
|
|
|
|
|
|
|
// 提交审核
|
|
|
|
export const submitAudit = (goodsId: string) => request.put(`/aishop/api/goods/sub-check/${goodsId}`)
|
|
|
|
|
|
|
|
// 商品上架
|
|
|
|
export const putOnShelf = (goodsId: string) => request.put(`/aishop/api/goods/publish/${goodsId}`)
|
|
|
|
// 商品下架
|
|
|
|
export const putOffShelf = (goodsId: string) => request.put(`/aishop/api/goods/no-publish/${goodsId}`)
|
|
|
|
// 删除商品
|
|
|
|
export const deleteGoods = (goodsId: string) => request.delete(`/aishop/api/goods/remove/${goodsId}`)
|
|
|
|
// 我要卖订单分页列表
|
|
|
|
export const getSellOrderList = (params: any) => request.get(`/aishop/api/order/listpage-sell`, { params })
|
|
|
|
// 我要买订单分页列表
|
|
|
|
export const getBuyOrderList = (params: any) => request.get(`/aishop/api/order/listpage-buy`, { params })
|
|
|
|
// 获取订单详情
|
|
|
|
export const orderDetail = (orderId: string) => request.get(`/aishop/api/order/get/${orderId}`)
|
|
|
|
|
|
|
|
// 获取卖家补充资料列表
|
|
|
|
export const sellSupplementList = (params: any) => request.get(`/aishop/api/correction/listpage-sell`, { params })
|
|
|
|
|
|
|
|
// 获取买家补充资料列表
|
|
|
|
export const buySupplementList = (params: any) => request.get(`/aishop/api/correction/listpage-buy`, { params })
|
|
|
|
// 获取补充资料详情
|
|
|
|
export const supplementDetail = (correctionId: string) => request.get(`/aishop/api/correction/get/${correctionId}`)
|
|
|
|
// 获取可以买的商品列表
|
|
|
|
export const buyGoodsList = (params: any) => request.get(`/aishop/api/goodsonline/listpage`, { params })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 绑定手机号接口
|
|
|
|
// 获取验证码
|
|
|
|
export const getCode = (phone: number) => request.get(`/operator/api/verify/code/send/${phone}`)
|
|
|
|
// 验证手机号是否可用
|
|
|
|
export const checkPhone = (phone: number) => request.get(`/operator/api/user-wx-update-username/check-phone/${phone}`)
|
|
|
|
// 更新手机号
|
|
|
|
export const updatePhone = (params:any) => newRequest.post(`/operator/oauth/wx/update/phone`, params)
|