🎨 fix(db): 调整结构,将名片数据也写到数据库里

This commit is contained in:
BTMuli
2023-04-25 20:02:51 +08:00
parent f40d9e61d4
commit c9bef8927b
6 changed files with 1534 additions and 1560 deletions

View File

@@ -2,7 +2,7 @@
* @file core types TGNameCard.d.ts
* @description 本应用的名片类型定义
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.2
* @since Alpha v0.1.4
*/
declare namespace BTMuli.Genshin {
@@ -29,3 +29,32 @@ declare namespace BTMuli.Genshin {
source: string
}
}
declare namespace BTMuli.SQLite {
/**
* @description 数据库内的名片类型
* @since Alpha v0.1.4
* @interface NameCard
* @property {number} id - 名片 ID
* @property {string} name - 名片名称
* @property {string} description - 名片描述
* @property {string} icon - 名片图标路径
* @property {string} bg - 名片背景图路径
* @property {string} profile - 名片 Profile 图路径
* @property {number} type - 名片类型 (0: 其他1: 成就2角色3纪行4活动)
* @property {string} source - 名片来源
* @property {string} updated - 名片更新时间
* @returns {NameCard}
*/
export interface NameCard {
id: number
name: string
description: string
icon: string
bg: string
profile: string
type: number
source: string
updated: string
}
}