| | |
| | | |
| | | // 查询 |
| | | export function fetchList (data) { |
| | | return request.post('/system/dictData/page', data) |
| | | return request.post('/visitsAdmin/cloudService/system/dictData/page', data) |
| | | } |
| | | |
| | | // 新建 |
| | | export function create (data) { |
| | | return request.post('/system/dictData/create', data) |
| | | return request.post('/visitsAdmin/cloudService/system/dictData/create', data) |
| | | } |
| | | |
| | | // 修改 |
| | | export function updateById (data) { |
| | | return request.post('/system/dictData/updateById', data) |
| | | return request.post('/visitsAdmin/cloudService/system/dictData/updateById', data) |
| | | } |
| | | |
| | | // 删除 |
| | | export function deleteById (id) { |
| | | return request.get(`/system/dictData/delete/${id}`) |
| | | return request.get(`/visitsAdmin/cloudService/system/dictData/delete/${id}`) |
| | | } |
| | | |
| | | // 查询字典值数据 |
| | | export function getSystemDictData (label) { |
| | | return request.get(`/visitsAdmin/cloudService/system/dictData/getSystemDictData?dictCode=SYSTEM&label=${label}`) |
| | | } |
| | | // 批量删除 |
| | | export function deleteByIdInBatch (ids) { |
| | | return request.get('/system/dictData/delete/batch', { |