ai-manus/chat-client/src/api/dictionaryManagement.ts

53 lines
969 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
/**
* 根据字典id获取字典子项
* @param ParentId 数字类型父级字典的id
* @returns
*/
export function getDic(ParentId: any) {
return request({
url: '/brichat-service/SysDic/getDicByParentId',
method: 'post',
data: ParentId,
})
}
export function getTree() {
return request({
url: '/brichat-service/SysDic/getAllDic',
method: 'get',
})
}
export function getList() {
return request({
url: '/brichat-service/SysDic/getAllDicDetails',
method: 'get',
})
}
export function doAdd(data: any) {
return request({
url: '/brichat-service/SysDic/doAdd',
method: 'post',
data,
})
}
export function doEdit(data: any) {
return request({
url: '/brichat-service/SysDic/doEdit',
method: 'post',
data,
})
}
export function doDeleteById(data: any) {
return request({
url: '/brichat-service/SysDic/deleteById',
method: 'post',
data,
})
}