1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

创建微服务:microservice-provider-shop-8003;小程序商品列表筛选、商品详情完成

This commit is contained in:
2023-03-18 23:00:58 +08:00
parent ee7e2e9acb
commit 7eab148104
41 changed files with 1161 additions and 84 deletions

View File

@@ -0,0 +1,34 @@
/* eslint-disable no-param-reassign */
const send_request = require('../utils/sendRequest')
/** 获取商品分类列表 */
export function getGoodCategoryList() {
return send_request({
url: '/shop/good/miniprogram/cateList',
method: "GET"
})
}
/** 获取商品列表 */
export function getGoodList(goodCategoryId, searchText) {
return send_request({
url: '/shop/good/miniprogram/list',
method: "GET",
data: {
cateId: goodCategoryId,
searchText: searchText.trim(),
}
})
}
/** 获取商品详情 */
export function getGoodDetail(id) {
return send_request({
url: '/shop/good/miniprogram/detail',
method: "GET",
data: {
id: id,
}
})
}