🎨 代码格式化

This commit is contained in:
BTMuli
2023-06-25 16:15:15 +08:00
parent 7982649bbc
commit 7567bba147
174 changed files with 29970 additions and 29840 deletions

View File

@@ -17,9 +17,9 @@ declare namespace TGApp.App.Account {
* @return BriefInfo
*/
export interface BriefInfo {
nickname: string
uid: string
avatar: string
desc: string
nickname: string;
uid: string;
avatar: string;
desc: string;
}
}

View File

@@ -21,13 +21,13 @@ declare namespace TGApp.App.Achievement {
* @return Item
*/
export interface Item {
id: number
series: number
order: number
name: string
description: string
reward: number
version: string
id: number;
series: number;
order: number;
name: string;
description: string;
reward: number;
version: string;
}
/**
* @description 本应用的成就系列类型
@@ -42,11 +42,11 @@ declare namespace TGApp.App.Achievement {
* @return Series
*/
export interface Series {
id: number
order: number
name: string
version: string
card: string
icon: string
id: number;
order: number;
name: string;
version: string;
card: string;
icon: string;
}
}

View File

@@ -21,13 +21,13 @@ declare namespace TGApp.App.Announcement {
* @return ListCard
*/
export interface ListCard {
id: number
title: string
subtitle: string
banner: string
typeLabel: string
tagIcon: string
startTime: string
endTime: string
id: number;
title: string;
subtitle: string;
banner: string;
typeLabel: string;
tagIcon: string;
startTime: string;
endTime: string;
}
}

View File

@@ -26,19 +26,19 @@ declare namespace TGApp.App.Calendar {
* @return Item
*/
export interface Item {
id: number
contentId: number
dropDays: number[]
name: string
itemType: string
star: number
bg: string
icon: string
starIcon: string
weaponIcon: string
elementIcon: string
materials: Material[]
source: Source
id: number;
contentId: number;
dropDays: number[];
name: string;
itemType: string;
star: number;
bg: string;
icon: string;
starIcon: string;
weaponIcon: string;
elementIcon: string;
materials: Material[];
source: Source;
}
/**
@@ -54,12 +54,12 @@ declare namespace TGApp.App.Calendar {
* @return Material
*/
export interface Material {
id: number
name: string
star: number
starIcon: string
bg: string
icon: string
id: number;
name: string;
star: number;
starIcon: string;
bg: string;
icon: string;
}
/**
@@ -72,8 +72,8 @@ declare namespace TGApp.App.Calendar {
* @return Source
*/
export interface Source {
area: string
icon: string
name: string
area: string;
icon: string;
name: string;
}
}

View File

@@ -22,15 +22,15 @@ declare namespace TGApp.App.Character {
* @return WikiBriefInfo
*/
export interface WikiBriefInfo {
id: number
contentId: number
name: string
title: string
birthday: string
star: number
element: string
weapon: string
nameCard: string
id: number;
contentId: number;
name: string;
title: string;
birthday: string;
star: number;
element: string;
weapon: string;
nameCard: string;
}
}

View File

@@ -18,11 +18,11 @@ declare namespace TGApp.App.GCG {
* @return WikiBriefInfo
*/
export interface WikiBriefInfo {
id: number
contentId: number
name: string
type: string
icon: string
id: number;
contentId: number;
name: string;
type: string;
icon: string;
}
}

View File

@@ -21,12 +21,12 @@ declare namespace TGApp.App.NameCard {
* @return Item
*/
export interface Item {
name: string
desc: string
icon: string
bg: string
profile: string
type: number
source: string
name: string;
desc: string;
icon: string;
bg: string;
profile: string;
type: number;
source: string;
}
}

View File

@@ -20,13 +20,13 @@ declare namespace TGApp.App.Weapon {
* @return WikiBriefInfo
*/
export interface WikiBriefInfo {
id: number
contentId: number
name: string
star: number
bg: string
weaponIcon: string
icon: string
id: number;
contentId: number;
name: string;
star: number;
bg: string;
weaponIcon: string;
icon: string;
}
}

View File

@@ -27,18 +27,18 @@ declare namespace TGApp.BBS.Account {
* @return VerifySTokenInfo
*/
export interface VerifySTokenInfo {
aid: string
mid: string
account_name: string
email: string
is_email_verify: number
area_code: string
safe_mobile: string
realname: string
identity_code: string
rebind_area_code: string
rebind_mobile: string
rebind_mobile_time: string
links: unknown[]
aid: string;
mid: string;
account_name: string;
email: string;
is_email_verify: number;
area_code: string;
safe_mobile: string;
realname: string;
identity_code: string;
rebind_area_code: string;
rebind_mobile: string;
rebind_mobile_time: string;
links: unknown[];
}
}

View File

