From 268bf6d9cbfc7c534f231991e88bab727c6e0a28 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 14 八月 2025 11:06:08 +0800
Subject: [PATCH] feat: 接口

---
 src/services/api/auth.ts |  150 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 149 insertions(+), 1 deletions(-)

diff --git a/src/services/api/auth.ts b/src/services/api/auth.ts
index db28f67..1a95129 100644
--- a/src/services/api/auth.ts
+++ b/src/services/api/auth.ts
@@ -2,6 +2,36 @@
 // @ts-ignore
 import { request } from '@/utils/request';
 
+/** 缁戝畾寰俊灏忕▼搴忕敤鎴蜂俊鎭� POST /api/user/auth/bindWxmpUserInfo */
+export async function bindWxmpUserInfo(
+  body: API.BindWxmpUserInfoCommand,
+  options?: API.RequestConfig
+) {
+  return request<API.LoginCommandCallback>('/api/user/auth/bindWxmpUserInfo', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鏇存崲鎵嬫満鍙� POST /api/user/auth/changePhoneNumber */
+export async function changePhoneNumber(
+  body: API.ChangePhoneNumberCommand,
+  options?: API.RequestConfig
+) {
+  return request<boolean>('/api/user/auth/changePhoneNumber', {
+    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榛樿娌℃湁鐢熸垚瀵硅薄)
@@ -14,6 +44,21 @@
       ...params,
       request: undefined,
       ...params['request'],
+    },
+    ...(options || {}),
+  });
+}
+
+/** 鑾峰彇褰撳墠鐧诲綍鐢ㄦ埛鑿滃崟璇︽儏 GET /api/user/auth/getCurrentLogierMenu */
+export async function getCurrentLogierMenu(
+  // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+  params: API.APIgetCurrentLogierMenuParams,
+  options?: API.RequestConfig
+) {
+  return request<API.GetMenuQueryResult>('/api/user/auth/getCurrentLogierMenu', {
+    method: 'GET',
+    params: {
+      ...params,
     },
     ...(options || {}),
   });
@@ -36,9 +81,112 @@
   });
 }
 
+/** 鏌ヨ浼佷笟鐢ㄦ埛鐧诲綍淇℃伅 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.PasswordLoginCommandCallback>('/api/user/auth/passwordLogin', {
+  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<boolean>('/api/user/auth/registerPersonalUser', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鍙戦�佺櫥褰曟垨娉ㄥ唽鐭俊 POST /api/user/auth/sendLoginOrRegisterVerifyCode */
+export async function sendLoginOrRegisterVerifyCode(
+  body: API.SendLoginOrRegisterVerifyCodeCommand,
+  options?: API.RequestConfig
+) {
+  return request<string>('/api/user/auth/sendLoginOrRegisterVerifyCode', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鐭俊鐧诲綍 POST /api/user/auth/smsLogin */
+export async function smsLogin(body: API.SmsLoginCommand, options?: API.RequestConfig) {
+  return request<API.LoginCommandCallback>('/api/user/auth/smsLogin', {
+    method: 'POST',
+    headers: {
+      'Content-Type': 'application/json-patch+json',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 鍙戦�佹洿鎹㈡墜鏈哄彿鐭俊 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', {
     method: 'POST',
     headers: {
       'Content-Type': 'application/json-patch+json',

--
Gitblit v1.9.1