feat-wip(components): 数据字典相关页面代码提交
This commit is contained in:
45
src/service/api/sys/core/dictionary.ts
Normal file
45
src/service/api/sys/core/dictionary.ts
Normal file
@ -0,0 +1,45 @@
|
||||
import { request } from '../../../request';
|
||||
|
||||
export function fetchPageDictionary(pageRequest: Api.Sys.Core.DictionaryQueryPageRequest) {
|
||||
return request<Api.Common.PageResponse<Api.Sys.Core.Dictionary>>({
|
||||
url: '/dictionary/page',
|
||||
method: 'post',
|
||||
data: pageRequest
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryAdd(dictionaryOp: Api.Sys.Core.DictionaryOp) {
|
||||
return request({
|
||||
url: '/dictionary/add',
|
||||
method: 'post',
|
||||
data: dictionaryOp
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryEdit(dictionaryOp: Api.Sys.Core.DictionaryOp) {
|
||||
return request({
|
||||
url: '/dictionary/edit',
|
||||
method: 'post',
|
||||
data: dictionaryOp
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryDelete(id: string) {
|
||||
return request({
|
||||
url: '/dictionary/delete',
|
||||
method: 'post',
|
||||
data: {
|
||||
id
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDictionaryDeleteBatch(ids: string[]) {
|
||||
return request({
|
||||
url: '/dictionary/deleteBatch',
|
||||
method: 'post',
|
||||
data: {
|
||||
ids
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user