@@ -15,7 +15,7 @@ declare namespace TGApp.BBS.Announcement {
* @return ListResponse
*/
export interface ListResponse extends TGApp.BBS.Response.Base {
data: ListData
data: ListData;
}
/**
@@ -27,7 +27,7 @@ declare namespace TGApp.BBS.Announcement {
* @return ContentResponse
*/
export interface ContentResponse extends TGApp.BBS.Response.Base {
data: ContentData
data: ContentData;
}
/**
@@ -49,18 +49,18 @@ declare namespace TGApp.BBS.Announcement {
* @return ListData
*/
export interface ListData {
list: ListItem[]
total: number
type_list: ListType[]
alert: boolean
time_zone: number
t: string
pic_list: unknown[]
pic_total: number
pic_type_list: unknown[]
pic_alert: boolean
pic_alert_id: number
static_sign: unknown
list: ListItem[];
total: number;
type_list: ListType[];
alert: boolean;
time_zone: number;
t: string;
pic_list: unknown[];
pic_total: number;
pic_type_list: unknown[];
pic_alert: boolean;
pic_alert_id: number;
static_sign: unknown;
}
/**
@@ -74,10 +74,10 @@ declare namespace TGApp.BBS.Announcement {
* @return ContentData
*/
export interface ContentData {
list: ContentItem[]
total: number
pic_list: unknown[]
pic_total: number
list: ContentItem[];
total: number;
pic_list: unknown[];
pic_total: number;
}
/**
@@ -90,9 +90,9 @@ declare namespace TGApp.BBS.Announcement {
* @return ListItem
*/
export interface ListItem {
list: AnnoSingle[]
type_id: number
type_label: string
list: AnnoSingle[];
type_id: number;
type_label: string;
}
/**
@@ -122,26 +122,26 @@ declare namespace TGApp.BBS.Announcement {
* @return AnnoSingle
*/
export interface AnnoSingle {
ann_id: number
title: string
subtitle: string
banner: string
content: unknown
type_label: string
tag_label: string
tag_icon: string
login_alert: number
lang: string
start_time: string
end_time: string
type: number
remind: number
alert: number
tag_start_time: string
tag_end_time: string
remind_ver: number
has_content: boolean
extra_remind: boolean
ann_id: number;
title: string;
subtitle: string;
banner: string;
content: unknown;
type_label: string;
tag_label: string;
tag_icon: string;
login_alert: number;
lang: string;
start_time: string;
end_time: string;
type: number;
remind: number;
alert: number;
tag_start_time: string;
tag_end_time: string;
remind_ver: number;
has_content: boolean;
extra_remind: boolean;
}
/**
@@ -154,9 +154,9 @@ declare namespace TGApp.BBS.Announcement {
* @return ListType
*/
export interface ListType {
id: number
name: string
mi18n_name: string
id: number;
name: string;
mi18n_name: string;
}
/**
@@ -172,11 +172,11 @@ declare namespace TGApp.BBS.Announcement {
* @return ContentItem
*/
export interface ContentItem {
ann_id: number
title: string
subtitle: string
banner: string
content: string
lang: string
ann_id: number;
title: string;
subtitle: string;
banner: string;
content: string;
lang: string;
}
}

View File

@@ -34,16 +34,16 @@ declare namespace TGApp.BBS.Constant {
* @return Cookie
*/
export interface Cookie {
login_ticket: string
login_uid: string
account_id: string
cookie_token: string
ltoken: string
ltuid: string
mid: string
stoken: string
stuid: string
stoken_v2?: string
login_ticket: string;
login_uid: string;
account_id: string;
cookie_token: string;
ltoken: string;
ltuid: string;
mid: string;
stoken: string;
stuid: string;
stoken_v2?: string;
}
/**
@@ -55,8 +55,8 @@ declare namespace TGApp.BBS.Constant {
* @return CookieGroup1
*/
export interface CookieGroup1 {
login_ticket: string
login_uid: string
login_ticket: string;
login_uid: string;
}
/**
@@ -68,8 +68,8 @@ declare namespace TGApp.BBS.Constant {
* @return CookieGroup2
*/
export interface CookieGroup2 {
account_id: string
cookie_token: string
account_id: string;
cookie_token: string;
}
/**
@@ -81,8 +81,8 @@ declare namespace TGApp.BBS.Constant {
* @return CookieGroup3
*/
export interface CookieGroup3 {
ltoken: string
ltuid: string
ltoken: string;
ltuid: string;
}
/**
@@ -94,5 +94,4 @@ declare namespace TGApp.BBS.Constant {
* @return CookieGroup4
*/
export interface CookieGroup4 extends CookieGroup2, CookieGroup3 {}
}

View File

