mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
✨ 帖子收藏 #100
This commit is contained in:
40
src/types/BBS/Collection.d.ts
vendored
Normal file
40
src/types/BBS/Collection.d.ts
vendored
Normal 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[];
|
||||
}
|
||||
}
|
||||
41
src/types/Sqlite/Collection.d.ts
vendored
Normal file
41
src/types/Sqlite/Collection.d.ts
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* @file types/Sqlite/Collection.d.ts
|
||||
* @description Sqlite UserCollection 类型定义文件
|
||||
* @since Beta v0.4.5
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description 用户收藏命名空间
|
||||
* @since Beta v0.4.5
|
||||
* @namespace TGApp.Sqlite.UserCollection
|
||||
* @memberof TGApp.Sqlite
|
||||
*/
|
||||
declare namespace TGApp.Sqlite.UserCollection {
|
||||
/**
|
||||
* @description 数据库-用户收藏表
|
||||
* @since Beta v0.4.5
|
||||
* @interface SingleTable
|
||||
* @property {string} postId - 帖子 ID
|
||||
* @property {string} title - 标题
|
||||
* @property {string} content - 内容
|
||||
* @property {string} collect - 合集
|
||||
* @property {string} uid - 用户 UID
|
||||
* @property {string} updated - 更新时间
|
||||
* @return SingleTable
|
||||
*/
|
||||
interface SingleTable {
|
||||
postId: string;
|
||||
title: string;
|
||||
content: string;
|
||||
collect: string;
|
||||
uid: string;
|
||||
updated: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 渲染卡片
|
||||
* @since Beta v0.4.5
|
||||
* @interface RenderCard
|
||||
*/
|
||||
type RenderCard = TGApp.Plugins.Mys.Forum.RenderCard;
|
||||
}
|
||||
Reference in New Issue
Block a user