✏️ 修正数据库类型

This commit is contained in:
BTMuli
2023-06-03 23:09:25 +08:00
parent 8704f513bd
commit 4c4c0b2bef
2 changed files with 7 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
* @description 数据库成就相关类型定义文件
* @todo https://github.com/BTMuli/Tauri.Genshin/issues/19
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.5
* @since Alpha v0.2.0
*/
declare namespace TGApp.Sqlite.Achievement {
@@ -40,7 +40,7 @@ declare namespace TGApp.Sqlite.Achievement {
/**
* @description 数据库-成就系列表
* @since Alpha v0.1.5
* @since Alpha v0.2.0
* @interface SeriesTable
* @property {number} id - 成就系列 ID
* @property {number} order - 成就系列排列顺序,用于展示全部成就系列
@@ -48,7 +48,6 @@ declare namespace TGApp.Sqlite.Achievement {
* @property {string} version - 成就系列版本
* @property {number} totalCount - 成就系列包含的成就数
* @property {number} finCount - 成就系列已完成的成就数
* @property {string} icon - 成就系列图标
* @property {string} nameCard - 成就系列对应名片
* @property {string} updated - 数据库更新时间
* @returns SeriesTable
@@ -60,7 +59,6 @@ declare namespace TGApp.Sqlite.Achievement {
version: string
totalCount: number
finCount: number
icon: string
nameCard: string
updated: string
}

View File

@@ -2,31 +2,25 @@
* @file types Sqlite NameCard.d.ts
* @description Sqlite 名片类型定义文件
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.5
* @since Alpha v0.2.0
*/
declare namespace TGApp.Sqlite.NameCard {
/**
* @description 名片数据
* @since Alpha v0.1.5
* @interface Item
* @since Alpha v0.2.0
* @interface SingleTable
* @property {string} name - 名片名称
* @property {string} desc - 名片描述
* @property {string} icon - 名片图标
* @property {string} bg - 名片背景图
* @property {string} profile - 名片 Profile 图
* @description 0: 其他1: 成就2角色3纪行4活动 // todo: 后续用枚举替换
* @property {number} type - 名片类型
* @property {string} source - 名片来源
* @property {string} updated - 数据库更新时间
* @return Item
* @return SingleTable
*/
export interface Item {
export interface SingleTable {
name: string
desc: string
icon: string
bg: string
profile: string
type: number
source: string
updated: string