From 93393138afcda975703f8c89ae1702fb62502080 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 05 八月 2025 13:11:49 +0800 Subject: [PATCH] fix: 修改功能模块 --- src/services/api/auth.ts | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/services/api/auth.ts b/src/services/api/auth.ts index 27f5cb5..ddc31b1 100644 --- a/src/services/api/auth.ts +++ b/src/services/api/auth.ts @@ -2,11 +2,25 @@ // @ts-ignore import { request } from '@/utils/request'; -/** 瀵嗙爜鐧诲綍 POST /api/user/auth/passwordLogin */ -export async function authPasswordLogin( - body: API.PasswordLoginCommand, +/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 GET /api/user/auth/getAliyunOSSAcs */ +export async function getAliyunOSSAcs( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetAliyunOSSAcsParams, options?: API.RequestConfig ) { + return request<API.GetAliyunOSSAcsQueryResult>('/api/user/auth/getAliyunOSSAcs', { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + }); +} + +/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 POST /api/user/auth/passwordLogin */ +export async function passwordLogin(body: API.PasswordLoginCommand, options?: API.RequestConfig) { return request<API.PasswordLoginCommandCallback>('/api/user/auth/passwordLogin', { method: 'POST', headers: { -- Gitblit v1.9.1