24 lines
623 B
TypeScript
24 lines
623 B
TypeScript
|
|
import http from '@/api'
|
||
|
|
import { type Dict } from '@/api/system/dictionary/interface'
|
||
|
|
|
||
|
|
//获取字典类型
|
||
|
|
export const getDictTreeList = (params: Dict.ReqDictTreeParams) => {
|
||
|
|
return http.get(`/dictTree/queryTree`, params)
|
||
|
|
}
|
||
|
|
|
||
|
|
//添加字典类型
|
||
|
|
export const addDictTree = (params: Dict.ResDictTree) => {
|
||
|
|
return http.post(`/dictTree/add`, params)
|
||
|
|
}
|
||
|
|
|
||
|
|
//编辑字典类型
|
||
|
|
export const updateDictTree = (params: Dict.ResDictTree) => {
|
||
|
|
return http.post(`/dictTree/update`, params)
|
||
|
|
}
|
||
|
|
|
||
|
|
//删除字典类型
|
||
|
|
export const deleteDictTree = (params: string[]) => {
|
||
|
|
return http.post(`/dictTree/delete`, params)
|
||
|
|
}
|
||
|
|
|