添加登录

This commit is contained in:
浅念
2025-07-11 18:37:16 +08:00
parent 719911918f
commit 713d43f7b4
34 changed files with 1281 additions and 180 deletions
+30 -4
View File
@@ -35,14 +35,22 @@ declare namespace Api {
namespace Auth {
/** 登录参数 */
interface LoginParams {
userName: string
password: string
account?: string
password?: string
feishu_code?: string
}
/** 登录响应 */
interface LoginResponse {
token: string
refreshToken: string
data: any
}
/** 登录响应 */
interface registerResponse {
code: any
}
/** 授权响应 */
interface Authfeishuscope {
auth_url: any
}
}
@@ -57,6 +65,7 @@ declare namespace Api {
avatar?: string
email?: string
phone?: string
menu?: any
}
/** 用户列表数据 */
@@ -130,4 +139,21 @@ declare namespace Api {
total: number
}
}
/** 角色 */
namespace Role {
/** 品牌信息 */
interface RoleInfo {
data: never[]
id: number
name: string
}
/** 品牌列表数据 */
interface RoleListData {
records: RoleInfo[]
current: number
size: number
total: number
}
}
}