You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
import {Result} from './Result';
|
|
import {Token} from './Token';
|
|
import {EmailType} from './EmailType';
|
|
import {Notice} from './Notice';
|
|
import {Forum} from './ForumType';
|
|
import {Page} from './Page';
|
|
import {Visitor} from './Visitor';
|
|
|
|
export interface Response {
|
|
// 响应结果
|
|
result: Result;
|
|
// 响应详细结果
|
|
message: string;
|
|
}
|
|
|
|
/**
|
|
* 注销响应
|
|
*/
|
|
// tslint:disable-next-line:no-empty-interface
|
|
export interface LogoutResponse extends Response {
|
|
|
|
}
|
|
|
|
/**
|
|
* 管理员登录响应
|
|
*/
|
|
export interface LoginResponse extends Response {
|
|
managerToken: Token;
|
|
}
|
|
|
|
// 注册响应
|
|
// tslint:disable-next-line:no-empty-interface
|
|
export interface RegisterResponse extends Response {
|
|
|
|
}
|
|
|
|
// 邮箱类型响应
|
|
export interface EmailTypeResponse extends Response {
|
|
emailTypeList: Array<EmailType>;
|
|
}
|
|
|
|
// 重置密码响应
|
|
// tslint:disable-next-line:no-empty-interface
|
|
export interface ResetpwdResponse extends Response {
|
|
|
|
}
|
|
|
|
// 公告信息响应
|
|
export interface ForumNoticeResponse extends Response {
|
|
noticeList: Array<Notice>;
|
|
}
|
|
|
|
// 帖子信息响应
|
|
export interface ForumNewResponse extends Response {
|
|
forumList: Page<Forum>;
|
|
}
|
|
|
|
// 访客信息响应
|
|
export interface VisitorResponse extends Response {
|
|
visitorList: Page<Visitor>;
|
|
}
|
|
|