@@ -17,9 +17,9 @@ declare namespace TGApp.BBS.Response {
* @return Base
*/
export interface Base {
retcode: number
message: string
data: any
retcode: number;
message: string;
data: any;
}
/**
@@ -31,8 +31,8 @@ declare namespace TGApp.BBS.Response {
* @return getTokensRes
*/
export interface getTokensRes {
name: string
token: string
name: string;
token: string;
}
/**
@@ -46,8 +46,8 @@ declare namespace TGApp.BBS.Response {
*/
export interface getTokens extends Base {
data: {
list: getTokensRes[]
}
list: getTokensRes[];
};
}
/**
@@ -61,8 +61,8 @@ declare namespace TGApp.BBS.Response {
*/
export interface getLTokenBySToken extends Base {
data: {
ltoken: string
}
ltoken: string;
};
}
/**
@@ -77,9 +77,9 @@ declare namespace TGApp.BBS.Response {
*/
export interface getCookieTokenBySToken extends Base {
data: {
uid: string
cookie_token: string
}
uid: string;
cookie_token: string;
};
}
/**
@@ -95,9 +95,9 @@ declare namespace TGApp.BBS.Response {
*/
export interface verifyUserInfoBySToken extends Base {
data: {
user_info: TGApp.BBS.Account.VerifySTokenInfo
realname_info: unknown
need_realperson: boolean
}
user_info: TGApp.BBS.Account.VerifySTokenInfo;
realname_info: unknown;
need_realperson: boolean;
};
}
}

View File

@@ -16,7 +16,7 @@ declare namespace TGApp.Game.Abyss {
* @return Response
*/
export interface Response extends TGApp.BBS.Response.Base {
data: FullData
data: FullData;
}
/**
@@ -41,21 +41,21 @@ declare namespace TGApp.Game.Abyss {
* @return FullData
*/
export interface FullData {
schedule_id: number
start_time: string
end_time: string
total_battle_times: number
total_win_times: number
max_floor: string
reveal_rank: CharacterData[]
defeat_rank: CharacterData[]
damage_rank: CharacterData[]
take_damage_rank: CharacterData[]
normal_skill_rank: CharacterData[]
energy_skill_rank: CharacterData[]
floors: Floor[]
total_star: number
is_unlock: boolean
schedule_id: number;
start_time: string;
end_time: string;
total_battle_times: number;
total_win_times: number;
max_floor: string;
reveal_rank: CharacterData[];
defeat_rank: CharacterData[];
damage_rank: CharacterData[];
take_damage_rank: CharacterData[];
normal_skill_rank: CharacterData[];
energy_skill_rank: CharacterData[];
floors: Floor[];
total_star: number;
is_unlock: boolean;
}
/**
@@ -69,10 +69,10 @@ declare namespace TGApp.Game.Abyss {
* @return CharacterData
*/
export interface CharacterData {
avatar_id: number
avatar_icon: string
value: number
rarity: number
avatar_id: number;
avatar_icon: string;
value: number;
rarity: number;
}
/**
@@ -89,13 +89,13 @@ declare namespace TGApp.Game.Abyss {
* @return Floor
*/
export interface Floor {
index: number
icon: string
is_unlock: boolean
settle_time: number
star: number
max_star: number
levels: Level[]
index: number;
icon: string;
is_unlock: boolean;
settle_time: number;
star: number;
max_star: number;
levels: Level[];
}
/**
@@ -109,10 +109,10 @@ declare namespace TGApp.Game.Abyss {
* @return Level
*/
export interface Level {
index: number
star: number
max_star: number
battles: Battle[]
index: number;
star: number;
max_star: number;
battles: Battle[];
}
/**
@@ -125,9 +125,9 @@ declare namespace TGApp.Game.Abyss {
* @return Battle
*/
export interface Battle {
index: number
timestamp: string
avatars: CharacterInfo[]
index: number;
timestamp: string;
avatars: CharacterInfo[];
}
/**
@@ -141,9 +141,9 @@ declare namespace TGApp.Game.Abyss {
* @return CharacterInfo
*/
export interface CharacterInfo {
id: number
icon: string
level: number
rarity: number
id: number;
icon: string;
level: number;
rarity: number;
}
}

View File

