first1
This commit is contained in:
23
src/types/business/auth.d.ts
vendored
Normal file
23
src/types/business/auth.d.ts
vendored
Normal 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
|
||||
Reference in New Issue
Block a user