From bc1e862b8a487589dae756e3e1c5a5644c7986f5 Mon Sep 17 00:00:00 2001
From: wsj <593216709@qq.com>
Date: Sat, 17 Oct 2026 17:43:37 +0800
Subject: [PATCH] feat: api
---
src/types/auth.ts | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/src/types/auth.ts b/src/types/auth.ts
index db880cb..eecd57d 100644
--- a/src/types/auth.ts
+++ b/src/types/auth.ts
@@ -5,13 +5,28 @@
username: string;
nickname: string;
role: UserRole;
+ tenant: string;
+ phone: string;
}
export interface LoginParams {
- username: string;
+ tenant: string;
+ phone: string;
password: string;
}
+/** `/auth/tenant-login` 返回的业务数据。 */
+export interface TenantLoginData {
+ token: string;
+ employeeId?: number;
+ employeeName?: string;
+ phone?: string;
+ tenantId?: string;
+ tenantCode?: string;
+ tenantName?: string;
+ loginType?: string;
+}
+
export interface LoginResult {
token: string;
user: UserInfo;
--
Gitblit v1.9.3