| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import request from '@/utils/request'
- export function listCategory(query) {
- return request({
- url: '/category/list',
- method: 'get',
- params: query
- })
- }
- export function listCatL1() {
- return request({
- url: '/category/l1',
- method: 'get'
- })
- }
- export function createCategory(data) {
- return request({
- url: '/category/create',
- method: 'post',
- data
- })
- }
- export function readCategory(data) {
- return request({
- url: '/category/read',
- method: 'get',
- data
- })
- }
- export function updateCategory(data) {
- return request({
- url: '/category/update',
- method: 'post',
- data
- })
- }
- export function deleteCategory(data) {
- return request({
- url: '/category/delete',
- method: 'post',
- data
- })
- }
|