/* eslint-disable */
|
// @ts-ignore
|
import { request } from '@/utils/request';
|
|
/** 删除数据字典类别 DELETE /api/main/dictionary/deleteDictionaryCategory */
|
export async function deleteDictionaryCategory(
|
body: API.DeleteDictionaryCategoryCommand,
|
options?: API.RequestConfig
|
) {
|
return request<number>('/api/main/dictionary/deleteDictionaryCategory', {
|
method: 'DELETE',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 获取数据字典类别分页列表数据 POST /api/main/dictionary/getDictionaryCategories */
|
export async function getDictionaryCategories(
|
body: API.GetDictionaryCategoriesQuery,
|
options?: API.RequestConfig
|
) {
|
return request<API.PagedListQueryResultGetDictionaryCategoriesQueryResultItem>(
|
'/api/main/dictionary/getDictionaryCategories',
|
{
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 查询数据字典类别选择器数据 GET /api/main/dictionary/getDictionaryCategorySelect */
|
export async function getDictionaryCategorySelect(
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
params: API.APIgetDictionaryCategorySelectParams,
|
options?: API.RequestConfig
|
) {
|
return request<API.SelectQueryResultOptionGuidGetDictionaryCategorySelectQueryOption[]>(
|
'/api/main/dictionary/getDictionaryCategorySelect',
|
{
|
method: 'GET',
|
params: {
|
...params,
|
request: undefined,
|
...params['request'],
|
},
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 获取数据字典分页列表数据 POST /api/main/dictionary/getDictionaryDatas */
|
export async function getDictionaryDatas(
|
body: API.GetDictionaryDatasQuery,
|
options?: API.RequestConfig
|
) {
|
return request<API.PagedListQueryResultGetDictionaryDatasQueryResultItem>(
|
'/api/main/dictionary/getDictionaryDatas',
|
{
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 查询数据字典选择器 GET /api/main/dictionary/getDictionaryDataSelect */
|
export async function getDictionaryDataSelect(
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
params: API.APIgetDictionaryDataSelectParams,
|
options?: API.RequestConfig
|
) {
|
return request<API.SelectQueryResultOptionGuidGetDictionaryDataSelectQueryResultOption[]>(
|
'/api/main/dictionary/getDictionaryDataSelect',
|
{
|
method: 'GET',
|
params: {
|
...params,
|
},
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 保存数据字典类别 POST /api/main/dictionary/saveDictionaryCategory */
|
export async function saveDictionaryCategory(
|
body: API.SaveDictionaryCategoryCommand,
|
options?: API.RequestConfig
|
) {
|
return request<string>('/api/main/dictionary/saveDictionaryCategory', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 保存数据字典 POST /api/main/dictionary/saveDictionaryData */
|
export async function saveDictionaryData(
|
body: API.SaveDictionaryDataCommand,
|
options?: API.RequestConfig
|
) {
|
return request<string>('/api/main/dictionary/saveDictionaryData', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 设置数据字典是否禁用 PUT /api/main/dictionary/setDictionaryDataIsDisabled */
|
export async function setDictionaryDataIsDisabled(
|
body: API.SetDictionaryDataIsDisabledCommand,
|
options?: API.RequestConfig
|
) {
|
return request<number>('/api/main/dictionary/setDictionaryDataIsDisabled', {
|
method: 'PUT',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|