帖子收藏 #100

This commit is contained in:
目棃
2024-03-19 21:51:57 +08:00
parent c5587211fd
commit 8996c1bce1
12 changed files with 602 additions and 19 deletions

40
src/types/BBS/Collection.d.ts vendored Normal file
View File

@@ -0,0 +1,40 @@
/**
* @file types/BBS/Collection.d.ts
* @description BBS 收藏相关类型定义文件
* @since Beta v0.4.5
*/
/**
* @description BBS 收藏命名空间
* @since Beta v0.4.5
* @namespace TGApp.BBS.Collection
* @memberof TGApp.BBS
*/
declare namespace TGApp.BBS.Collection {
/**
* @description 用户收藏帖子数据返回
* @since Beta v0.4.5
* @interface PostResponse
* @extends TGApp.BBS.Response.BaseWithData
* @property {PostRespData} data - 响应数据
* @return PostResponse
*/
interface PostResponse extends TGApp.BBS.Response.BaseWithData {
data: PostRespData;
}
/**
* @description 用户收藏帖子响应数据
* @since Beta v0.4.5
* @interface PostRespData
* @property {boolean} is_last - 是否最后一页
* @property {string} next_offset - 下一页偏移量
* @property {Array<TGApp.Plugins.Mys.Post.FullData>} list - 帖子列表
* @return PostRespData
*/
interface PostRespData {
is_last: boolean;
next_offset: string;
list: TGApp.Plugins.Mys.Post.FullData[];
}
}