@@ -18,9 +18,9 @@ declare namespace TGApp.Game.Character {
*/
export interface ListResponse extends TGApp.BBS.Response.Base {
data: {
avatars: ListItem[]
role: ListRole
}
avatars: ListItem[];
role: ListRole;
};
}
/**
@@ -45,21 +45,21 @@ declare namespace TGApp.Game.Character {
* @return ListItem
*/
export interface ListItem {
id: number
image: string
icon: string
name: string
element: TGApp.Game.Constant.EnumElementEn
fetter: number
level: number
rarity: number
weapon: LIWeapon
reliquaries: LIRelic[]
constellations: LIConstellation[]
actived_constellation_num: number
costumes: LICostume[]
constellation_level: number
external: unknown
id: number;
image: string;
icon: string;
name: string;
element: TGApp.Game.Constant.EnumElementEn;
fetter: number;
level: number;
rarity: number;
weapon: LIWeapon;
reliquaries: LIRelic[];
constellations: LIConstellation[];
actived_constellation_num: number;
costumes: LICostume[];
constellation_level: number;
external: unknown;
}
/**
@@ -73,10 +73,10 @@ declare namespace TGApp.Game.Character {
* @return ListRole
*/
export interface ListRole {
AvatarUrl: string
nickname: string
region: string
level: number
AvatarUrl: string;
nickname: string;
region: string;
level: number;
}
/**
@@ -96,16 +96,16 @@ declare namespace TGApp.Game.Character {
* @return LIWeapon
*/
export interface LIWeapon {
id: number
name: string
icon: string
type: number
rarity: number
level: number
promote_level: number
type_name: string
desc: string
affix_level: number
id: number;
name: string;
icon: string;
type: number;
rarity: number;
level: number;
promote_level: number;
type_name: string;
desc: string;
affix_level: number;
}
/**
@@ -123,14 +123,14 @@ declare namespace TGApp.Game.Character {
* @return LIRelic
*/
export interface LIRelic {
id: number
name: string
icon: string
pos: number
rarity: number
level: number
set: RelicSet
pos_name: TGApp.Game.Constant.EnumRelic
id: number;
name: string;
icon: string;
pos: number;
rarity: number;
level: number;
set: RelicSet;
pos_name: TGApp.Game.Constant.EnumRelic;
}
/**
@@ -144,12 +144,12 @@ declare namespace TGApp.Game.Character {
* @return RelicSet
*/
export interface RelicSet {
id: number
name: string
id: number;
name: string;
affixes: Array<{
activation_number: number
effect: string
}>
activation_number: number;
effect: string;
}>;
}
/**
@@ -165,12 +165,12 @@ declare namespace TGApp.Game.Character {
* @return LIConstellation
*/
export interface LIConstellation {
id: number
name: string
icon: string
effect: string
is_actived: boolean
pos: number
id: number;
name: string;
icon: string;
effect: string;
is_actived: boolean;
pos: number;
}
/**
@@ -183,8 +183,8 @@ declare namespace TGApp.Game.Character {
* @return LICostume
*/
export interface LICostume {
id: number
name: string
icon: string
id: number;
name: string;
icon: string;
}
}

View File

@@ -15,7 +15,7 @@ declare namespace TGApp.Game.Record {
* @return Response
*/
export interface Response extends TGApp.BBS.Response.Base {
data: FullData
data: FullData;
}
/**
@@ -31,12 +31,12 @@ declare namespace TGApp.Game.Record {
* @return FullData
*/
export interface FullData {
role: Role
avatars: Avatar[]
stats: Stats
city_explorations: unknown[]
world_explorations: WorldExplore[]
homes: Home[]
role: Role;
avatars: Avatar[];
stats: Stats;
city_explorations: unknown[];
world_explorations: WorldExplore[];
homes: Home[];
}
/**
@@ -50,10 +50,10 @@ declare namespace TGApp.Game.Record {
* @return Role
*/
export interface Role {
AvatarUrl: string
nickname: string
region: string
level: number
AvatarUrl: string;
nickname: string;
region: string;
level: number;
}
/**
@@ -73,16 +73,16 @@ declare namespace TGApp.Game.Record {
* @return Avatar
*/
export interface Avatar {
id: number
image: string
name: string
element: string
fetter: number
level: number
rarity: number
actived_constellation_num: number
card_image: number
is_chosen: boolean
id: number;
image: string;
name: string;
element: string;
fetter: number;
level: number;
rarity: number;
actived_constellation_num: number;
card_image: number;
is_chosen: boolean;
}
/**
@@ -107,21 +107,21 @@ declare namespace TGApp.Game.Record {
* @return Stats
*/
export interface Stats {
active_day_number: number
achievement_number: number
anemoculus_number: number
geoculus_number: number
avatar_number: number
way_point_number: number
domain_number: number
spiral_abyss: string
precious_chest_number: number
luxurious_chest_number: number
exquisite_chest_number: number
common_chest_number: number
electroculus_number: number
magic_chest_number: number
dendroculus_number: number
active_day_number: number;
achievement_number: number;
anemoculus_number: number;
geoculus_number: number;
avatar_number: number;
way_point_number: number;
domain_number: number;
spiral_abyss: string;
precious_chest_number: number;
luxurious_chest_number: number;
exquisite_chest_number: number;
common_chest_number: number;
electroculus_number: number;
magic_chest_number: number;
dendroculus_number: number;
}
/**
@@ -144,19 +144,19 @@ declare namespace TGApp.Game.Record {
* @return WorldExplore
*/
export interface WorldExplore {
level: number
exploration_percentage: number
icon: string
name: string
type: string
offerings: WorldOffering[]
id: number
parent_id: number
map_url: string
strategy_url: string
background_image: string
inner_icon: string
cover: string
level: number;
exploration_percentage: number;
icon: string;
name: string;
type: string;
offerings: WorldOffering[];
id: number;
parent_id: number;
map_url: string;
strategy_url: string;
background_image: string;
inner_icon: string;
cover: string;
}
/**
@@ -169,9 +169,9 @@ declare namespace TGApp.Game.Record {
* @return WorldOffering
*/
export interface WorldOffering {
name: string
level: number
icon: string
name: string;
level: number;
icon: string;
}
/**
@@ -189,13 +189,13 @@ declare namespace TGApp.Game.Record {
* @return Home
*/
export interface Home {
level: number
visit_num: number
comfort_num: number
item_num: number
name: string
icon: string
comfort_level_name: string
comfort_level_icon: string
level: number;
visit_num: number;
comfort_num: number;
item_num: number;
name: string;
icon: string;
comfort_level_name: string;
comfort_level_icon: string;
}
}

