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.
37 lines
1.1 KiB
37 lines
1.1 KiB
import http from '../utils/http/index.js'
|
|
|
|
/**
|
|
* 获取店铺纸品详情
|
|
* @param {object} data 参数
|
|
* @returns {Promise<object[]>}
|
|
* swagger: http://api-ops-yyt-test.qniao.cn//base-paper-trading/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E5%95%86%E5%93%81%E7%AE%A1%E7%90%86/getProductDetailForCustomerUsingGET
|
|
*/
|
|
export const getPaperDetail = (data = {}) => {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/product-detail/for/customer',
|
|
data
|
|
})
|
|
}
|
|
/**
|
|
* 立即订购
|
|
* swagger:https://api-ops-yyt-test.qniao.cn//base-paper-trading/swagger-ui/index.html?urls.primaryName=CustomerApi#/
|
|
*/
|
|
export const createGoodsReserve = (data = {}) => {
|
|
return http.post(
|
|
{
|
|
url: '/base-paper-trading/buyer/paper/goods/reserve',
|
|
data
|
|
},
|
|
{ isEncrypt: true }
|
|
)
|
|
}
|
|
/**
|
|
* 加入购物车
|
|
* swagger:http://api-ops-yyt-test.qniao.cn/base-paper-trading/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E8%B4%AD%E7%89%A9%E8%BD%A6/addShoppingCarUsingPOST
|
|
*/
|
|
export const createShoppingCar = (data = {}) => {
|
|
return http.post({
|
|
url: '/base-paper-trading/add/shopping-car',
|
|
data
|
|
})
|
|
}
|