mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
⚰️ 清了一下 todo
This commit is contained in:
@@ -27,6 +27,7 @@ onMounted(async () => {
|
||||
size: "80px",
|
||||
height: "80px",
|
||||
ltSize: "30px",
|
||||
clickable: false,
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
lt: `/icon/element/${props.modelValue.element}元素.webp`,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @file plugins Hutao index.ts
|
||||
* @description Hutao 插件入口
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.1
|
||||
* @since Beta v0.3.0
|
||||
*/
|
||||
|
||||
import getAvatarCollect from "./request/getAvatarCollect";
|
||||
@@ -11,7 +11,6 @@ import getAvatarUpRate from "./request/getAvatarUpRate";
|
||||
import getAvatarUseRate from "./request/getAvatarUseRate";
|
||||
import getOverview from "./request/getOverview";
|
||||
import getTeamCollect from "./request/getTeamCollect";
|
||||
import { checkUid, getUserData } from "./request/getUserData";
|
||||
import getWeaponCollect from "./request/getWeaponCollect";
|
||||
import uploadData from "./request/uploadData";
|
||||
import { transAvatars, transLocal } from "./utils/transLocal";
|
||||
@@ -26,10 +25,6 @@ const Hutao = {
|
||||
},
|
||||
getOverview,
|
||||
getTeamCollect,
|
||||
user: {
|
||||
checkExist: checkUid,
|
||||
getRecord: getUserData,
|
||||
},
|
||||
getWeaponCollect,
|
||||
postData: uploadData,
|
||||
utils: {
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
/**
|
||||
* @file plugins Hutao request getUserData.ts
|
||||
* @description 涉及 uid 的请求
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.0
|
||||
*/
|
||||
|
||||
// tauri
|
||||
import { http } from "@tauri-apps/api";
|
||||
// api
|
||||
import HutaoApi from "../api";
|
||||
|
||||
/**
|
||||
* @description 查询是否存在该数据
|
||||
* @since Alpha v0.2.0
|
||||
* @todo 未完成
|
||||
* @param {string} uid
|
||||
* @return {Promise<boolean>}
|
||||
*/
|
||||
export async function checkUid(uid: string): Promise<boolean> {
|
||||
const url = HutaoApi.Abyss.user.check.replace("{uid}", uid);
|
||||
return await http
|
||||
.fetch<TGApp.Plugins.Hutao.Abyss.ExistResponse>(url, {
|
||||
method: "GET",
|
||||
})
|
||||
.then((res) => {
|
||||
return res.data.data;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取用户数据
|
||||
* @since Alpha v0.2.0
|
||||
* @todo 未完成
|
||||
* @param {string} uid
|
||||
* @return {Promise<TGApp.Plugins.Hutao.Abyss.RankData>}
|
||||
*/
|
||||
export async function getUserData(uid: string): Promise<TGApp.Plugins.Hutao.Abyss.RankData> {
|
||||
const url = HutaoApi.Abyss.user.rank.replace("{uid}", uid);
|
||||
return await http
|
||||
.fetch<TGApp.Plugins.Hutao.Abyss.RecordRankResponse>(url, {
|
||||
method: "GET",
|
||||
})
|
||||
.then((res) => {
|
||||
return res.data.data;
|
||||
});
|
||||
}
|
||||
40
src/plugins/Hutao/types/Abyss.d.ts
vendored
40
src/plugins/Hutao/types/Abyss.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
* @file src plugins Hutao types Abyss.d.ts
|
||||
* @description Hutao 插件深渊类型定义文件
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.2
|
||||
* @since Beta v0.3.0
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -140,44 +140,6 @@ declare namespace TGApp.Plugins.Hutao.Abyss {
|
||||
*/
|
||||
export interface UploadResponse extends TGApp.Plugins.Hutao.Base.Response {}
|
||||
|
||||
/**
|
||||
* @description 是否存在深渊记录返回
|
||||
* @since Alpha v0.2.1
|
||||
* @see HutaoRequest.Abyss.user.checkExist
|
||||
* @interface ExistResponse
|
||||
* @extends TGApp.Plugins.Hutao.Base.Response
|
||||
* @property {boolean} data - 是否存在深渊记录
|
||||
* @return ExistResponse
|
||||
*/
|
||||
export interface ExistResponse extends TGApp.Plugins.Hutao.Base.Response {
|
||||
data: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取深渊记录返回
|
||||
* @since Alpha v0.2.1
|
||||
* @see HutaoRequest.Abyss.user.getRecord
|
||||
* @interface RecordRankResponse
|
||||
* @extends TGApp.Plugins.Hutao.Base.Response
|
||||
* @property {RankData} data - 深渊记录
|
||||
* @return RecordRankResponse
|
||||
*/
|
||||
export interface RecordRankResponse extends TGApp.Plugins.Hutao.Base.Response {
|
||||
data: RankData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 深渊记录
|
||||
* @since Alpha v0.2.1
|
||||
* @interface RankData
|
||||
* @todo 暂时缺乏数据
|
||||
* @return RankData
|
||||
*/
|
||||
export interface RankData {
|
||||
// todo
|
||||
data: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取深渊总览数据返回
|
||||
* @since Alpha v0.2.1
|
||||
|
||||
6
src/plugins/Mys/types/News.d.ts
vendored
6
src/plugins/Mys/types/News.d.ts
vendored
@@ -58,11 +58,11 @@ declare namespace TGApp.Plugins.Mys.News {
|
||||
* @property {number} vote_count 投票数
|
||||
* @property {number} last_modify_time 最后修改时间
|
||||
* @property {string} recommend_type 推荐类型
|
||||
* @property {unknown} collection 合集, 可能为 null // TODO: 未知
|
||||
* @property {unknown} collection 合集, 可能为 null
|
||||
* @property {unknown[]} vod_list 视频列表
|
||||
* @property {boolean} is_block_on 是否屏蔽
|
||||
* @property {unknown} forum_rank_info 版块排名信息,可能为 null // TODO: 未知
|
||||
* @property {unknown[]} link_card_list 链接卡片列表,可能为 null // TODO: 未知
|
||||
* @property {unknown} forum_rank_info 版块排名信息,可能为 null
|
||||
* @property {unknown[]} link_card_list 链接卡片列表,可能为 null
|
||||
* @property {Meta} news_meta 元数据
|
||||
* @returns Item
|
||||
*/
|
||||
|
||||
32
src/plugins/Mys/types/Post.d.ts
vendored
32
src/plugins/Mys/types/Post.d.ts
vendored
@@ -45,11 +45,11 @@ declare namespace TGApp.Plugins.Mys.Post {
|
||||
* @property {number} vot_count 投票数
|
||||
* @property {number} last_modify_time 最后修改时间
|
||||
* @property {string} recommend_type 推荐类型
|
||||
* @property {unknown} collection 合集,可能为 null // TODO: 未知
|
||||
* @property {unknown[]} vod_list 视频列表,可能为空 // TODO: 未知
|
||||
* @property {unknown} collection 合集,可能为 null
|
||||
* @property {unknown[]} vod_list 视频列表,可能为空
|
||||
* @property {boolean} is_block_on 是否被屏蔽
|
||||
* @property {unknown} forum_rank_info 版块排行信息,可能为 null // TODO: 未知
|
||||
* @property {unknown[]} link_card_list 链接卡片列表,可能为空 // TODO: 未知
|
||||
* @property {unknown} forum_rank_info 版块排行信息,可能为 null
|
||||
* @property {unknown[]} link_card_list 链接卡片列表,可能为空
|
||||
* @property {TGApp.Plugins.Mys.News.Meta} news_meta 咨讯元数据,可能为 null
|
||||
* @return FullData
|
||||
*/
|
||||
@@ -88,7 +88,7 @@ declare namespace TGApp.Plugins.Mys.Post {
|
||||
* @property {string} subject 帖子标题
|
||||
* @property {string} content 帖子内容,为 html 格式
|
||||
* @property {string} cover 封面图 URL,可能为 ""
|
||||
* @property {number} view_type 浏览类型 // TODO: 未知
|
||||
* @property {number} view_type 浏览类型
|
||||
* @property {number} created_at 发帖时间
|
||||
* @property {string[]} images 图片列表,可能为空
|
||||
* @property post_status 帖子状态
|
||||
@@ -112,14 +112,14 @@ declare namespace TGApp.Plugins.Mys.Post {
|
||||
* @property {number} deleted_at 删除时间
|
||||
* @property {number} pre_pub_status 预发布状态
|
||||
* @property {number} cate_id 分类ID
|
||||
* @property {number} profit_post_status 盈利帖子状态 // TODO: 未知
|
||||
* @property {number} profit_post_status 盈利帖子状态
|
||||
* @property {number} audit_status 审核状态
|
||||
* @property {string} meta_content 元内容,可能为 "" // TODO: 未知
|
||||
* @property {boolean} is_missing 是否缺失 // TODO: 未知
|
||||
* @property {number} block_reply_img 是否屏蔽回复图片 // TODO: 未知
|
||||
* @property {boolean} is_showing_missing 是否显示缺失 // TODO: 未知
|
||||
* @property {number} block_latest_reply_time 是否屏蔽最新回复时间 // TODO: 未知
|
||||
* @property {number} selected_comment 是否选择评论 // TODO: 未知
|
||||
* @property {string} meta_content 元内容,可能为 ""
|
||||
* @property {boolean} is_missing 是否缺失
|
||||
* @property {number} block_reply_img 是否屏蔽回复图片
|
||||
* @property {boolean} is_showing_missing 是否显示缺失
|
||||
* @property {number} block_latest_reply_time 是否屏蔽最新回复时间
|
||||
* @property {number} selected_comment 是否选择评论
|
||||
* @return Post
|
||||
*/
|
||||
export interface Post {
|
||||
@@ -275,7 +275,7 @@ declare namespace TGApp.Plugins.Mys.Post {
|
||||
* @since Alpha v0.2.1
|
||||
* @todo 用处未知
|
||||
* @interface HelpSys
|
||||
* @property {unknown} top_up 置顶, 可能为 null // TODO: 未知
|
||||
* @property {unknown} top_up 置顶, 可能为 null
|
||||
* @property {unknown[]} top_n 置顶, 可能为空
|
||||
* @property {number} answer_num 回答数
|
||||
* @return HelpSys
|
||||
@@ -409,17 +409,17 @@ declare namespace TGApp.Plugins.Mys.Post {
|
||||
* @description 帖子结构化内容-链接卡片
|
||||
* @since Alpha v0.2.1
|
||||
* @interface StructuredLinkCard
|
||||
* @property {number} link_type 链接类型 // 1: 帖子,2:商品 TODO: 未知
|
||||
* @property {number} link_type 链接类型 // 1: 帖子,2:商品
|
||||
* @property {string} origin_url 原始链接
|
||||
* @property {string} landing_url 落地页链接
|
||||
* @property {string} cover 封面图 URL
|
||||
* @property {string} title 标题
|
||||
* @property {string} card_id 卡片 ID
|
||||
* @property {number} card_status 卡片状态 // TODO: 未知
|
||||
* @property {number} card_status 卡片状态
|
||||
* @property {string} market_price 市场价
|
||||
* @property {string} price 价格
|
||||
* @property {string} button_text 按钮文本
|
||||
* @property {number} landing_url_type 落地链接类型 // TODO: 未知
|
||||
* @property {number} landing_url_type 落地链接类型
|
||||
* @return StructuredLinkCard
|
||||
*/
|
||||
export interface StructuredLinkCard {
|
||||
|
||||
4
src/plugins/Mys/types/User.d.ts
vendored
4
src/plugins/Mys/types/User.d.ts
vendored
@@ -233,7 +233,7 @@ declare namespace TGApp.Plugins.Mys.User {
|
||||
* @property {string} nickname 用户昵称
|
||||
* @property {string} introduce 用户简介
|
||||
* @property {string} avatar 用户头像
|
||||
* @property {number} gender 用户性别 // TODO: 未知
|
||||
* @property {number} gender 用户性别
|
||||
* @property {Certification} certification 用户认证信息
|
||||
* @property level_exp 用户等级经验
|
||||
* @property {number} level_exp.level 用户等级
|
||||
@@ -265,7 +265,7 @@ declare namespace TGApp.Plugins.Mys.User {
|
||||
* @description 用户操作
|
||||
* @since Alpha v0.2.1
|
||||
* @interface SelfOperation
|
||||
* @property {number} attitude 操作类型 // TODO: 未知
|
||||
* @property {number} attitude 操作类型
|
||||
* @property {boolean} is_collected 是否收藏
|
||||
* @returns {SelfOperation}
|
||||
*/
|
||||
|
||||
2
src/types/App/NameCard.d.ts
vendored
2
src/types/App/NameCard.d.ts
vendored
@@ -15,7 +15,7 @@ declare namespace TGApp.App.NameCard {
|
||||
* @property {string} icon - 名片图标
|
||||
* @property {string} bg - 名片背景图
|
||||
* @property {string} profile - 名片 Profile 图
|
||||
* @description 0: 其他,1: 成就,2:角色,3:纪行,4:活动 // todo: 后续用枚举替换
|
||||
* @description 0: 其他,1: 成就,2:角色,3:纪行,4:活动
|
||||
* @property {number} type - 名片类型
|
||||
* @property {string} source - 名片来源
|
||||
* @return Item
|
||||
|
||||
121
src/types/App/Weapon.d.ts
vendored
121
src/types/App/Weapon.d.ts
vendored
@@ -29,124 +29,3 @@ declare namespace TGApp.App.Weapon {
|
||||
icon: string;
|
||||
}
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @description 本应用的武器类型
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface FullInfo
|
||||
// * @property {number} id - 武器 ID
|
||||
// * @property {string} name - 武器名称
|
||||
// * @property {number} star - 武器星级
|
||||
// * @property {string} type - 武器类型
|
||||
// * @property {BaseInfo} baseInfo - 武器基础信息
|
||||
// * @property {Refine[]} refines - 武器精炼信息
|
||||
// * @property {AddInfo} addInfo - 武器附加信息
|
||||
// * @return FullInfo
|
||||
// */
|
||||
// export interface FullInfo {
|
||||
// id: number
|
||||
// name: string
|
||||
// star: number
|
||||
// type: string
|
||||
// baseInfo: BaseInfo
|
||||
// refines: Refine[]
|
||||
// addInfo: AddInfo
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 武器基础信息
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface BaseInfo
|
||||
// * @property {string} refine - 武器精炼标题
|
||||
// * @property {string} description - 武器描述
|
||||
// * @property {string} source - 武器获取途径
|
||||
// * @todo 属性值是按 1 级然后计算还是直接按 90 级计算?
|
||||
// * @property {Record<string, number>} main - 武器主属性
|
||||
// * @property {Record<string, number>} sub - 武器副属性
|
||||
// * @return BaseInfo
|
||||
// */
|
||||
// export interface BaseInfo {
|
||||
// refine: string
|
||||
// source: string
|
||||
// description: string
|
||||
// main: Record<string, number>
|
||||
// sub: Record<string, number>
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 武器精炼信息
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface Refine
|
||||
// * @property {number} level - 精炼等级
|
||||
// * @property {string} description - 精炼描述
|
||||
// * @return Refine
|
||||
// */
|
||||
// export interface Refine {
|
||||
// level: number
|
||||
// description: string
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 武器附加信息
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface AddInfo
|
||||
// * @property {BTMuli.Genshin.Wiki.levelUp[]} levelUps - 武器升级信息
|
||||
// * @property {Story} story - 武器故事
|
||||
// * @return AddInfo
|
||||
// */
|
||||
// export interface AddInfo {
|
||||
// levelUps: BTMuli.App.Wiki.levelUp[]
|
||||
// story: Story
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 武器突破信息
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface BreakInfo
|
||||
// * @property {number} level - 突破等级
|
||||
// * @property {Material[]} materials - 突破材料
|
||||
// * @property {Record<string, number>} main - 突破后主属性
|
||||
// * @property {Record<string, number>[]} up - 平均提升属性
|
||||
// * @return BreakInfo
|
||||
// */
|
||||
// export interface BreakInfo {
|
||||
// level: number
|
||||
// materials: Material[]
|
||||
// main: Record<string, number>
|
||||
// up: Array<Record<string, number>>
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 武器故事
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface Story
|
||||
// * @property {string} title - 武器故事名称
|
||||
// * @property {string} content - 武器故事描述
|
||||
// * @return Story
|
||||
// */
|
||||
// export interface Story {
|
||||
// title: string
|
||||
// content: string
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @description 武器材料
|
||||
// * @since Alpha v0.1.3
|
||||
// * @interface Material
|
||||
// * @todo 材料 id 与名称的对应关系
|
||||
// * @property {number} id - 材料 ID
|
||||
// * @property {string} name - 材料名称
|
||||
// * @property {number} star - 材料星级
|
||||
// * @property {string} type - 材料类型
|
||||
// * @property {number} count - 材料数量
|
||||
// * @property {string} source - 材料获取途径
|
||||
// * @return Material
|
||||
// */
|
||||
// export interface Material {
|
||||
// id: number
|
||||
// name: string
|
||||
// star: number
|
||||
// type: string
|
||||
// count: number
|
||||
// source: string
|
||||
// }
|
||||
|
||||
1
src/types/BBS/Account.d.ts
vendored
1
src/types/BBS/Account.d.ts
vendored
@@ -10,7 +10,6 @@ declare namespace TGApp.BBS.Account {
|
||||
* @description stoken 验证获取的用户信息
|
||||
* @interface VerifySTokenInfo
|
||||
* @since Alpha v0.1.5
|
||||
* @todo 添加 request 索引
|
||||
* @property {string} aid 账号 id
|
||||
* @property {string} mid mid
|
||||
* @property {string} account_name 账号名称
|
||||
|
||||
8
src/types/BBS/Announcement.d.ts
vendored
8
src/types/BBS/Announcement.d.ts
vendored
@@ -40,12 +40,12 @@ declare namespace TGApp.BBS.Announcement {
|
||||
* @property {boolean} alert - 是否有紧急公告
|
||||
* @property {number} time_zone - 时区
|
||||
* @property {string} t - 时间戳,单位为秒
|
||||
* @property {unknown[]} pic_list - 图片列表 todo: 未知类型
|
||||
* @property {unknown[]} pic_list - 图片列表
|
||||
* @property {number} pic_total - 图片总数
|
||||
* @property {unknown[]} pic_type_list - 图片类型列表 todo: 未知类型
|
||||
* @property {unknown[]} pic_type_list - 图片类型列表
|
||||
* @property {boolean} pic_alert - 是否有紧急图片
|
||||
* @property {number} pic_alert_id - 紧急图片 ID
|
||||
* @property {unknown} static_sign - 静态签名 todo: 未知类型
|
||||
* @property {unknown} static_sign - 静态签名
|
||||
* @return ListData
|
||||
*/
|
||||
export interface ListData {
|
||||
@@ -69,7 +69,7 @@ declare namespace TGApp.BBS.Announcement {
|
||||
* @since Alpha v0.1.5
|
||||
* @property {ContentItem[]} list - 公告内容列表
|
||||
* @property {number} total - 公告内容总数
|
||||
* @property {unknown[]} pic_list - 图片列表 todo: 未知类型
|
||||
* @property {unknown[]} pic_list - 图片列表
|
||||
* @property {number} pic_total - 图片总数
|
||||
* @return ContentData
|
||||
*/
|
||||
|
||||
5
src/types/BBS/Response.d.ts
vendored
5
src/types/BBS/Response.d.ts
vendored
@@ -1,7 +1,6 @@
|
||||
/**
|
||||
* @file types BBS Tokens.d.ts
|
||||
* @description BBS 返回数据类型定义文件
|
||||
* @todo 视情况看看要不要拆分
|
||||
* @author BTMuli< bt-muli@outlook.com>
|
||||
* @since Beta v0.3.0
|
||||
*/
|
||||
@@ -39,7 +38,6 @@ declare namespace TGApp.BBS.Response {
|
||||
* @description 获取 ltoken 跟 stoken 的响应数据
|
||||
* @interface getTokens
|
||||
* @since Alpha v0.1.5
|
||||
* @todo 添加 request 索引
|
||||
* @extends Base
|
||||
* @property {getTokensRes[]} data.list - token 列表
|
||||
* @return getTokens
|
||||
@@ -54,7 +52,6 @@ declare namespace TGApp.BBS.Response {
|
||||
* @description 根据 stoken 获取 ltoken 的响应数据
|
||||
* @interface getLTokenBySToken
|
||||
* @since Alpha v0.1.5
|
||||
* @todo 添加 request 索引
|
||||
* @extends Base
|
||||
* @property {string} data.ltoken - ltoken 值
|
||||
* @return getLTokenBySToken
|
||||
@@ -69,7 +66,6 @@ declare namespace TGApp.BBS.Response {
|
||||
* @description 根据 stoken 获取 cookie_token 的响应数据
|
||||
* @interface getCookieTokenBySToken
|
||||
* @since Alpha v0.1.5
|
||||
* @todo 添加 request 索引
|
||||
* @extends Base
|
||||
* @property {string} data.uid - 用户 uid
|
||||
* @property {string} data.cookie_token - cookie_token 值
|
||||
@@ -86,7 +82,6 @@ declare namespace TGApp.BBS.Response {
|
||||
* @description 通过 stoken 验证用户信息的返回类型
|
||||
* @interface verifyUserInfoBySToken
|
||||
* @since Alpha v0.1.5
|
||||
* @todo 添加 request 索引
|
||||
* @extends Base
|
||||
* @property {TGApp.BBS.Account.VerifySTokenInfo} data.user_info - 用户信息
|
||||
* @property {unknown} data.realname_info - 实名信息 // todo: 未知类型
|
||||
|
||||
5
src/types/Game/Abyss.d.ts
vendored
5
src/types/Game/Abyss.d.ts
vendored
@@ -10,7 +10,6 @@ declare namespace TGApp.Game.Abyss {
|
||||
* @description 深渊数据返回类型
|
||||
* @interface Response
|
||||
* @since Alpha v0.2.0
|
||||
* @see todo 请求也得重构一下
|
||||
* @extends TGApp.BBS.Response.Base
|
||||
* @property {FullData} data - 深渊数据
|
||||
* @return Response
|
||||
@@ -27,7 +26,7 @@ declare namespace TGApp.Game.Abyss {
|
||||
* @property {string} start_time - 深渊开始时间,单位:秒
|
||||
* @property {string} end_time - 深渊结束时间,单位:秒
|
||||
* @property {number} total_battle_times - 总战斗次数
|
||||
* @property {number} total_win_times - todo:未知
|
||||
* @property {number} total_win_times - 总胜利次数
|
||||
* @property {string} max_floor - 最深抵达 // 12-3
|
||||
* @property {Character[]} reveal_rank - 出站次数 // 最多的 4 个角色
|
||||
* @property {Character[]} defeat_rank - 最多击破数
|
||||
@@ -82,7 +81,7 @@ declare namespace TGApp.Game.Abyss {
|
||||
* @property {number} index - 层索引
|
||||
* @property {string} icon - 层图标
|
||||
* @property {boolean} is_unlock - 是否解锁
|
||||
* @property {number} settle_time - todo: 未知
|
||||
* @property {number} settle_time
|
||||
* @property {number} star - 获得星数
|
||||
* @property {number} max_star - 最大星数
|
||||
* @property {Level[]} levels - 层内关卡数据
|
||||
|
||||
5
src/types/Game/Character.d.ts
vendored
5
src/types/Game/Character.d.ts
vendored
@@ -10,7 +10,6 @@ declare namespace TGApp.Game.Character {
|
||||
* @description 角色列表数据返回类型
|
||||
* @interface ListResponse
|
||||
* @since Alpha v0.2.0
|
||||
* @see todo 请求也得重构一下
|
||||
* @extends TGApp.BBS.Response.Base
|
||||
* @property {ListItem[]} data.avatars - 角色列表
|
||||
* @property {ListRole} data.role - 角色信息
|
||||
@@ -41,7 +40,7 @@ declare namespace TGApp.Game.Character {
|
||||
* @property {number} actived_constellation_num - 角色已激活命座数量
|
||||
* @property {LICostume[]} costumes - 角色时装
|
||||
* @property {number} constellation_level - 角色命座等级
|
||||
* @property {unknown} external - todo:未知
|
||||
* @property {unknown} external
|
||||
* @return ListItem
|
||||
*/
|
||||
export interface ListItem {
|
||||
@@ -86,7 +85,7 @@ declare namespace TGApp.Game.Character {
|
||||
* @property {number} id - 武器 ID
|
||||
* @property {string} name - 武器名称
|
||||
* @property {string} icon - 武器图标
|
||||
* @property {number} type - 武器类型 // todo: 不同的武器类型对应的数值
|
||||
* @property {number} type - 武器类型
|
||||
* @property {number} rarity - 武器稀有度
|
||||
* @property {number} level - 武器等级
|
||||
* @property {number} promote_level - 武器等级对应的突破等级
|
||||
|
||||
2
src/types/Game/Gacha.d.ts
vendored
2
src/types/Game/Gacha.d.ts
vendored
@@ -50,7 +50,7 @@ declare namespace TGApp.Game.Gacha {
|
||||
* @since Beta v0.3.0
|
||||
* @property {string} uid - 用户 uid
|
||||
* @property {string} gacha_type - 抽卡类型 // 100: 新手祈愿, 200: 常驻祈愿, 301: 角色活动祈愿, 302: 武器活动祈愿 400:角色活动祈愿2
|
||||
* @property {string} item_id - 物品 id // todo:一般为 "",需要自己添加
|
||||
* @property {string} item_id - 物品 id // 一般为 "",需要自己添加
|
||||
* @property {string} count - 数量
|
||||
* @property {string} time - 时间 // yyyy-MM-dd HH:mm:ss
|
||||
* @property {string} name - 物品名称
|
||||
|
||||
2
src/types/Sqlite/NameCard.d.ts
vendored
2
src/types/Sqlite/NameCard.d.ts
vendored
@@ -12,7 +12,7 @@ declare namespace TGApp.Sqlite.NameCard {
|
||||
* @interface SingleTable
|
||||
* @property {string} name - 名片名称
|
||||
* @property {string} desc - 名片描述
|
||||
* @description 0: 其他,1: 成就,2:角色,3:纪行,4:活动 // todo: 后续用枚举替换
|
||||
* @description 0: 其他,1: 成就,2:角色,3:纪行,4:活动
|
||||
* @property {number} type - 名片类型
|
||||
* @property {string} source - 名片来源
|
||||
* @property {string} updated - 数据库更新时间
|
||||
|
||||
Reference in New Issue
Block a user