View File

@@ -6,9 +6,7 @@
* @since Alpha v0.2.0
*/
declare namespace TGApp.Plugins.Enka {
}
declare namespace TGApp.Plugins.Enka {}
// /**
// * @description ENKA 数据

View File

@@ -16,9 +16,9 @@ declare namespace TGApp.Plugins.Hutao {
* @property {any} data - 数据
*/
export interface HutaoResponse {
retcode?: number
message?: string
data?: any
retcode?: number;
message?: string;
data?: any;
}
/**
* @description 深渊记录上传数据
@@ -33,11 +33,11 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssRecordUpload
*/
export interface AbyssRecordUpload {
uid: string
identity: string
spiralAbyss: AbyssRecord
avatars: AbyssAvatar[]
reservedUserName: string
uid: string;
identity: string;
spiralAbyss: AbyssRecord;
avatars: AbyssAvatar[];
reservedUserName: string;
}
/**
@@ -55,18 +55,18 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssRecord
*/
export interface AbyssRecord {
scheduleId: number
totalBattleTimes: number
totalWinTimes: number
scheduleId: number;
totalBattleTimes: number;
totalWinTimes: number;
damage: {
avatarId: number
value: number
}
avatarId: number;
value: number;
};
takeDamage: {
avatarId: number
value: number
}
floors: AbyssFloor[]
avatarId: number;
value: number;
};
floors: AbyssFloor[];
}
/**
@@ -79,9 +79,9 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssFloor
*/
export interface AbyssFloor {
index: number
star: number
levels: AbyssLevel[]
index: number;
star: number;
levels: AbyssLevel[];
}
/**
@@ -95,12 +95,12 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssLevel
*/
export interface AbyssLevel {
index: number
star: number
index: number;
star: number;
battles: Array<{
index: number
avatars: number[]
}>
index: number;
avatars: number[];
}>;
}
/**
@@ -114,10 +114,10 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatar
*/
export interface AbyssAvatar {
avatarId: number
weaponId: number
reliquarySetIds: string[]
activedConstellationNumber: number
avatarId: number;
weaponId: number;
reliquarySetIds: string[];
activedConstellationNumber: number;
}
/**
@@ -130,7 +130,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssRecordExistResponse
*/
export interface AbyssRecordExistResponse extends HutaoResponse {
data: boolean
data: boolean;
}
/**
@@ -144,7 +144,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssRecordRankResponse
*/
export interface AbyssRecordRankResponse extends HutaoResponse {
data: AbyssRecordRank
data: AbyssRecordRank;
}
/**
@@ -168,7 +168,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssOverviewResponse
*/
export interface AbyssOverviewResponse extends HutaoResponse {
data: AbyssOverview
data: AbyssOverview;
}
/**
@@ -188,16 +188,16 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssOverview
*/
export interface AbyssOverview {
scheduleId: number
recordTotal: number
spiralAbyssTotal: number
spiralAbyssFullStar: number
spiralAbyssPassed: number
spiralAbyssStarTotal: number
spiralAbyssBattleTotal: number
timestamp: number
timeTotal: number
timeAverage: number
scheduleId: number;
recordTotal: number;
spiralAbyssTotal: number;
spiralAbyssFullStar: number;
spiralAbyssPassed: number;
spiralAbyssStarTotal: number;
spiralAbyssBattleTotal: number;
timestamp: number;
timeTotal: number;
timeAverage: number;
}
/**
@@ -211,7 +211,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarUpRateResponse
*/
export interface AbyssAvatarUpRateResponse extends HutaoResponse {
data: AbyssAvatarUpRate[]
data: AbyssAvatarUpRate[];
}
/**
@@ -224,11 +224,11 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarUpRate
*/
export interface AbyssAvatarUpRate {
floor: number
floor: number;
ranks: {
item: number
rate: number
}
item: number;
rate: number;
};
}
/**
@@ -241,7 +241,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarUseRateResponse
*/
export interface AbyssAvatarUseRateResponse extends HutaoResponse {
data: AbyssAvatarUseRate[]
data: AbyssAvatarUseRate[];
}
/**
@@ -254,11 +254,11 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarUseRate
*/
export interface AbyssAvatarUseRate {
floor: number
floor: number;
ranks: Array<{
item: number
rate: number
}>
item: number;
rate: number;
}>;
}
/**
@@ -271,7 +271,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarHoldRateResponse
*/
export interface AbyssAvatarHoldRateResponse extends HutaoResponse {
data: AbyssAvatarHoldRate[]
data: AbyssAvatarHoldRate[];
}
/**
@@ -285,12 +285,12 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarHoldRate
*/
export interface AbyssAvatarHoldRate {
holdingRate: number
holdingRate: number;
constellations: Array<{
item: number
rate: number
}>
avatarId: number
item: number;
rate: number;
}>;
avatarId: number;
}
/**
@@ -303,7 +303,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarCollocationResponse
*/
export interface AbyssAvatarCollocationResponse extends HutaoResponse {
data: AbyssAvatarCollocation[]
data: AbyssAvatarCollocation[];
}
/**
@@ -320,19 +320,19 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssAvatarCollocation
*/
export interface AbyssAvatarCollocation {
avatarId: number
avatarId: number;
avatars: Array<{
item: number
rate: number
}>
item: number;
rate: number;
}>;
reliquaries: Array<{
item: string
rate: number
}>
item: string;
rate: number;
}>;
weapons: Array<{
item: number
rate: number
}>
item: number;
rate: number;
}>;
}
/**
@@ -344,7 +344,7 @@ declare namespace TGApp.Plugins.Hutao {
* @property {AbyssWeaponCollocation[]} data - 武器搭配角色
*/
export interface AbyssWeaponCollocationResponse extends HutaoResponse {
data: AbyssWeaponCollocation[]
data: AbyssWeaponCollocation[];
}
/**
@@ -357,11 +357,11 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssWeaponCollocation
*/
export interface AbyssWeaponCollocation {
weaponId: number
weaponId: number;
avatars: Array<{
item: number
rate: number
}>
item: number;
rate: number;
}>;
}
/**
@@ -374,7 +374,7 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssTeamCombinationResponse
*/
export interface AbyssTeamCombinationResponse extends HutaoResponse {
data: AbyssTeamCombination[]
data: AbyssTeamCombination[];
}
/**
@@ -389,14 +389,14 @@ declare namespace TGApp.Plugins.Hutao {
* @return AbyssTeamCombination
*/
export interface AbyssTeamCombination {
floor: number
floor: number;
up: Array<{
item: string
rate: number
}>
item: string;
rate: number;
}>;
down: Array<{
item: string
rate: number
}>
item: string;
rate: number;
}>;
}
}

