import {get, post} from './network';
|
import $config from '../config';
|
|
let host = $config.serverhost;
|
|
export const UpdateVIPMaster = (params) => {
|
return post(`${host}/wechat/vip/master/update`, params)
|
}
|
|
//产品
|
export const GetProductCategoryList = (params) => {
|
return post(`${host}/wechat/product/category/list`, params)
|
}
|
export const GetProductCategoryWithProductList = (params) => {
|
return post(`${host}/wechat/product/category/listwithproducts`, params)
|
}
|
export const GetProductCategoryListByParentName = (parentname) => {
|
return get(`${host}/wechat/product/category/listbyparent?parentname=${parentname}`)
|
}
|
export const GetProductListByCategoryId = (categoryid) => {
|
return get(`${host}/wechat/product/listbycategoryid?categoryid=${categoryid}`)
|
}
|
export const GetProductDetailByMasterId = (masterid) => {
|
return get(`${host}/wechat/product/detailbymasterid?masterid=${masterid}`)
|
}
|
|
//订单
|
export const CreateActiveOrder = (params) => {
|
return post(`${host}/wechat/order/active/makeorder`, params)
|
}
|
export const PayUseWXViaMiniProgram = (params) => {
|
return post(`${host}/wechat/pay/PayUseWXViaMiniProgram`, params)
|
}
|
export const PaySuccess = (params) => {
|
return post(`${host}/wechat/order/active/pay`, params)
|
}
|
|
//钱包
|
export const getWalletDetail = (id) => {
|
return get(`${host}/wechat/vip/master/wallet/detail?masterid=${id}`)
|
}
|
export const depositActivityList = (params) => {
|
return post(`${host}/wechat/vip/deposit/activity/list`, params)
|
}
|
export const walletRecharge = (params) => {
|
return post(`${host}/wechat/vip/master/wallet/recharge`, params)
|
}
|
export const walletCharge = (params) => {
|
return post(`${host}/wechat/vip/master/wallet/charge`, params)
|
}
|
|
//我的
|
export const getMyPaperList = (id) => {
|
return get(`${host}/wechat/vip/paper/relation/list?masterid=${id}`)
|
}
|