From 0f8d8c435f53cd2e7d4243608745f0e6cb152289 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 11 八月 2025 10:00:09 +0800 Subject: [PATCH] feat: 接口对接 --- packages/services/apiV2/auth.ts | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/packages/services/apiV2/auth.ts b/packages/services/apiV2/auth.ts index f783319..6c5340a 100644 --- a/packages/services/apiV2/auth.ts +++ b/packages/services/apiV2/auth.ts @@ -2,6 +2,21 @@ // @ts-ignore import { request } from '@/utils/request'; +/** 缁戝畾鎵嬫満鍙� POST /api/user/auth/bindPhoneNumber */ +export async function bindPhoneNumber( + body: API.BindPhoneNumberCommand, + options?: API.RequestConfig +) { + return request<boolean>('/api/user/auth/bindPhoneNumber', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + /** 鑾峰彇闃块噷浜慜SS鎺堟潈淇℃伅 GET /api/user/auth/getAliyunOSSAcs */ export async function getAliyunOSSAcs( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) @@ -89,3 +104,15 @@ ...(options || {}), }); } + +/** 寰俊灏忕▼搴忕櫥褰� POST /api/user/auth/wxmpLogin */ +export async function wxmpLogin(body: API.WxmpLoginCommand, options?: API.RequestConfig) { + return request<API.LoginCommandCallback>('/api/user/auth/wxmpLogin', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} -- Gitblit v1.9.1