import { request } from '../../../request'; export function fetchDictionaryPaginate(pageRequest: Api.Common.PageRequest) { return request>({ url: '/dictionary/paginate', method: 'post', data: pageRequest }); } export function fetchDictionaryInsert(dictionaryDTO: Api.Sys.Core.DictionaryDTO) { return request({ url: '/dictionary/insert', method: 'post', data: dictionaryDTO }); } export function fetchDictionaryUpdate(dictionaryDTO: Api.Sys.Core.DictionaryDTO) { return request({ url: '/dictionary/update', method: 'post', data: dictionaryDTO }); } 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 } }); } export function fetchDictionaryItemTreeList(dictionaryId: string) { return request({ url: '/dictionaryItem/tree', method: 'post', data: { dictionaryId } }); } export function fetchDictionaryItemInsert(dictionaryItemDTO: Api.Sys.Core.DictionaryItemDTO) { return request({ url: '/dictionaryItem/insert', method: 'post', data: dictionaryItemDTO }); } export function fetchDictionaryItemUpdate(dictionaryItemDTO: Api.Sys.Core.DictionaryItemDTO) { return request({ url: '/dictionaryItem/update', method: 'post', data: dictionaryItemDTO }); } export function fetchDictionaryItemDelete(id: string) { return request({ url: '/dictionaryItem/delete', method: 'post', data: { id } }); }