🏷️ 完善类型

This commit is contained in:
BTMuli
2023-05-22 22:54:36 +08:00
parent 58358ff774
commit 573eb8bbe4
4 changed files with 59 additions and 3 deletions

33
src/types/Sqlite/Account.d.ts vendored Normal file
View File

@@ -0,0 +1,33 @@
/**
* @file types Sqlite Account.d.ts
* @description Sqlite Account 类型定义文件
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.5
*/
declare namespace TGApp.Sqlite.Account {
/**
* @description 游戏账号类型
* @since Alpha v0.1.5
* @interface Game
* @property {string} gameBiz 游戏 biz例如 hk4e_cn
* @property {string} gameUid 游戏 uid
* @property {number} isChosen 是否为当前选中账号
* @property {number} isOfficial 是否为官服账号
* @property {string} level 游戏等级
* @property {string} nickname 游戏昵称
* @property {string} region 游戏区域
* @property {string} regionName 游戏区域名称
* @return Game
*/
export interface Game {
gameBiz: string
gameUid: string
isChosen: 0 | 1
isOfficial: 0 | 1
level: string
nickname: string
region: string
regionName: string
}
}

View File

@@ -6,7 +6,7 @@
* @since Alpha v0.1.5
*/
declare namespace BTMuli.Sqlite.Achievement {
declare namespace TGApp.Sqlite.Achievement {
/**
* @description 数据库-成就表
* @since Alpha v0.1.5

23
src/types/Sqlite/AppData.d.ts vendored Normal file
View File

@@ -0,0 +1,23 @@
/**
* @file types Sqlite AppData.d.ts
* @description Sqlite AppData 类型定义文件
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.5
*/
declare namespace TGApp.Sqlite.AppData {
/**
* @description AppData 数据
* @since Alpha v0.1.5
* @interface Item
* @property {string} key - 键
* @property {string} value - 值
* @property {string} updated - 数据库更新时间
* @return Item
*/
export interface Item {
key: string
value: string
updated: string
}
}

View File

@@ -5,7 +5,7 @@
* @since Alpha v0.1.5
*/
declare namespace BTMuli.User.Account {
declare namespace TGApp.User.Account {
/**
* @description 游戏账号返回类型
* @interface GameResponse
@@ -27,7 +27,7 @@ declare namespace BTMuli.User.Account {
* @property {string} game_biz 游戏 biz例如 hk4e_cn
* @property {string} game_uid 游戏 uid
* @property {boolean} is_chosen 是否为当前选中账号
* @property {string} is_official 是否为官服账号
* @property {boolean} is_official 是否为官服账号
* @property {string} level 游戏等级
* @property {string} nickname 游戏昵称
* @property {string} region 游戏区域