mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
feat(nameCard): 定义应用 NameCard 接口
This commit is contained in:
29
src/interface/NameCard.ts
Normal file
29
src/interface/NameCard.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @file interface NameCard.ts
|
||||
* @description NameCard interface
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description 本应用的名片类型
|
||||
* @since Alpha
|
||||
* @interface NameCard
|
||||
* @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 - 名片来源
|
||||
* @return NameCard
|
||||
*/
|
||||
export interface NameCard {
|
||||
name: string;
|
||||
description: string;
|
||||
icon: string;
|
||||
bg: string;
|
||||
profile: string;
|
||||
type: string;
|
||||
source: string;
|
||||
}
|
||||
Reference in New Issue
Block a user