@ginstone/nga-api
Version:
91 lines (90 loc) • 2.43 kB
JavaScript
"use strict";
// thread.php 接口使用的参数
Object.defineProperty(exports, "__esModule", { value: true });
exports.ForumRecommendParam = exports.UserSearchParam = exports.FavorParam = exports.ForumSearchParam = exports.ForumListParam = exports.ColSearchParam = exports.colListParam = exports.ColBaseParam = void 0;
const PageParam_1 = require("./PageParam");
/**
* 合集基础参数
*/
class ColBaseParam extends PageParam_1.PageParam {
constructor(stid, page) {
super(page);
this.stid = stid;
}
}
exports.ColBaseParam = ColBaseParam;
/**
* 浏览合集参数
*/
class colListParam extends ColBaseParam {
constructor(stid, page, order_by) {
super(stid, page);
this.order_by = order_by;
}
}
exports.colListParam = colListParam;
/**
* 合集主题搜索参数
*/
class ColSearchParam extends ColBaseParam {
constructor(stid, key, page, content, recommend) {
super(stid, page);
this.key = key;
this.content = content;
this.recommend = recommend;
}
}
exports.ColSearchParam = ColSearchParam;
/**
* 版面浏览参数
*/
class ForumListParam extends PageParam_1.PageParam {
constructor(fid, page, order_by) {
super(page);
this.fid = fid;
this.order_by = order_by;
}
}
exports.ForumListParam = ForumListParam;
/**
* 版面搜索参数
*/
class ForumSearchParam extends PageParam_1.PageParam {
constructor(fid, key, page, content, recommend) {
super(page);
this.fid = fid;
this.key = key;
this.content = content;
this.recommend = recommend;
}
}
exports.ForumSearchParam = ForumSearchParam;
/**
* 收藏主题参数
*/
class FavorParam extends PageParam_1.PageParam {
constructor(favor, page) {
super(page);
this.favor = favor;
}
}
exports.FavorParam = FavorParam;
/**
* 用户的主题/回复搜索参数
*/
class UserSearchParam extends PageParam_1.PageParam {
constructor(authorid, fid, page, searchpost, recommend) {
super(page);
this.authorid = authorid;
this.fid = fid;
this.searchpost = searchpost;
this.recommend = recommend;
}
}
exports.UserSearchParam = UserSearchParam;
class ForumRecommendParam extends ForumSearchParam {
constructor(fid, page) {
super(fid, undefined, page, undefined, 1);
}
}
exports.ForumRecommendParam = ForumRecommendParam;