第一次提交
This commit is contained in:
21
api/categoty.js
Normal file
21
api/categoty.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import http from './index.js';
|
||||
|
||||
// 分页查询商品分类
|
||||
export const pageCategory = (params) => http.get('/open/category/page', {params})
|
||||
|
||||
// 分页查询全部商品分类
|
||||
export const listCategory = (params) => http.get('/open/category', {params})
|
||||
|
||||
// 查询商品分类
|
||||
export const getCategory = (categoryId) => http.get('/open/category/' + categoryId)
|
||||
|
||||
// 添加商品分类
|
||||
export const addCategory = (data) => http.post('/open/category', data)
|
||||
|
||||
|
||||
export default {
|
||||
pageCategory,
|
||||
listCategory,
|
||||
getCategory,
|
||||
addCategory
|
||||
}
|
||||
Reference in New Issue
Block a user