View File

@@ -15,8 +15,8 @@ declare namespace TGApp.Plugins.UIAF {
* @return Data
*/
export interface Data {
info: Export
list: Achievement[]
info: Export;
list: Achievement[];
}
/**
@@ -30,10 +30,10 @@ declare namespace TGApp.Plugins.UIAF {
* @return Export
*/
export interface Export {
export_app: string
export_timestamp: number
export_app_version: string
uiaf_version: string
export_app: string;
export_timestamp: number;
export_app_version: string;
uiaf_version: string;
}
/**
@@ -47,9 +47,9 @@ declare namespace TGApp.Plugins.UIAF {
* @return Achievement
*/
export interface Achievement {
id: number
timestamp: number
current: number
status: number
id: number;
timestamp: number;
current: number;
status: number;
}
}

View File

@@ -6,9 +6,7 @@
* @since Alpha v0.2.0
*/
declare namespace TGApp.Plugins.UIGF {
}
declare namespace TGApp.Plugins.UIGF {}
// /**
// * @description UIGF 数据

View File

@@ -31,23 +31,23 @@ declare namespace TGApp.Sqlite.Abyss {
* @return SingleTable
*/
export interface SingleTable {
uid: string
id: number
startTime: string
endTime: string
totalBattleTimes: number
totalWinTimes: number
maxFloor: string
totalStar: number
isUnlock: 0 | 1
revealRank: string // Character[]
defeatRank: string // Character[]
damageRank: string // Character[]
takeDamageRank: string // Character[]
normalSkillRank: string // Character[]
energySkillRank: string // Character[]
floors: string // Floor[]
updated: string
uid: string;
id: number;
startTime: string;
endTime: string;
totalBattleTimes: number;
totalWinTimes: number;
maxFloor: string;
totalStar: number;
isUnlock: 0 | 1;
revealRank: string; // Character[]
defeatRank: string; // Character[]
damageRank: string; // Character[]
takeDamageRank: string; // Character[]
normalSkillRank: string; // Character[]
energySkillRank: string; // Character[]
floors: string; // Floor[]
updated: string;
}
/**
@@ -60,9 +60,9 @@ declare namespace TGApp.Sqlite.Abyss {
* @return Character
*/
export interface Character {
id: number
value: number
star: number
id: number;
value: number;
star: number;
}
/**
@@ -77,11 +77,11 @@ declare namespace TGApp.Sqlite.Abyss {
* @return Floor
*/
export interface Floor {
id: number
winStar: number
maxStar: number
isUnlock: 0 | 1
levels: Level[]
id: number;
winStar: number;
maxStar: number;
isUnlock: 0 | 1;
levels: Level[];
}
/**
@@ -96,11 +96,11 @@ declare namespace TGApp.Sqlite.Abyss {
* @return Level
*/
export interface Level {
id: number
winStar: number
maxStar: number
upBattle: Battle
downBattle: Battle
id: number;
winStar: number;
maxStar: number;
upBattle: Battle;
downBattle: Battle;
}
/**
@@ -112,8 +112,8 @@ declare namespace TGApp.Sqlite.Abyss {
* @return Battle
*/
export interface Battle {
time: string
characters: CharacterInfo[]
time: string;
characters: CharacterInfo[];
}
/**
@@ -126,8 +126,8 @@ declare namespace TGApp.Sqlite.Abyss {
* @return CharacterInfo
*/
export interface CharacterInfo {
id: number
level: number
star: number
id: number;
level: number;
star: number;
}
}

View File

@@ -21,13 +21,13 @@ declare namespace TGApp.Sqlite.Account {
* @return Game
*/
export interface Game {
gameBiz: string
gameUid: string
isChosen: 0 | 1
isOfficial: 0 | 1
level: string
nickname: string
region: string
regionName: string
gameBiz: string;
gameUid: string;
isChosen: 0 | 1;
isOfficial: 0 | 1;
level: string;
nickname: string;
region: string;
regionName: string;
}
}

View File

@@ -25,17 +25,17 @@ declare namespace TGApp.Sqlite.Achievement {
* @return SingleTable
*/
export interface SingleTable {
id: number
series: number
order: number
name: string
description: string
reward: number
isCompleted: 0 | 1
completedTime: string
progress: number
version: string
updated: string
id: number;
series: number;
order: number;
name: string;
description: string;
reward: number;
isCompleted: 0 | 1;
completedTime: string;
progress: number;
version: string;
updated: string;
}
/**
@@ -53,13 +53,13 @@ declare namespace TGApp.Sqlite.Achievement {
* @returns SeriesTable
*/
export interface SeriesTable {
id: number
order: number
name: string
version: string
totalCount: number
finCount: number
nameCard: string
updated: string
id: number;
order: number;
name: string;
version: string;
totalCount: number;
finCount: number;
nameCard: string;
updated: string;
}
}

View File

@@ -16,8 +16,8 @@ declare namespace TGApp.Sqlite.AppData {
* @return Item
*/
export interface Item {
key: string
value: string
updated: string
key: string;
value: string;
updated: string;
}
}

View File

@@ -22,15 +22,15 @@ declare namespace TGApp.Sqlite.Character {
* @return AppData
*/
export interface AppData {
id: number
name: string
title: string
birthday: string
star: number
element: string
weapon: string
nameCard: string
updated: string
id: number;
name: string;
title: string;
birthday: string;
star: number;
element: string;
weapon: string;
nameCard: string;
updated: string;
}
/**
@@ -55,21 +55,21 @@ declare namespace TGApp.Sqlite.Character {
* @return UserRole
*/
export interface UserRole {
uid: number
cid: number
img: string
name: string
fetter: number
level: number
element: string
star: number
weapon: string
reliquary: string
constellation: string
activeConstellation: number
costume: string
talent: string
updated: string
uid: number;
cid: number;
img: string;
name: string;
fetter: number;
level: number;
element: string;
star: number;
weapon: string;
reliquary: string;
constellation: string;
activeConstellation: number;
costume: string;
talent: string;
updated: string;
}
/**
@@ -87,14 +87,14 @@ declare namespace TGApp.Sqlite.Character {
* @return RoleWeapon
*/
export interface RoleWeapon {
id: number
name: string
type: string
star: number
level: number
promote: number
description: string
affix: number
id: number;
name: string;
type: string;
star: number;
level: number;
promote: number;
description: string;
affix: number;
}
/**
@@ -115,21 +115,21 @@ declare namespace TGApp.Sqlite.Character {
* @return RoleReliquary
*/
export interface RoleReliquary {
id: number
name: string
pos: number
posName: string
star: number
level: number
icon: string
id: number;
name: string;
pos: number;
posName: string;
star: number;
level: number;
icon: string;
set: {
id: number
name: string
id: number;
name: string;
effect: Array<{
active: number
description: string
}>
}
active: number;
description: string;
}>;
};
}
/**
@@ -145,12 +145,12 @@ declare namespace TGApp.Sqlite.Character {
* @return RoleConstellation
*/
export interface RoleConstellation {
id: number
name: string
icon: string
description: string
active: boolean
pos: number
id: number;
name: string;
icon: string;
description: string;
active: boolean;
pos: number;
}
/**
@@ -163,8 +163,8 @@ declare namespace TGApp.Sqlite.Character {
* @return RoleCostume
*/
export interface RoleCostume {
id: number
name: string
icon: string
id: number;
name: string;
icon: string;
}
}

