You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.5 KiB
71 lines
1.5 KiB
import http from '../utils/http/index.js'
|
|
|
|
// 添加纸品
|
|
export function createProduct(data) {
|
|
return http.post({
|
|
url: '/base-paper-trading/create/product',
|
|
data
|
|
})
|
|
}
|
|
// 更新纸品
|
|
export function updateProduct(data) {
|
|
return http.post({
|
|
url: '/base-paper-trading/update/product',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 纸品种类列表
|
|
export function getCategoryList(data) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/product/category-list',
|
|
data
|
|
})
|
|
}
|
|
// 纸品详情
|
|
export function getSupplierDteail(data) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/product-detail/for/supplier',
|
|
data
|
|
})
|
|
}
|
|
// 店铺纸品列表(供应商端)
|
|
export function SupplierList(data) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/store/product-list/for/supplier',
|
|
data
|
|
})
|
|
}
|
|
// 上下架纸品
|
|
|
|
export function productStatus(data) {
|
|
return http.post({
|
|
url: '/base-paper-trading/update/product/status',
|
|
data
|
|
})
|
|
}
|
|
// 编辑店铺、
|
|
export function updataStore(data) {
|
|
return http.post({
|
|
url: '/base-paper-trading/update/store?mallSupplierId='+data.mallSupplierId,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取我店铺列表
|
|
* swagger:http://api-ops-yyt-test.qniao.cn/base-paper-trading/swagger-ui/index.html?urls.primaryName=CustomerApi#/店铺/getMyStoreListUsingGET
|
|
*/
|
|
export function getStoreList(data) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/my/store-list',
|
|
data
|
|
})
|
|
}
|
|
//获取店铺信息(供应商端)
|
|
export function storeDetail(data) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/store-detail/for/supplier?supplierId='+data,
|
|
data
|
|
})
|
|
}
|