mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🏷️ 添加 UIGF 类型
This commit is contained in:
202
src/types/Plugins/UIGF.d.ts
vendored
202
src/types/Plugins/UIGF.d.ts
vendored
@@ -1,108 +1,108 @@
|
||||
/**
|
||||
* @file types Plugins UIGF.d.ts
|
||||
* @description UIGF 插件类型定义文件
|
||||
* @todo 待使用
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.0
|
||||
* @since Alpha v0.2.3
|
||||
*/
|
||||
|
||||
declare namespace TGApp.Plugins.UIGF {}
|
||||
declare namespace TGApp.Plugins.UIGF {
|
||||
/**
|
||||
* @description UIGF 数据
|
||||
* @since Alpha v0.2.3
|
||||
* @interface FullData
|
||||
* @property {Export} info - UIGF 头部信息
|
||||
* @property {GachaItem[]} list - UIGF 祈愿列表
|
||||
* @return FullData
|
||||
*/
|
||||
interface FullData {
|
||||
info: Export;
|
||||
list: GachaItem[];
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @description UIGF 数据
|
||||
// * @since Alpha v1.3.0
|
||||
// * @interface BaseData
|
||||
// * @property {UigfInfo} info - UIGF 头部信息
|
||||
// * @property {UigfGacha[]} list - UIGF 祈愿列表
|
||||
// * @return BaseData
|
||||
// */
|
||||
// export interface BaseData {
|
||||
// info: UigfInfo
|
||||
// list: UigfInfo[]
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description UIGF 头部信息
|
||||
// * @since Alpha v1.3.0
|
||||
// * @interface UigfInfo
|
||||
// * @property {string} uid - UID
|
||||
// * @property {string} lang - 语言
|
||||
// * @property {string} uigf_version - UIGF 版本
|
||||
// * @property {number} export_timestamp - 导出时间戳(秒)
|
||||
// * @property {string} export_time - 导出时间 yyyy-MM-dd HH:mm:ss
|
||||
// * @property {string} export_app - 导出应用
|
||||
// * @property {string} export_app_version - 导出应用版本
|
||||
// * @return UIGF_Info
|
||||
// */
|
||||
// export interface UigfInfo {
|
||||
// uid: string
|
||||
// lang: string
|
||||
// uigf_version: string
|
||||
// export_timestamp?: number
|
||||
// export_time?: string
|
||||
// export_app?: string
|
||||
// export_app_version?: string
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 祈愿类型
|
||||
// * @since Alpha v1.3.0
|
||||
// * @enum EnumGachaType
|
||||
// * @property {string} CharacterUp - 角色活动祈愿
|
||||
// * @property {string} CharacterUp2 - 角色活动祈愿2
|
||||
// * @property {string} WeaponUp - 武器活动祈愿
|
||||
// * @property {string} Normal - 普通祈愿
|
||||
// * @property {string} Newbie - 新手祈愿
|
||||
// * @return EnumGachaType
|
||||
// */
|
||||
// export enum EnumGachaType {
|
||||
// CharacterUp = "301",
|
||||
// CharacterUp2 = "400",
|
||||
// WeaponUp = "302",
|
||||
// Normal = "200",
|
||||
// Newbie = "100",
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description UIGF 祈愿类型
|
||||
// * @since Alpha v1.3.0
|
||||
// * @enum EnumUigfGachaType
|
||||
// * @property {string} CharacterUp - 角色活动祈愿&角色活动祈愿2
|
||||
// * @property {string} WeaponUp - 武器活动祈愿
|
||||
// * @property {string} Normal - 普通祈愿
|
||||
// * @property {string} Newbie - 新手祈愿
|
||||
// * @return EnumUigfGachaType
|
||||
// */
|
||||
// export enum EnumUigfGachaType {
|
||||
// CharacterUp = "301",
|
||||
// WeaponUp = "302",
|
||||
// Normal = "200",
|
||||
// Newbie = "100",
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description UIGF 祈愿列表
|
||||
// * @since Alpha v1.3.0
|
||||
// * @interface UigfGacha
|
||||
// * @property {EnumGachaType} gacha_type - 祈愿类型
|
||||
// * @property {string} item_id - 物品ID
|
||||
// * @property {string} count - 数量
|
||||
// * @property {string} time - 时间 yyyy-MM-dd HH:mm:ss
|
||||
// * @property {string} name - 名称
|
||||
// * @property {string} item_type - 物品类型
|
||||
// * @property {string} rank_type - 稀有度
|
||||
// * @property {string} id - ID
|
||||
// * @property {EnumUigfGachaType} uigf_gacha_type - UIGF 祈愿类型
|
||||
// * @return UIGF_Gacha
|
||||
// */
|
||||
// export interface UigfGacha {
|
||||
// gacha_type: string
|
||||
// item_id?: string
|
||||
// count?: string
|
||||
// time: string
|
||||
// name: string
|
||||
// item_type?: string
|
||||
// rank_type?: string
|
||||
// id: string
|
||||
// uigf_gacha_type: string
|
||||
// }
|
||||
/**
|
||||
* @description UIGF 头部信息
|
||||
* @since Alpha v0.2.3
|
||||
* @interface Export
|
||||
* @see docs\UIGF.md
|
||||
* @property {string} uid - UID
|
||||
* @property {string} lang - 语言
|
||||
* @property {string} uigf_version - UIGF 版本,应用使用的是 2.3.0
|
||||
* @property {number} export_timestamp - 导出时间戳(秒)
|
||||
* @property {string} export_time - 导出时间 yyyy-MM-dd HH:mm:ss
|
||||
* @property {string} export_app - 导出应用
|
||||
* @property {string} export_app_version - 导出应用版本
|
||||
* @return Export
|
||||
*/
|
||||
interface Export {
|
||||
uid: string;
|
||||
lang: string;
|
||||
uigf_version: string;
|
||||
export_timestamp?: number;
|
||||
export_time?: string;
|
||||
export_app?: string;
|
||||
export_app_version?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 祈愿类型
|
||||
* @since Alpha v0.2.3
|
||||
* @enum EnumGachaType
|
||||
* @property {string} CharacterUp - 角色活动祈愿
|
||||
* @property {string} CharacterUp2 - 角色活动祈愿2
|
||||
* @property {string} WeaponUp - 武器活动祈愿
|
||||
* @property {string} Normal - 普通祈愿
|
||||
* @property {string} Newbie - 新手祈愿
|
||||
* @return EnumGachaType
|
||||
*/
|
||||
enum EnumGachaType {
|
||||
CharacterUp = "301",
|
||||
CharacterUp2 = "400",
|
||||
WeaponUp = "302",
|
||||
Normal = "200",
|
||||
Newbie = "100",
|
||||
}
|
||||
|
||||
/**
|
||||
* @description UIGF 祈愿类型
|
||||
* @since Alpha v0.2.3
|
||||
* @enum EnumUigfGachaType
|
||||
* @property {string} CharacterUp - 角色活动祈愿&角色活动祈愿2
|
||||
* @property {string} WeaponUp - 武器活动祈愿
|
||||
* @property {string} Normal - 普通祈愿
|
||||
* @property {string} Newbie - 新手祈愿
|
||||
* @return EnumUigfGachaType
|
||||
*/
|
||||
enum EnumUigfGachaType {
|
||||
CharacterUp = "301",
|
||||
WeaponUp = "302",
|
||||
Normal = "200",
|
||||
Newbie = "100",
|
||||
}
|
||||
|
||||
/**
|
||||
* @description UIGF 祈愿列表
|
||||
* @since Alpha v0.2.3
|
||||
* @interface GachaItem
|
||||
* @property {EnumGachaType} gacha_type - 祈愿类型
|
||||
* @property {string} item_id - 物品ID
|
||||
* @property {string} count - 数量
|
||||
* @property {string} time - 时间 yyyy-MM-dd HH:mm:ss
|
||||
* @property {string} name - 名称
|
||||
* @property {string} item_type - 物品类型
|
||||
* @property {string} rank_type - 稀有度
|
||||
* @property {string} id - ID
|
||||
* @property {EnumUigfGachaType} uigf_gacha_type - UIGF 祈愿类型
|
||||
* @return GachaItem
|
||||
*/
|
||||
interface GachaItem {
|
||||
gacha_type: string;
|
||||
item_id?: string;
|
||||
count?: string;
|
||||
time: string;
|
||||
name: string;
|
||||
item_type?: string;
|
||||
rank_type?: string;
|
||||
id: string;
|
||||
uigf_gacha_type: string;
|
||||
}
|
||||
}
|
||||
|
||||
39
src/types/Sqlite/GachaRecords.d.ts
vendored
Normal file
39
src/types/Sqlite/GachaRecords.d.ts
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* @file types Sqlite GachaRecords.d.ts
|
||||
* @description 数据库抽卡记录相关类型定义文件
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.3
|
||||
*/
|
||||
|
||||
declare namespace TGApp.Sqlite.GachaRecords {
|
||||
/**
|
||||
* @description 数据库-抽卡记录表
|
||||
* @since Alpha v0.2.3
|
||||
* @interface SingleTable
|
||||
* @property {string} id - 抽卡记录 ID
|
||||
* @property {string} uid - UID
|
||||
* @property {string} gachaType - 抽卡类型
|
||||
* @property {string} uigfType - UIGF 类型
|
||||
* @property {string} time - 抽卡时间
|
||||
* @property {string} itemId - 抽卡物品 ID
|
||||
* @property {string} name - 抽卡物品名称
|
||||
* @property {string} type - 抽卡物品类型
|
||||
* @property {string} rank - 抽卡物品星级
|
||||
* @property {string} count - 抽卡物品数量
|
||||
* @property {string} updated - 数据库更新时间
|
||||
* @return SingleTable
|
||||
*/
|
||||
export interface SingleTable {
|
||||
id: string;
|
||||
uid: string;
|
||||
gachaType: string;
|
||||
uigfType: string;
|
||||
time: string;
|
||||
itemId: string;
|
||||
name: string;
|
||||
type: string;
|
||||
rank: string;
|
||||
count: string;
|
||||
updated: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user