| | |
| | | // 修改字典类型 |
| | | export function updateType(data) { |
| | | return request({ |
| | | url: '/system/dict/type', |
| | | method: 'put', |
| | | url: '/system/dict/type/edit', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | // 删除字典类型 |
| | | export function delType(dictId) { |
| | | return request({ |
| | | url: '/system/dict/type/' + dictId, |
| | | method: 'delete' |
| | | url: '/system/dict/type/remove/' + dictId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 刷新字典缓存 |
| | | export function refreshCache() { |
| | | return request({ |
| | | url: '/system/dict/type/refreshCache', |
| | | method: 'delete' |
| | | url: '/system/dict/type/refreshCache/remove', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |