♻️ 调整目录结构

This commit is contained in:
目棃
2024-11-19 14:45:29 +08:00
parent e1f85d1d92
commit 3fef8467f4
121 changed files with 532 additions and 554 deletions

View File

@@ -1,20 +1,14 @@
/**
* @file types/Sqlite/Abyss.d.ts
* @description 数据库深境螺旋相关类型定义文件
* @since Beta v0.6.1
* @since Beta v0.6.3
*/
/**
* @description 数据库深渊类型命名
* @since Beta v0.6.1
* @namespace TGApp.Sqlite.Abyss
* @memberof TGApp.Sqlite
*/
declare namespace TGApp.Sqlite.Abyss {
/**
* @description 数据库-深境螺旋表
* @since Beta v0.6.1
* @interface SingleTable
* @interface TableRaw
* @property {string} uid - 用户 UID
* @property {number} id - 深境螺旋 ID
* @property {string} startTime - 开始时间
@@ -34,9 +28,9 @@ declare namespace TGApp.Sqlite.Abyss {
* @property {Floor[]} floors - 深境螺旋各层数据
* @property {string} skippedFloor - 跳过楼层
* @property {string} updated - 更新时间
* @return SingleTable
* @return TableRaw
*/
interface SingleTable {
interface TableRaw {
uid: string;
id: number;
startTime: string;
@@ -57,6 +51,52 @@ declare namespace TGApp.Sqlite.Abyss {
updated: string;
}
/**
* @description 数据库-深境螺旋表
* @since Beta v0.6.1
* @interface TableData
* @property {string} uid - 用户 UID
* @property {number} id - 深境螺旋 ID
* @property {string} startTime - 开始时间
* @property {string} endTime - 结束时间
* @property {number} totalBattleTimes - 总战斗次数
* @property {number} totalWinTimes - 总胜利次数
* @property {string} maxFloor - 最深抵达
* @property {number} totalStar - 总星数
* @property {boolean} isUnlock - 是否解锁
* @description 后面的几个数据在数据库中是存储的 JSON 字符串,需要在使用时进行 JSON.parse
* @property {Character[]} revealRank - 出战次数
* @property {Character[]} defeatRank - 最多击破数
* @property {Character[]} damageRank - 最强一击
* @property {Character[]} takeDamageRank - 承受最多伤害
* @property {Character[]} normalSkillRank - 元素战技释放数
* @property {Character[]} energySkillRank - 元素爆发次数
* @property {Floor[]} floors - 深境螺旋各层数据
* @property {string} skippedFloor - 跳过楼层
* @property {string} updated - 更新时间
* @return TableData
*/
interface TableData {
uid: string;
id: number;
startTime: string;
endTime: string;
totalBattleTimes: number;
totalWinTimes: number;
maxFloor: string;
totalStar: number;
isUnlock: 0 | 1;
revealRank: Character[];
defeatRank: Character[];
damageRank: Character[];
takeDamageRank: Character[];
normalSkillRank: Character[];
energySkillRank: Character[];
floors: Floor[];
skippedFloor: string;
updated: string;
}
/**
* @description 数据库-深境螺旋表-角色数据
* @since Alpha v0.2.0