From 783acaeb90ded79cc3fc8163d5d9821cf5ea333b Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 13 八月 2025 13:34:38 +0800 Subject: [PATCH] fix: s --- src/services/api/resource.ts | 29 ++++++++++++++++++++++------- 1 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/services/api/resource.ts b/src/services/api/resource.ts index 92b3b47..5e25fe0 100644 --- a/src/services/api/resource.ts +++ b/src/services/api/resource.ts @@ -3,27 +3,42 @@ 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', + params: { + ...params, + }, + ...(options || {}), + }); +} + +/** 淇濆瓨浠诲姟璋冨害-浣滀笟 POST /api/user/resource/saveScheduleJobDetail */ +export async function saveScheduleJobDetail( + body: API.SaveScheduleJobDetailCommand, + options?: API.RequestConfig +) { + return request<boolean>('/api/user/resource/saveScheduleJobDetail', { + method: 'POST', headers: { 'Content-Type': 'application/json-patch+json', }, -- Gitblit v1.9.1