22 lines
533 B
JavaScript
22 lines
533 B
JavaScript
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
|
|
}
|