From d33b55e5f1a22f77cb51c3da1a03a4fefccce71d Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期日, 19 十月 2025 15:22:20 +0800
Subject: [PATCH] fix: 验收管理
---
packages/services/apiV2/auth.ts | 80 ++++++++++++++++++++++++++++++++++++----
1 files changed, 72 insertions(+), 8 deletions(-)
diff --git a/packages/services/apiV2/auth.ts b/packages/services/apiV2/auth.ts
index 38dc7f7..29e4032 100644
--- a/packages/services/apiV2/auth.ts
+++ b/packages/services/apiV2/auth.ts
@@ -2,12 +2,12 @@
// @ts-ignore
import { request } from '@/utils/request';
-/** 缁戝畾鎵嬫満鍙� POST /api/user/auth/bindPhoneNumber */
-export async function bindPhoneNumber(
- body: API.BindPhoneNumberCommand,
+/** 缁戝畾寰俊灏忕▼搴忕敤鎴蜂俊鎭� POST /api/user/auth/bindWxmpUserInfo */
+export async function bindWxmpUserInfo(
+ body: API.BindWxmpUserInfoCommand,
options?: API.RequestConfig
) {
- return request<boolean>('/api/user/auth/bindPhoneNumber', {
+ return request<API.LoginCommandCallback>('/api/user/auth/bindWxmpUserInfo', {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
@@ -17,12 +17,12 @@
});
}
-/** 缁戝畾寰俊灏忕▼搴忕敤鎴蜂俊鎭� POST /api/user/auth/bindWxmpUserInfo */
-export async function bindWxmpUserInfo(
- body: API.BindWxmpUserInfoCommand,
+/** 鏇存崲鎵嬫満鍙� POST /api/user/auth/changePhoneNumber */
+export async function changePhoneNumber(
+ body: API.ChangePhoneNumberCommand,
options?: API.RequestConfig
) {
- return request<API.LoginCommandCallback>('/api/user/auth/bindWxmpUserInfo', {
+ return request<boolean>('/api/user/auth/changePhoneNumber', {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
@@ -81,9 +81,58 @@
});
}
+/** 鏌ヨ浼佷笟鐢ㄦ埛鐧诲綍淇℃伅 GET /api/user/auth/getEnterpriseLoginInfo */
+export async function getEnterpriseLoginInfo(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetEnterpriseLoginInfoParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetEnterpriseLoginInfoQueryResult>('/api/user/auth/getEnterpriseLoginInfo', {
+ method: 'GET',
+ params: {
+ ...params,
+ request: undefined,
+ ...params['request'],
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鏌ヨ涓汉鐢ㄦ埛鐧诲綍淇℃伅 GET /api/user/auth/getPersonalLoginInfo */
+export async function getPersonalLoginInfo(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetPersonalLoginInfoParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetPersonalLoginInfoQueryResult>('/api/user/auth/getPersonalLoginInfo', {
+ 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.LoginCommandCallback>('/api/user/auth/passwordLogin', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 娉ㄥ唽涓汉璐﹀彿 POST /api/user/auth/registerPersonalUser */
+export async function registerPersonalUser(
+ body: API.RegisterPersonalUserCommand,
+ options?: API.RequestConfig
+) {
+ return request<API.LoginCommandCallback>('/api/user/auth/registerPersonalUser', {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
@@ -120,6 +169,21 @@
});
}
+/** 鍙戦�佹洿鎹㈡墜鏈哄彿鐭俊 POST /api/user/auth/updatePhoneNumberVerifyCode */
+export async function updatePhoneNumberVerifyCode(
+ body: API.UpdatePhoneNumberVerifyCodeCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/auth/updatePhoneNumberVerifyCode', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
/** 寰俊灏忕▼搴忕櫥褰� POST /api/user/auth/wxmpLogin */
export async function wxmpLogin(body: API.WxmpLoginCommand, options?: API.RequestConfig) {
return request<API.LoginCommandCallback>('/api/user/auth/wxmpLogin', {
--
Gitblit v1.9.1