mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🏷️ 完善类型
This commit is contained in:
33
src/types/Sqlite/Account.d.ts
vendored
Normal file
33
src/types/Sqlite/Account.d.ts
vendored
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
2
src/types/Sqlite/Achievement.d.ts
vendored
2
src/types/Sqlite/Achievement.d.ts
vendored
@@ -6,7 +6,7 @@
|
|||||||
* @since Alpha v0.1.5
|
* @since Alpha v0.1.5
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare namespace BTMuli.Sqlite.Achievement {
|
declare namespace TGApp.Sqlite.Achievement {
|
||||||
/**
|
/**
|
||||||
* @description 数据库-成就表
|
* @description 数据库-成就表
|
||||||
* @since Alpha v0.1.5
|
* @since Alpha v0.1.5
|
||||||
|
|||||||
23
src/types/Sqlite/AppData.d.ts
vendored
Normal file
23
src/types/Sqlite/AppData.d.ts
vendored
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
4
src/types/User/Account.d.ts
vendored
4
src/types/User/Account.d.ts
vendored
@@ -5,7 +5,7 @@
|
|||||||
* @since Alpha v0.1.5
|
* @since Alpha v0.1.5
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare namespace BTMuli.User.Account {
|
declare namespace TGApp.User.Account {
|
||||||
/**
|
/**
|
||||||
* @description 游戏账号返回类型
|
* @description 游戏账号返回类型
|
||||||
* @interface GameResponse
|
* @interface GameResponse
|
||||||
@@ -27,7 +27,7 @@ declare namespace BTMuli.User.Account {
|
|||||||
* @property {string} game_biz 游戏 biz,例如 hk4e_cn
|
* @property {string} game_biz 游戏 biz,例如 hk4e_cn
|
||||||
* @property {string} game_uid 游戏 uid
|
* @property {string} game_uid 游戏 uid
|
||||||
* @property {boolean} is_chosen 是否为当前选中账号
|
* @property {boolean} is_chosen 是否为当前选中账号
|
||||||
* @property {string} is_official 是否为官服账号
|
* @property {boolean} is_official 是否为官服账号
|
||||||
* @property {string} level 游戏等级
|
* @property {string} level 游戏等级
|
||||||
* @property {string} nickname 游戏昵称
|
* @property {string} nickname 游戏昵称
|
||||||
* @property {string} region 游戏区域
|
* @property {string} region 游戏区域
|
||||||
|
|||||||
Reference in New Issue
Block a user