feat-wip(views): 数据字典相关页面代码提交
This commit is contained in:
@ -1,26 +1,26 @@
|
||||
import { request } from '../../../request';
|
||||
|
||||
export function fetchPageDictionary(pageRequest: Api.Sys.Core.DictionaryQueryPageRequest) {
|
||||
return request<Api.Common.PageResponse<Api.Sys.Core.Dictionary>>({
|
||||
export function fetchDictionaryPaginate(pageRequest: Api.Common.PageRequest<Api.Sys.Core.DictionaryDTO>) {
|
||||
return request<Api.Common.PageResponse<Api.Sys.Core.DictionaryVO>>({
|
||||
url: '/dictionary/paginate',
|
||||
method: 'post',
|
||||
data: pageRequest
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryAdd(dictionaryOp: Api.Sys.Core.DictionaryOp) {
|
||||
export function fetchDictionaryInsert(dictionaryDTO: Api.Sys.Core.DictionaryDTO) {
|
||||
return request({
|
||||
url: '/dictionary/insert',
|
||||
method: 'post',
|
||||
data: dictionaryOp
|
||||
data: dictionaryDTO
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryEdit(dictionaryOp: Api.Sys.Core.DictionaryOp) {
|
||||
export function fetchDictionaryUpdate(dictionaryDTO: Api.Sys.Core.DictionaryDTO) {
|
||||
return request({
|
||||
url: '/dictionary/update',
|
||||
method: 'post',
|
||||
data: dictionaryOp
|
||||
data: dictionaryDTO
|
||||
});
|
||||
}
|
||||
|
||||
@ -44,8 +44,8 @@ export function fetchDictionaryDeleteBatch(ids: string[]) {
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchTreeDictionaryItem(dictionaryId: string) {
|
||||
return request<Api.Sys.Core.DictionaryItem[]>({
|
||||
export function fetchDictionaryItemTreeList(dictionaryId: string) {
|
||||
return request<Api.Sys.Core.DictionaryItemVO[]>({
|
||||
url: '/dictionaryItem/tree',
|
||||
method: 'post',
|
||||
data: {
|
||||
@ -54,19 +54,19 @@ export function fetchTreeDictionaryItem(dictionaryId: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryItemAdd(dictionaryOp: Api.Sys.Core.DictionaryItemOp) {
|
||||
export function fetchDictionaryItemInsert(dictionaryItemDTO: Api.Sys.Core.DictionaryItemDTO) {
|
||||
return request({
|
||||
url: '/dictionaryItem/insert',
|
||||
method: 'post',
|
||||
data: dictionaryOp
|
||||
data: dictionaryItemDTO
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryItemEdit(dictionaryOp: Api.Sys.Core.DictionaryItemOp) {
|
||||
export function fetchDictionaryItemUpdate(dictionaryItemDTO: Api.Sys.Core.DictionaryItemDTO) {
|
||||
return request({
|
||||
url: '/dictionaryItem/update',
|
||||
method: 'post',
|
||||
data: dictionaryOp
|
||||
data: dictionaryItemDTO
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user