🗑️ loadMore

This commit is contained in:
BTMuli
2023-12-10 15:51:56 +08:00
parent 5395304431
commit 8c50da61b1
6 changed files with 107 additions and 19 deletions

View File

@@ -14,16 +14,19 @@ import MysApi from "../api";
* @param {number} forumId 特定论坛 ID
* @param {number} gid GID
* @param {number} type 排序方式: 0-按热度排序1-最新回复2-按时间排序
* @param {number} page 页码
* @return {Promise<TGApp.Plugins.Mys.Forum.FullData>}
*/
async function getForumList(
forumId: number,
gid: number = 2,
type: number = 0,
page: number = 1,
): Promise<TGApp.Plugins.Mys.Forum.FullData> {
const url = MysApi.Forum.replace("{forum}", forumId.toString())
.replace("{gid}", gid.toString())
.replace("{type}", type.toString());
.replace("{type}", type.toString())
.replace("{page}", page.toString());
return await http.fetch<TGApp.Plugins.Mys.Forum.Response>(url).then((res) => res.data.data);
}