View File

@@ -19,10 +19,10 @@ declare namespace TGApp.Sqlite.NameCard {
* @return SingleTable
*/
export interface SingleTable {
name: string
desc: string
type: number
source: string
updated: string
name: string;
desc: string;
type: number;
source: string;
updated: string;
}
}

View File

@@ -21,13 +21,13 @@ declare namespace TGApp.Sqlite.Record {
* @return SingleTable
*/
export interface SingleTable {
uid: string
role: string // Role
avatars: string // Avatar[]
stats: string // Stats
worldExplore: string // WorldExplore
homes: string // Home[]
updated: string
uid: string;
role: string; // Role
avatars: string; // Avatar[]
stats: string; // Stats
worldExplore: string; // WorldExplore
homes: string; // Home[]
updated: string;
}
/**
@@ -40,9 +40,9 @@ declare namespace TGApp.Sqlite.Record {
* @return Role
*/
export interface Role {
nickname: string
region: string
level: number
nickname: string;
region: string;
level: number;
}
/**
@@ -60,14 +60,14 @@ declare namespace TGApp.Sqlite.Record {
* @return Avatar
*/
export interface Avatar {
id: number
name: string
element: string
fetter: number
level: number
star: number
constellation: number
isShow: 0 | 1
id: number;
name: string;
element: string;
fetter: number;
level: number;
star: number;
constellation: number;
isShow: 0 | 1;
}
/**
@@ -92,21 +92,21 @@ declare namespace TGApp.Sqlite.Record {
* @return Stats
*/
export interface Stats {
activeDays: number
achievementNumber: number
avatarNumber: number
wayPoints: number
domainNumber: number
anemoCulus: number
geoCulus: number
electroCulus: number
dendroCulus: number
sprialAbyss: string
luxuriousChest: number
preciousChest: number
exquisiteChest: number
commonChest: number
magicChest: number
activeDays: number;
achievementNumber: number;
avatarNumber: number;
wayPoints: number;
domainNumber: number;
anemoCulus: number;
geoCulus: number;
electroCulus: number;
dendroCulus: number;
sprialAbyss: string;
luxuriousChest: number;
preciousChest: number;
exquisiteChest: number;
commonChest: number;
magicChest: number;
}
/**
@@ -125,15 +125,15 @@ declare namespace TGApp.Sqlite.Record {
* @return WorldExplore
*/
export interface WorldExplore {
level: number
exploration: number
iconLight: string
iconDark: string
name: string
type: string
offerings: WorldOffering[]
bg: string
cover: string
level: number;
exploration: number;
iconLight: string;
iconDark: string;
name: string;
type: string;
offerings: WorldOffering[];
bg: string;
cover: string;
}
/**
@@ -146,9 +146,9 @@ declare namespace TGApp.Sqlite.Record {
* @return WorldOffering
*/
export interface WorldOffering {
name: string
level: number
icon: string
name: string;
level: number;
icon: string;
}
/**
@@ -166,13 +166,13 @@ declare namespace TGApp.Sqlite.Record {
* @return Home
*/
export interface Home {
comfortIcon: string
comfortName: string
name: string
level: number
comfort: number
furniture: number
visit: number
bg: string
comfortIcon: string;
comfortName: string;
name: string;
level: number;
comfort: number;
furniture: number;
visit: number;
bg: string;
}
}

View File

@@ -16,8 +16,8 @@ declare namespace TGApp.User.Account {
*/
export interface GameResponse extends TGApp.BBS.Response.Base {
data: {
list: Game[]
}
list: Game[];
};
}
/**
@@ -35,14 +35,13 @@ declare namespace TGApp.User.Account {
* @return Game
*/
export interface Game {
game_biz: string
game_uid: string
is_chosen: boolean
is_official: boolean
level: string
nickname: string
region: string
region_name: string
game_biz: string;
game_uid: string;
is_chosen: boolean;
is_official: boolean;
level: string;
nickname: string;
region: string;
region_name: string;
}
}