🏷️ 添加 UIGF 类型

This commit is contained in:
BTMuli
2023-08-28 10:31:20 +08:00
parent 3fee50f8d4
commit 1bf467c0e1
2 changed files with 140 additions and 101 deletions

View File

@@ -1,108 +1,108 @@
/** /**
* @file types Plugins UIGF.d.ts * @file types Plugins UIGF.d.ts
* @description UIGF 插件类型定义文件 * @description UIGF 插件类型定义文件
* @todo 待使用
* @author BTMuli<bt-muli@outlook.com> * @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 数据 * @description UIGF 头部信息
// * @since Alpha v1.3.0 * @since Alpha v0.2.3
// * @interface BaseData * @interface Export
// * @property {UigfInfo} info - UIGF 头部信息 * @see docs\UIGF.md
// * @property {UigfGacha[]} list - UIGF 祈愿列表 * @property {string} uid - UID
// * @return BaseData * @property {string} lang - 语言
// */ * @property {string} uigf_version - UIGF 版本,应用使用的是 2.3.0
// export interface BaseData { * @property {number} export_timestamp - 导出时间戳(秒)
// info: UigfInfo * @property {string} export_time - 导出时间 yyyy-MM-dd HH:mm:ss
// list: UigfInfo[] * @property {string} export_app - 导出应用
// } * @property {string} export_app_version - 导出应用版本
// * @return Export
// /** */
// * @description UIGF 头部信息 interface Export {
// * @since Alpha v1.3.0 uid: string;
// * @interface UigfInfo lang: string;
// * @property {string} uid - UID uigf_version: string;
// * @property {string} lang - 语言 export_timestamp?: number;
// * @property {string} uigf_version - UIGF 版本 export_time?: string;
// * @property {number} export_timestamp - 导出时间戳(秒) export_app?: string;
// * @property {string} export_time - 导出时间 yyyy-MM-dd HH:mm:ss export_app_version?: string;
// * @property {string} export_app - 导出应用 }
// * @property {string} export_app_version - 导出应用版本
// * @return UIGF_Info /**
// */ * @description 祈愿类型
// export interface UigfInfo { * @since Alpha v0.2.3
// uid: string * @enum EnumGachaType
// lang: string * @property {string} CharacterUp - 角色活动祈愿
// uigf_version: string * @property {string} CharacterUp2 - 角色活动祈愿2
// export_timestamp?: number * @property {string} WeaponUp - 武器活动祈愿
// export_time?: string * @property {string} Normal - 普通祈愿
// export_app?: string * @property {string} Newbie - 新手祈愿
// export_app_version?: string * @return EnumGachaType
// } */
// enum EnumGachaType {
// /** CharacterUp = "301",
// * @description 祈愿类型 CharacterUp2 = "400",
// * @since Alpha v1.3.0 WeaponUp = "302",
// * @enum EnumGachaType Normal = "200",
// * @property {string} CharacterUp - 角色活动祈愿 Newbie = "100",
// * @property {string} CharacterUp2 - 角色活动祈愿2 }
// * @property {string} WeaponUp - 武器活动祈愿
// * @property {string} Normal - 普通祈愿 /**
// * @property {string} Newbie - 新手祈愿 * @description UIGF 祈愿类型
// * @return EnumGachaType * @since Alpha v0.2.3
// */ * @enum EnumUigfGachaType
// export enum EnumGachaType { * @property {string} CharacterUp - 角色活动祈愿&角色活动祈愿2
// CharacterUp = "301", * @property {string} WeaponUp - 武器活动祈愿
// CharacterUp2 = "400", * @property {string} Normal - 普通祈愿
// WeaponUp = "302", * @property {string} Newbie - 新手祈愿
// Normal = "200", * @return EnumUigfGachaType
// Newbie = "100", */
// } enum EnumUigfGachaType {
// CharacterUp = "301",
// /** WeaponUp = "302",
// * @description UIGF 祈愿类型 Normal = "200",
// * @since Alpha v1.3.0 Newbie = "100",
// * @enum EnumUigfGachaType }
// * @property {string} CharacterUp - 角色活动祈愿&角色活动祈愿2
// * @property {string} WeaponUp - 武器活动祈愿 /**
// * @property {string} Normal - 普通祈愿 * @description UIGF 祈愿列表
// * @property {string} Newbie - 新手祈愿 * @since Alpha v0.2.3
// * @return EnumUigfGachaType * @interface GachaItem
// */ * @property {EnumGachaType} gacha_type - 祈愿类型
// export enum EnumUigfGachaType { * @property {string} item_id - 物品ID
// CharacterUp = "301", * @property {string} count - 数量
// WeaponUp = "302", * @property {string} time - 时间 yyyy-MM-dd HH:mm:ss
// Normal = "200", * @property {string} name - 名称
// Newbie = "100", * @property {string} item_type - 物品类型
// } * @property {string} rank_type - 稀有度
// * @property {string} id - ID
// /** * @property {EnumUigfGachaType} uigf_gacha_type - UIGF 祈愿类型
// * @description UIGF 祈愿列表 * @return GachaItem
// * @since Alpha v1.3.0 */
// * @interface UigfGacha interface GachaItem {
// * @property {EnumGachaType} gacha_type - 祈愿类型 gacha_type: string;
// * @property {string} item_id - 物品ID item_id?: string;
// * @property {string} count - 数量 count?: string;
// * @property {string} time - 时间 yyyy-MM-dd HH:mm:ss time: string;
// * @property {string} name - 名称 name: string;
// * @property {string} item_type - 物品类型 item_type?: string;
// * @property {string} rank_type - 稀有度 rank_type?: string;
// * @property {string} id - ID id: string;
// * @property {EnumUigfGachaType} uigf_gacha_type - UIGF 祈愿类型 uigf_gacha_type: string;
// * @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
// }

39
src/types/Sqlite/GachaRecords.d.ts vendored Normal file
View 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;
}
}