You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
551 B
34 lines
551 B
import request from '@/utils/request' |
|
|
|
export function getCates(params) { |
|
return request({ |
|
url: 'api/yxStoreCategory', |
|
method: 'get', |
|
params |
|
}) |
|
} |
|
|
|
export function add(data) { |
|
return request({ |
|
url: 'api/yxStoreCategory', |
|
method: 'post', |
|
data |
|
}) |
|
} |
|
|
|
export function del(id) { |
|
return request({ |
|
url: 'api/yxStoreCategory/' + id, |
|
method: 'delete' |
|
}) |
|
} |
|
|
|
export function edit(data) { |
|
return request({ |
|
url: 'api/yxStoreCategory', |
|
method: 'put', |
|
data |
|
}) |
|
} |
|
|
|
export default { add, edit, del, getCates }
|
|
|