From cb795c5827f6e7c0e4d2c1358f27d0862f502b5b Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 06 八月 2025 11:22:55 +0800 Subject: [PATCH] fix: 修改功能模块 --- src/services/api/dictionary.ts | 78 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 78 insertions(+), 0 deletions(-) diff --git a/src/services/api/dictionary.ts b/src/services/api/dictionary.ts index 961750b..26f00b9 100644 --- a/src/services/api/dictionary.ts +++ b/src/services/api/dictionary.ts @@ -2,6 +2,39 @@ // @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 || {}), + } + ); +} + /** 鑾峰彇瀛楀吀鏁版嵁鍒嗛〉鍒楄〃 POST /api/main/dictionary/getDictionaryDatas */ export async function getDictionaryDatas( body: API.GetDictionaryDatasQuery, @@ -19,3 +52,48 @@ } ); } + +/** 淇濆瓨瀛楀吀绫诲埆 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 || {}), + }); +} -- Gitblit v1.9.1