mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
✏️ 修正 type
This commit is contained in:
@@ -32,6 +32,19 @@ create table if not exists AchievementSeries
|
||||
updated text
|
||||
);
|
||||
|
||||
-- @brief 创建角色数据表
|
||||
create table if not exists AppCharacters
|
||||
(
|
||||
id integer primary key,
|
||||
name text,
|
||||
title text,
|
||||
birthday text,
|
||||
star integer,
|
||||
element text,
|
||||
weapon text,
|
||||
nameCard text default '无'
|
||||
);
|
||||
|
||||
-- @brief 创建应用数据表
|
||||
create table if not exists AppData
|
||||
(
|
||||
|
||||
20
src/types/App/Character.d.ts
vendored
20
src/types/App/Character.d.ts
vendored
@@ -8,27 +8,29 @@
|
||||
declare namespace TGApp.App.Character {
|
||||
/**
|
||||
* @description Wiki 页简略信息
|
||||
* @since Alpha v0.1.5
|
||||
* @since Alpha v0.2.0
|
||||
* @interface WikiBriefInfo
|
||||
* @property {number} id - 角色 ID
|
||||
* @property {number} contentId - 观测枢的 content_id
|
||||
* @property {string} name - 角色名称
|
||||
* @property {string} title - 角色称号
|
||||
* @property {string} birthday - 角色生日
|
||||
* @property {number} star - 角色星级
|
||||
* @property {string} bg - 角色背景图
|
||||
* @property {string} elementIcon - 角色元素类型图标
|
||||
* @property {string} weaponIcon - 角色武器类型图标
|
||||
* @property {string} icon - 角色图标
|
||||
* @property {string} element - 角色元素类型图标
|
||||
* @property {string} weapon - 角色武器类型图标
|
||||
* @property {string} nameCard - 角色名片
|
||||
* @return WikiBriefInfo
|
||||
*/
|
||||
export interface WikiBriefInfo {
|
||||
id: number
|
||||
contentId: number
|
||||
name: string
|
||||
title: string
|
||||
birthday: string
|
||||
star: number
|
||||
bg: string
|
||||
elementIcon: string
|
||||
weaponIcon: string
|
||||
icon: string
|
||||
element: string
|
||||
weapon: string
|
||||
nameCard: string
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user