This commit is contained in:
wangzzpeng
2026-09-28 09:27:51 +08:00
parent 7bc84bbe5e
commit 6eb2bfcbfd
25 changed files with 2887 additions and 0 deletions

23
src/types/business/auth.d.ts vendored Normal file
View File

@@ -0,0 +1,23 @@
// 账号密码登录/注册真实接口类型(对接 vermis-maker /auth/*)
// 归位于 types/business/auth.d.ts,与 api/auth.ts 对应
/** 登录成功返回,对应后端 LoginVo(字段名以 @JsonProperty 为准) */
export interface LoginResult {
/** 授权令牌(后端字段 access_token) */
access_token: string
/** 刷新令牌 */
refresh_token?: string
/** access_token 有效期(秒) */
expire_in?: number
/** refresh_token 有效期(秒) */
refresh_expire_in?: number
/** 应用 id */
client_id?: string
/** 令牌权限 */
scope?: string
/** 用户 openid */
openid?: string
}
/** 注册返回:后端 R<Void>,无 data */
export type RegisterResult = void