| | |
| | | |
| | | // 列表 |
| | | export const getList = async (data) => { |
| | | return request(`/goods/mgt/goods-category/page`, { |
| | | method: 'POST', |
| | | data |
| | | return request(`/api/huacheng-sangeshenbian/problemType/list`, { |
| | | method: 'GET', |
| | | params:data |
| | | }); |
| | | } |
| | | |
| | | |
| | | // 添加dept |
| | | export const addAndEdit = async (data) => { |
| | | return request('/goods/mgt/goods-category/save', { |
| | | export const add = async (data) => { |
| | | return request('/api/huacheng-sangeshenbian/problemType/add', { |
| | | method: 'POST', |
| | | data, |
| | | }); |
| | | } |
| | | |
| | | // 添加dept |
| | | export const Edit = async (data) => { |
| | | return request('/api/huacheng-sangeshenbian/problemType/edit', { |
| | | method: 'POST', |
| | | data, |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | // 批量删除dept |
| | | export const del = async (id) => { |
| | | return request(`/goods/mgt/goods-category/${id}`, { |
| | | return request(`/api/huacheng-sangeshenbian/problemType/delete/${id}`, { |
| | | method: 'DELETE', |
| | | // data |
| | | }); |