✏️ 完善基本 Response 类型 #51

This commit is contained in:
BTMuli
2023-10-26 18:58:06 +08:00
parent 1d408b5d24
commit 9a221f9b64
33 changed files with 266 additions and 238 deletions

View File

@@ -1,11 +1,10 @@
/**
* @file plugins Mys utils doGameLogin
* @file plugins/Mys/utils/doGameLogin
* @todo 完善
* @description 获取 gameToken曲线获取 stoken
* @author BTMuli <bt-muli@outlook.com>
* @since Beta v0.3.0
*/
// tauri
import { http } from "@tauri-apps/api";
const device = crypto.randomUUID();
@@ -13,10 +12,10 @@ const device = crypto.randomUUID();
/**
* @description 获取登录二维码
* @since Beta v0.3.0
* @returns {Promise<TGApp.Plugins.Mys.GameLogin.GetLoginQrData|TGApp.Plugins.Mys.Base.Response>}
* @returns {Promise<TGApp.Plugins.Mys.GameLogin.GetLoginQrData|TGApp.BBS.Response.Base>}
*/
export async function getLoginQr(): Promise<
TGApp.Plugins.Mys.GameLogin.GetLoginQrData | TGApp.Plugins.Mys.Base.Response
TGApp.Plugins.Mys.GameLogin.GetLoginQrData | TGApp.BBS.Response.Base
> {
const url = "https://hk4e-sdk.mihoyo.com/hk4e_cn/combo/panda/qrcode/fetch";
const data = {
@@ -24,7 +23,7 @@ export async function getLoginQr(): Promise<
device,
};
return await http
.fetch<TGApp.Plugins.Mys.GameLogin.GetLoginQrResponse>(url, {
.fetch<TGApp.Plugins.Mys.GameLogin.GetLoginQrResponse | TGApp.BBS.Response.Base>(url, {
method: "POST",
body: http.Body.json(data),
})
@@ -38,16 +37,16 @@ export async function getLoginQr(): Promise<
* @description 获取登录状态
* @since Beta v0.3.0
* @param {string} ticket 二维码 ticket
* @returns {Promise<TGApp.Plugins.Mys.GameLogin.GetLoginStatusData | TGApp.Plugins.Mys.Base.Response>}
* @returns {Promise<TGApp.Plugins.Mys.GameLogin.GetLoginStatusData | TGApp.BBS.Response.Base>}
*/
export async function getLoginStatus(
ticket: string,
): Promise<TGApp.Plugins.Mys.GameLogin.GetLoginStatusData | TGApp.Plugins.Mys.Base.Response> {
): Promise<TGApp.Plugins.Mys.GameLogin.GetLoginStatusData | TGApp.BBS.Response.Base> {
const url = "https://hk4e-sdk.mihoyo.com/hk4e_cn/combo/panda/qrcode/query";
const data = { app_id: "4", device, ticket };
console.log(data);
return await http
.fetch<TGApp.Plugins.Mys.GameLogin.GetLoginStatusResponse>(url, {
.fetch<TGApp.Plugins.Mys.GameLogin.GetLoginStatusResponse | TGApp.BBS.Response.Base>(url, {
method: "POST",
body: http.Body.json(data),
})

View File

@@ -1,11 +1,9 @@
/**
* @file plugins Mys request getEmojis.ts
* @file plugins/Mys/request/getEmojis.ts
* @description Mys 表情包请求函数集合
* @author BTMuli <bt-muli@outlook.com>
* @since Beta v0.3.0
*/
// tauri
import { http } from "@tauri-apps/api";
/**
@@ -15,16 +13,18 @@ import { http } from "@tauri-apps/api";
*/
export async function getEmojis(): Promise<Record<string, string> | TGApp.BBS.Response.Base> {
const url = "https://bbs-api-static.miyoushe.com/misc/api/emoticon_set";
return await http.fetch<TGApp.Plugins.Mys.Emoji.Response>(url).then((res) => {
if (res.data.retcode === 0) {
const emojis: Record<string, string> = {};
res.data.data.list.forEach((series) => {
series.list.forEach((emoji) => {
emojis[emoji.name] = emoji.icon;
return await http
.fetch<TGApp.Plugins.Mys.Emoji.Response | TGApp.BBS.Response.Base>(url)
.then((res) => {
if (res.data.retcode === 0) {
const emojis: Record<string, string> = {};
res.data.data.list.forEach((series) => {
series.list.forEach((emoji) => {
emojis[emoji.name] = emoji.icon;
});
});
});
return emojis;
}
return res.data;
});
return emojis;
}
return res.data;
});
}

View File

@@ -1,29 +0,0 @@
/**
* @file plugins Mys types Base.d.ts
* @description Mys 插件基础类型定义文件
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.1
*/
/**
* @description Mys 插件基础类型
* @since Alpha v0.2.1
* @namespace Base
* @return Base
*/
declare namespace TGApp.Plugins.Mys.Base {
/**
* @description Mys Response 统一接口
* @since Alpha v0.2.1
* @interface Response
* @property {number} retcode 状态码
* @property {string} message 状态信息
* @property {any} data 数据
* @return Response
*/
export interface Response {
retcode: number;
message: string;
data: any;
}
}

View File

@@ -1,27 +1,27 @@
/**
* @file plugins Mys types Emoji.d.ts
* @file plugins/Mys/types/Emoji.d.ts
* @description Mys 表情包类型声明文件
* @author BTMuli <bt-muli@outlook.com>
* @since Beta v0.3.0
*/
/**
* @description Mys 表情包类型
* @since Beta v0.3.0
* @namespace Emoji
* return Emoji
* @namespace TGApp.Plugins.Mys.Emoji
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.Emoji {
/**
* @description 获取表情包列表返回
* @since Beta v0.3.0
* @interface Response
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {Series[]} data.list 表情包列表
* @property {unknown} data.recently_emoticon 最近使用的表情包
* @return Response
*/
export interface Response extends TGApp.Plugins.Mys.Base.Response {
interface Response extends TGApp.BBS.Response.Base {
retcode: 0;
data: {
list: Series[];
recently_emoticon: unknown;
@@ -43,7 +43,7 @@ declare namespace TGApp.Plugins.Mys.Emoji {
* @property {boolean} is_available 表情包系列是否可用
* @return Series
*/
export interface Series {
interface Series {
id: number;
name: string;
icon: string;
@@ -70,7 +70,7 @@ declare namespace TGApp.Plugins.Mys.Emoji {
* @property {unknown[]} keywords 表情包关键词
* @return EmojiItem
*/
export interface EmojiItem {
interface EmojiItem {
id: number;
name: string;
icon: string;

View File

@@ -1,5 +1,5 @@
/**
* @file plugins Mys types Gacha.d.ts
* @file plugins/Mys/types/Gacha.d.ts
* @description Mys 插件卡池类型定义文件
* @since Beta v0.3.3
*/
@@ -7,19 +7,20 @@
/**
* @description Mys 卡池类型定义
* @since Beta v0.3.3
* @namespace Gacha
* @return Gacha
* @namespace TGApp.Plugins.Mys.Gacha
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.Gacha {
/**
* @description 获取卡池信息返回
* @since Alpha v0.2.1
* @interface Response
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {Data[]} data.list 卡池数据
* @return Response
*/
interface Response extends TGApp.Plugins.Mys.Base.Response {
interface Response extends TGApp.BBS.Response.Base {
retcode: 0;
data: {
list: Data[];
};

View File

@@ -1,26 +1,26 @@
/**
* @file plugins Mys types GameLogin.d.ts
* @file plugins/Mys/types/GameLogin.d.ts
* @description Mys 插件 Game 登录类型定义文件
* @author BTMuli <bt-muli@outlook.com>
* @since Beta v0.3.0
*/
/**
* @description Mys 插件 Game 登录类型
* @since Beta v0.3.0
* @namespace GameLogin
* @return GameLogin
* @namespace TGApp.Plugins.Mys.GameLogin
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.GameLogin {
/**
* @description 获取登录二维码返回数据
* @since Beta v0.3.0
* @interface GetLoginQrResponse
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {GetLoginQrData} data 数据
* @return GetLoginQrResponse
*/
export interface GetLoginQrResponse extends TGApp.Plugins.Mys.Base.Response {
interface GetLoginQrResponse extends TGApp.BBS.Response.Base {
retcode: 0;
data: GetLoginQrData;
}
@@ -31,7 +31,7 @@ declare namespace TGApp.Plugins.Mys.GameLogin {
* @property {string} url 二维码链接
* @return GetLoginQrData
*/
export interface GetLoginQrData {
interface GetLoginQrData {
url: string;
}
@@ -39,11 +39,12 @@ declare namespace TGApp.Plugins.Mys.GameLogin {
* @description 获取登录状态返回数据
* @since Beta v0.3.0
* @interface GetLoginStatusResponse
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {GetLoginStatusData} data 数据
* @return GetLoginStatusResponse
*/
export interface GetLoginStatusResponse extends TGApp.Plugins.Mys.Base.Response {
interface GetLoginStatusResponse extends TGApp.BBS.Response.Base {
retcode: 0;
data: GetLoginStatusData;
}
@@ -55,7 +56,7 @@ declare namespace TGApp.Plugins.Mys.GameLogin {
* @property {StatusPayload} payload 状态数据
* @return GetLoginStatusData
*/
export interface GetLoginStatusData {
interface GetLoginStatusData {
stat: string;
payload: StatusPayload;
}
@@ -69,7 +70,7 @@ declare namespace TGApp.Plugins.Mys.GameLogin {
* @property {string} raw 序列化数据,反序列化后是 {uid: string, token: string}
* @return StatusPayload
*/
export interface StatusPayload {
interface StatusPayload {
ext: string;
proto: string;
raw: string;
@@ -83,7 +84,7 @@ declare namespace TGApp.Plugins.Mys.GameLogin {
* @property {string} token 用户 token
* @return StatusPayloadRaw
*/
export interface StatusPayloadRaw {
interface StatusPayloadRaw {
uid: string;
token: string;
}

View File

@@ -1,26 +1,26 @@
/**
* @file plugins Mys types Lottery.d.ts
* @file plugins/Mys/types/Lottery.d.ts
* @description Mys 插件抽奖类型定义文件
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.1
*/
/**
* @description Mys 插件抽奖类型
* @since Alpha v0.2.1
* @namespace Lottery
* @return Lottery
* @namespace TGApp.Plugins.Mys.Lottery
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.Lottery {
/**
* @description 抽奖返回数据
* @since Alpha v0.2.1
* @interface Response
* @extends TGApp.Plugins.Mys.Base.Response;
* @extends TGApp.BBS.Response.Base
* @property {FullData} data.show_lottery 抽奖数据
* @return Response
*/
export interface Response extends TGApp.Plugins.Mys.Base.Response {
interface Response extends TGApp.BBS.Response.Base {
retcode: 0;
data: {
show_lottery: FullData;
};
@@ -47,7 +47,7 @@ declare namespace TGApp.Plugins.Mys.Lottery {
* @property {string} now_time 当前时间
* @return FullData
*/
export interface FullData {
interface FullData {
id: string;
creator: TGApp.Plugins.Mys.User.Post;
draw_time: string;
@@ -77,7 +77,7 @@ declare namespace TGApp.Plugins.Mys.Lottery {
* @property {string} id 奖励 ID
* @return Reward
*/
export interface Reward {
interface Reward {
reward_name: string;
winner_number: number;
scheduled_winner_number: number;
@@ -98,7 +98,7 @@ declare namespace TGApp.Plugins.Mys.Lottery {
* @property {RenderReward[]} rewards 奖励列表
* @return RenderCard
*/
export interface RenderCard {
interface RenderCard {
id: string;
upWay: string;
status: string;
@@ -117,7 +117,7 @@ declare namespace TGApp.Plugins.Mys.Lottery {
* @property {TGApp.Plugins.Mys.User.Post[]} users 用户列表
* @return RenderReward
*/
export interface RenderReward {
interface RenderReward {
name: string;
win: number;
goal: number;

View File

@@ -1,26 +1,26 @@
/**
* @file plugins Mys types news.d.ts
* @file plugins/Mys/types/news.d.ts
* @description Mys 插件咨讯类型定义文件
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.1
*/
/**
* @description Mys 插件咨讯类型
* @since Alpha v0.2.1
* @namespace News
* @return News
* @namespace TGApp.Plugins.Mys.News
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.News {
/**
* @description 咨讯返回数据
* @since Alpha v0.2.1
* @interface Response
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {FullData} data 咨讯数据
* @return Response
*/
export interface Response extends TGApp.Plugins.Mys.Base.Response {
interface Response extends TGApp.BBS.Response.Base {
retcode: 0;
data: FullData;
}
@@ -33,7 +33,7 @@ declare namespace TGApp.Plugins.Mys.News {
* @property {Item[]} list 咨讯列表
* @return FullData
*/
export interface FullData {
interface FullData {
last_id: number;
is_last: boolean;
list: Item[];
@@ -66,7 +66,7 @@ declare namespace TGApp.Plugins.Mys.News {
* @property {Meta} news_meta 元数据
* @returns Item
*/
export interface Item {
interface Item {
post: TGApp.Plugins.Mys.Post.Post;
forum: TGApp.Plugins.Mys.Post.Forum;
topics: TGApp.Plugins.Mys.Post.Topic[];
@@ -99,7 +99,7 @@ declare namespace TGApp.Plugins.Mys.News {
* @property {string} end_at_sec 活动结束时间戳,单位秒
* @return Meta
*/
export interface Meta {
interface Meta {
activity_status: number;
start_at_sec: string;
end_at_sec: string;
@@ -130,7 +130,7 @@ declare namespace TGApp.Plugins.Mys.News {
* @property {number} data.view 帖子浏览数
* @return RenderCard
*/
export interface RenderCard {
interface RenderCard {
title: string;
cover: string;
postId: number;
@@ -162,7 +162,7 @@ declare namespace TGApp.Plugins.Mys.News {
* @property {string} colorCss 活动状态按钮背景色
* @returns RenderStatus
*/
export interface RenderStatus {
interface RenderStatus {
status: string;
colorCss: string;
}

View File

@@ -1,26 +1,26 @@
/**
* @file plugins Mys types Obc.d.ts
* @file plugins/Mys/types/Obc.d.ts
* @description Mys obc 类型定义文件
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.1
*/
/**
* @description Mys obc 类型
* @since Alpha v0.2.1
* @namespace Obc
* @return Obc
* @namespace TGApp.Plugins.Mys.Obc
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.Obc {
/**
* @description Mys obc 返回数据
* @since Alpha v0.2.1
* @interface Response
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {Obc[]} data.list obc 列表
* @return Response
*/
export interface Response extends TGApp.Plugins.Mys.Base.Response {
interface Response extends TGApp.BBS.Response.Base {
retcode: 0;
data: {
list: Obc[];
};
@@ -39,7 +39,7 @@ declare namespace TGApp.Plugins.Mys.Obc {
* @property {unknown[]} list 列表
* @return Data
*/
export interface Data {
interface Data {
id: number;
name: string;
parent_id: number;

View File

@@ -1,26 +1,26 @@
/**
* @file plugins Mys types Position.d.ts
* @file plugins/Mys/types/Position.d.ts
* @description Mys 插件热点追踪接口
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.1
*/
/**
* @description Mys 插件热点追踪类型
* @since Alpha v0.2.1
* @namespace Position
* @return Position
* @namespace TGApp.Plugins.Mys.Position
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.Position {
/**
* @description 热点追踪信息的返回类型
* @since Alpha v0.2.1
* @interface Response
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {ObcItem[]} data.list obc 列表
* @return Response
*/
export interface Response extends TGApp.Plugins.Mys.Obc.Response {
interface Response extends TGApp.BBS.Response.Base {
retcode: 0;
data: {
list: ObcItem[];
};
@@ -34,7 +34,7 @@ declare namespace TGApp.Plugins.Mys.Position {
* @property {Data[]} list 列表
* @return ObcItem
*/
export interface ObcItem extends TGApp.Plugins.Mys.Obc.Data {
interface ObcItem extends TGApp.Plugins.Mys.Obc.Data {
list: Data[];
}
@@ -57,7 +57,7 @@ declare namespace TGApp.Plugins.Mys.Position {
* @property {string} end_time 结束时间 // 1680465599000
* @return Data
*/
export interface Data {
interface Data {
recommend_id: number;
content_id: number;
title: string;
@@ -88,7 +88,7 @@ declare namespace TGApp.Plugins.Mys.Position {
* @property {number} time.endStamp 结束时间戳
* @return RenderCard
*/
export interface RenderCard {
interface RenderCard {
title: string;
postId: number;
icon: string;

View File

@@ -1,5 +1,5 @@
/**
* @file plugins Mys types post.d.ts
* @file plugins/Mys/types/post.d.ts
* @description Mys 插件帖子类型定义文件
* @since Beta v0.3.3
*/
@@ -7,19 +7,20 @@
/**
* @description Mys 插件帖子类型
* @since Alpha v0.2.1
* @namespace Post
* @return Post
* @namespace TGApp.Plugins.Mys.Post
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.Post {
/**
* @description 帖子返回数据
* @since Alpha v0.2.1
* @interface Response
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {FullData} data.post 帖子数据
* @return Response
*/
export interface Response extends TGApp.Plugins.Mys.Base.Response {
interface Response extends TGApp.BBS.Response.Base {
retcode: 0;
data: {
post: FullData;
};
@@ -52,7 +53,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {TGApp.Plugins.Mys.News.Meta} news_meta 咨讯元数据,可能为 null
* @return FullData
*/
export interface FullData {
interface FullData {
post: Post;
forum: Forum;
topics: Topic[];
@@ -121,7 +122,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {number} selected_comment 是否选择评论
* @return Post
*/
export interface Post {
interface Post {
game_id: number;
post_id: string;
f_forum_id: number;
@@ -175,7 +176,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {unknown} forum_cate 版块分类,可能为 null
* @return Forum
*/
export interface Forum {
interface Forum {
id: number;
name: string;
icon: string;
@@ -197,7 +198,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {number} content_type 内容类型
* @return Topic
*/
export interface Topic {
interface Topic {
id: number;
name: string;
cover: string;
@@ -219,7 +220,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {number} forward_num 转发数
* @return Stat
*/
export interface Stat {
interface Stat {
view_num: number;
reply_num: number;
like_num: number;
@@ -249,7 +250,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {boolean} is_deleted 是否已删除
* @return Image
*/
export interface Image {
interface Image {
url: string;
height: number;
width: number;
@@ -278,7 +279,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {number} answer_num 回答数
* @return HelpSys
*/
export interface HelpSys {
interface HelpSys {
top_up: unknown | null;
top_n: unknown[];
answer_num: number;
@@ -293,7 +294,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {string[]} images 图片 URL
* @return Content
*/
export interface PostContent {
interface PostContent {
describe: string;
images?: string[];
}
@@ -330,7 +331,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {string} attributes.link 链接
* @return StructuredContent
*/
export interface StructuredContent {
interface StructuredContent {
insert:
| {
image?: string;
@@ -386,7 +387,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {number} review_status 审核状态
* @return StructuredVod
*/
export interface StructuredVod {
interface StructuredVod {
id: number;
duration: number;
cover: string;
@@ -422,7 +423,7 @@ declare namespace TGApp.Plugins.Mys.Post {
* @property {number} landing_url_type 落地链接类型
* @return StructuredLinkCard
*/
export interface StructuredLinkCard {
interface StructuredLinkCard {
link_type: number;
origin_url: string;
landing_url: string;

View File

@@ -1,26 +1,26 @@
/**
* @file plugins Mys types user.ts
* @file plugins/Mys/types/user.ts
* @description Mys 插件用户类型定义文件
* @author BTMuli <bt-muli@outlook.com>
* @since Alpha v0.2.2
*/
/**
* @description Mys 插件用户类型
* @since Alpha v0.2.2
* @namespace User
* @return User
* @namespace TGApp.Plugins.Mys.User
* @memberof TGApp.Plugins.Mys
*/
declare namespace TGApp.Plugins.Mys.User {
/**
* @description 主页用户信息返回
* @since Alpha v0.2.1
* @interface HomeResponse
* @extends TGApp.Plugins.Mys.Base.Response
* @extends TGApp.BBS.Response.Base
* @property {Home} data 用户信息
* @return HomeResponse
*/
export interface HomeResponse extends TGApp.Plugins.Mys.Base.Response {
interface HomeResponse extends TGApp.BBS.Response.Base {
retcode: 0;
data: Home;
}
@@ -45,7 +45,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {number} audit_info.nickname_status 昵称审核状态
* @return Home
*/
export interface Home {
interface Home {
user_info: Info;
follow_relation: unknown;
auth_relations: unknown[];
@@ -86,7 +86,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {string} ip_region 用户 IP 地区
* @return Info
*/
export interface Info {
interface Info {
uid: string;
nickname: string;
introduce: string;
@@ -112,7 +112,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {string} label 认证标签
* @return Certification
*/
export interface Certification {
interface Certification {
type: number;
label: string;
}
@@ -126,7 +126,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {number} game_id 游戏 ID
* @return LevelExp
*/
export interface LevelExp {
interface LevelExp {
level: number;
exp: number;
game_id: number;
@@ -147,7 +147,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {string} follow_collection_cnt 收藏数
* @return Archive
*/
export interface Archive {
interface Archive {
like_num: string;
post_num: string;
replypost_num: string;
@@ -192,7 +192,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {number} created_at 创建时间
* @return Community
*/
export interface Community {
interface Community {
is_realname: boolean;
agree_status: boolean;
silent_end_time: number;
@@ -244,7 +244,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {string} pendant 用户挂件 URL可能为 ""
* @return Post
*/
export interface Post {
interface Post {
uid: string;
nickname: string;
introduce: string;
@@ -269,7 +269,7 @@ declare namespace TGApp.Plugins.Mys.User {
* @property {boolean} is_collected 是否收藏
* @returns {SelfOperation}
*/
export interface SelfOperation {
interface SelfOperation {
attitude: number;
is_collected: boolean;
}