From cf727afa850496f3a239907fab342b4bd3ff77fc Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 04 八月 2025 18:22:13 +0800 Subject: [PATCH] fix: 修改功能模块 --- src/services/api/resource.ts | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/services/api/resource.ts b/src/services/api/resource.ts index 92b3b47..dc3ef94 100644 --- a/src/services/api/resource.ts +++ b/src/services/api/resource.ts @@ -3,31 +3,31 @@ import { request } from '@/utils/request'; /** 鑾峰彇璧勬簮瀛楁 GET /api/user/resource/getResourceFields */ -export async function resourceGetResourceFields( - body: API.GetResourceFieldsQuery, +export async function getResourceFields( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetResourceFieldsParams, options?: API.RequestConfig ) { return request<API.GetResourceFieldsQueryResultItem[]>('/api/user/resource/getResourceFields', { method: 'GET', - headers: { - 'Content-Type': 'application/json-patch+json', + params: { + ...params, }, - data: body, ...(options || {}), }); } /** 鑾峰彇璧勬簮鍒楄〃 GET /api/user/resource/getResources */ -export async function resourceGetResources( - body: API.GetResourcesQuery, +export async function getResources( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetResourcesParams, options?: API.RequestConfig ) { return request<API.GetResourcesQueryResultItem[]>('/api/user/resource/getResources', { method: 'GET', - headers: { - 'Content-Type': 'application/json-patch+json', + params: { + ...params, }, - data: body, ...(options || {}), }); } -- Gitblit v1.9.1