♻️ 类型重构完毕,开始修改数据源

This commit is contained in:
BTMuli
2023-05-22 22:00:26 +08:00
parent ac4a2e465a
commit c5b073909b
34 changed files with 2085 additions and 1957 deletions

48
src/types/User/Account.d.ts vendored Normal file
View 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
}
}