From 8bb9173a95a87e3ceab4f48b5b34041af38b7c70 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 28 三月 2025 15:23:14 +0800 Subject: [PATCH] fix: 四期需求 --- packages/services/api/Account.ts | 45 +++++++++++++++++++++++++++++++++++++++------ 1 files changed, 39 insertions(+), 6 deletions(-) diff --git a/packages/services/api/Account.ts b/packages/services/api/Account.ts index ea2306b..d354b68 100644 --- a/packages/services/api/Account.ts +++ b/packages/services/api/Account.ts @@ -25,12 +25,9 @@ }); } -/** life pay鎵嬫満楠岃瘉鐮佺櫥褰� POST /api/Account/LifePayPhoneMesssageCodeLogin */ -export async function lifePayPhoneMesssageCodeLogin( - body: API.LifePayPhoneMesssageCodeLoginInput, - options?: API.RequestConfig -) { - return request<string>('/api/Account/LifePayPhoneMesssageCodeLogin', { +/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 POST /api/Account/GetTokenForWeb */ +export async function getTokenForWeb(body: API.AccessRequestDto, options?: API.RequestConfig) { + return request<API.IdentityModelTokenCacheItem>('/api/Account/GetTokenForWeb', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -40,6 +37,42 @@ }); } +/** life pay鎵嬫満楠岃瘉鐮佺櫥褰� POST /api/Account/LifePayPhoneMesssageCodeLogin */ +export async function lifePayPhoneMesssageCodeLogin( + body: API.LifePayPhoneMesssageCodeLoginInput, + options?: API.RequestConfig +) { + return request<API.LifePayPhoneMesssageCodeLoginOutput>( + '/api/Account/LifePayPhoneMesssageCodeLogin', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 鏍规嵁鐢ㄦ埛ID鑾峰彇鐢ㄦ埛鏄惁涓哄悗鍙扮鐞嗗憳 POST /api/Account/LifePayUserMesssageByIduser */ +export async function lifePayUserMesssageByIduser( + body: API.LifePayUserMesssageByIduserInput, + options?: API.RequestConfig +) { + return request<API.LifePayPhoneMesssageCodeLoginOutput>( + '/api/Account/LifePayUserMesssageByIduser', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); +} + /** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 GET /api/accountAuth/GetCode */ export async function getCode(options?: API.RequestConfig) { return request<any>('/api/accountAuth/GetCode', { -- Gitblit v1.9.1