mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-04 07:05:07 +08:00
♻️ 类型重构完毕,开始修改数据源
This commit is contained in:
48
src/types/User/Account.d.ts
vendored
Normal file
48
src/types/User/Account.d.ts
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* @file types User Account.d.ts
|
||||
* @description 用户账号相关类型定义文件
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.1.5
|
||||
*/
|
||||
|
||||
declare namespace BTMuli.User.Account {
|
||||
/**
|
||||
* @description 游戏账号返回类型
|
||||
* @interface GameResponse
|
||||
* @since Alpha v0.1.5
|
||||
* @extends BTMuli.Constant.Response.Base
|
||||
* @property {Game} data.list 游戏账号列表
|
||||
* @return GameResponse
|
||||
*/
|
||||
export interface GameResponse extends BTMuli.Constant.Response.Base {
|
||||
data: {
|
||||
list: Game
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 游戏账号类型
|
||||
* @interface Game
|
||||
* @since Alpha v0.1.5
|
||||
* @property {string} game_biz 游戏 biz,例如 hk4e_cn
|
||||
* @property {string} game_uid 游戏 uid
|
||||
* @property {boolean} is_chosen 是否为当前选中账号
|
||||
* @property {string} is_official 是否为官服账号
|
||||
* @property {string} level 游戏等级
|
||||
* @property {string} nickname 游戏昵称
|
||||
* @property {string} region 游戏区域
|
||||
* @property {string} region_name 游戏区域名称
|
||||
* @return Game
|
||||
*/
|
||||
export interface Game {
|
||||
game_biz: string
|
||||
game_uid: string
|
||||
is_chosen: boolean
|
||||
is_official: boolean
|
||||
level: string
|
||||
nickname: string
|
||||
region: string
|
||||
region_name: string
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user