first commit

This commit is contained in:
lxj
2025-06-26 12:38:35 +08:00
commit c536475e19
1236 changed files with 186274 additions and 0 deletions

53
common/http/eatery.js Normal file
View File

@@ -0,0 +1,53 @@
import https from './interface'
export default {
// GET 查询菜品类型列表
getTypeList (data) {
return https({
url: `/app/eatery/type/list/all`,
method: 'GET',
data
})
},
//门店信息列表
getShopList (data) {
return https({
url: `/app/eatery/shopInfo/list`,
method: 'GET',
data
})
},
//门店详情信息
getShopInfo (id) {
return https({
url: `/app/eatery/shopInfo/${id}`,
method: 'GET'
})
},
getWithProduct (data) {
return https({
url: `/app/eatery/type/list/with/product`,
method: 'GET',
data
})
},
/**
* 获取菜品列表
* 这块类型+菜品接口
* @param id
* @returns {Promise | Promise<unknown> | *}
*/
getWithProduct1 (id) {
return https({
url: `/app/eatery/shopInfo/product/${id}`,
method: 'GET'
})
},
getProductList (data) {
return https({
url: `/app/eatery/product/list`,
method: 'GET',
data
})
}
}