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