👽️ 适应米社返回数据变更

This commit is contained in:
目棃
2024-07-08 14:47:59 +08:00
parent d9ab24cb14
commit 5816f5c825
4 changed files with 23 additions and 15 deletions

View File

@@ -61,12 +61,12 @@ declare namespace TGApp.Plugins.Mys.News {
* @property {string} cover 封面图片 URL
* @property {number} postId 帖子 ID
* @property {string} subtitle 副标题
* @property {TGApp.Plugins.Mys.User.Post|null} user 发帖用户
* @property {TGApp.Plugins.Mys.User.Post|null} user 发帖用户,可能为 null
* @property forum 版块,可能为 null
* @property {string} forum.name 版块名称
* @property {string} forum.icon 版块图标
* @property {RenderStatus} status 活动状态,仅活动咨讯有
* @property data 帖子统计
* @property data 帖子统计,可能为 null
* @property {number} data.mark 帖子收藏数
* @property {number} data.forward 帖子转发数
* @property {number} data.like 帖子点赞数
@@ -90,7 +90,7 @@ declare namespace TGApp.Plugins.Mys.News {
like: number;
reply: number;
view: number;
};
} | null;
status?: RenderStatus;
}

View File

@@ -30,11 +30,11 @@ declare namespace TGApp.Plugins.Mys.Post {
* @since Beta v0.5.0
* @interface FullData
* @property {Post} post 帖子信息
* @property {Forum} forum 所属版块
* @property {Forum|null} forum 所属版块,可能为 null
* @property {Topic[]} topics 所属话题
* @property {TGApp.Plugins.Mys.User.Post|null} user 发帖人
* @property {TGApp.Plugins.Mys.User.Post|null} user 发帖人,可能为 null
* @property {TGApp.Plugins.Mys.User.SelfOperation} self_operation 当前用户操作
* @property {Stat} stat 帖子统计
* @property {Stat|null} stat 帖子统计,可能为 null
* @property {HelpSys} help_sys 帮助系统,可能为 null
* @property {Image} cover 封面图,可能为 null
* @property {Image[]} image_list 图片列表
@@ -58,7 +58,7 @@ declare namespace TGApp.Plugins.Mys.Post {
topics: Topic[];
user: TGApp.Plugins.Mys.User.Post | null;
self_operation: TGApp.Plugins.Mys.User.SelfOperation;
stat: Stat;
stat: Stat | null;
help_sys: HelpSys | null;
cover: Image | null;
image_list: Image[];