微调
This commit is contained in:
23
frontend/src/api/system/dictionary/dictTree/index.ts
Normal file
23
frontend/src/api/system/dictionary/dictTree/index.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user