From fe09be116e0ffaef7ebd110bdf6375d817f72473 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 08 八月 2025 10:43:46 +0800 Subject: [PATCH] fix: 修改 --- src/services/api/dictionary.ts | 142 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 138 insertions(+), 4 deletions(-) diff --git a/src/services/api/dictionary.ts b/src/services/api/dictionary.ts index 3d209df..4c74b85 100644 --- a/src/services/api/dictionary.ts +++ b/src/services/api/dictionary.ts @@ -2,13 +2,147 @@ // @ts-ignore import { request } from '@/utils/request'; -/** 鑾峰彇瀛楀吀鏁版嵁鍒嗛〉鍒楄〃 GET /api/main/dictionary/getDictionaryDatas */ -export async function dictionaryGetDictionaryDatas( +/** 鍒犻櫎鏁版嵁瀛楀吀绫诲埆 DELETE /api/flexjob/dictionary/deleteDictionaryCategory */ +export async function deleteDictionaryCategory( + body: API.DeleteDictionaryCategoryCommand, + options?: API.RequestConfig +) { + return request<number>('/api/flexjob/dictionary/deleteDictionaryCategory', { + method: 'DELETE', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鑾峰彇鏁版嵁瀛楀吀绫诲埆鍒嗛〉鍒楄〃鏁版嵁 POST /api/flexjob/dictionary/getDictionaryCategories */ +export async function getDictionaryCategories( + body: API.GetDictionaryCategoriesQuery, + options?: API.RequestConfig +) { + return request<API.PagedListQueryResultGetDictionaryCategoriesQueryResultItem>( + '/api/flexjob/dictionary/getDictionaryCategories', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 鏌ヨ鏁版嵁瀛楀吀绫诲埆閫夋嫨鍣ㄦ暟鎹� GET /api/flexjob/dictionary/getDictionaryCategorySelect */ +export async function getDictionaryCategorySelect( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetDictionaryCategorySelectParams, + options?: API.RequestConfig +) { + return request<API.SelectOptionGuidGetDictionaryCategorySelectQueryOption[]>( + '/api/flexjob/dictionary/getDictionaryCategorySelect', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + +/** 鑾峰彇鏁版嵁瀛楀吀鍒嗛〉鍒楄〃鏁版嵁 POST /api/flexjob/dictionary/getDictionaryDatas */ +export async function getDictionaryDatas( body: API.GetDictionaryDatasQuery, options?: API.RequestConfig ) { - return request<API.GetDictionaryDatasQueryResult>('/api/main/dictionary/getDictionaryDatas', { - method: 'GET', + return request<API.PagedListQueryResultGetDictionaryDatasQueryResultItem>( + '/api/flexjob/dictionary/getDictionaryDatas', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 鏌ヨ鏁版嵁瀛楀吀閫夋嫨鍣� GET /api/flexjob/dictionary/getDictionaryDataSelect */ +export async function getDictionaryDataSelect( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetDictionaryDataSelectParams, + options?: API.RequestConfig +) { + return request<API.SelectOptionStringGetDictionaryDataSelectQueryResultOption[]>( + '/api/flexjob/dictionary/getDictionaryDataSelect', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 淇濆瓨鏁版嵁瀛楀吀绫诲埆 POST /api/flexjob/dictionary/saveDictionaryCategory */ +export async function saveDictionaryCategory( + body: API.SaveDictionaryCategoryCommand, + options?: API.RequestConfig +) { + return request<string>('/api/flexjob/dictionary/saveDictionaryCategory', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 淇濆瓨鏁版嵁瀛楀吀 POST /api/flexjob/dictionary/saveDictionaryData */ +export async function saveDictionaryData( + body: API.SaveDictionaryDataCommand, + options?: API.RequestConfig +) { + return request<string>('/api/flexjob/dictionary/saveDictionaryData', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 璁剧疆鏁版嵁瀛楀吀鏄惁绂佺敤 PUT /api/flexjob/dictionary/setDictionaryDataIsDisabled */ +export async function setDictionaryDataIsDisabled( + body: API.SetDictionaryDataIsDisabledCommand, + options?: API.RequestConfig +) { + return request<number>('/api/flexjob/dictionary/setDictionaryDataIsDisabled', { + method: 'PUT', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(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', }, -- Gitblit v1.9.1