mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-21 09:19:16 +08:00
55 lines
1008 B
Go
55 lines
1008 B
Go
|
export interface Result {
|
||
|
code: number;
|
||
|
message: string;
|
||
|
}
|
||
|
|
||
|
export interface ResultData<T> {
|
||
|
code: number;
|
||
|
message: string;
|
||
|
data: T;
|
||
|
}
|
||
|
|
||
|
export interface ResPage<T> {
|
||
|
items: T[];
|
||
|
total: number;
|
||
|
}
|
||
|
|
||
|
export interface ReqPage {
|
||
|
page: number;
|
||
|
pageSize: number;
|
||
|
}
|
||
|
export interface CommonModel {
|
||
|
id: number;
|
||
|
CreatedAt?: string;
|
||
|
UpdatedAt?: string;
|
||
|
}
|
||
|
|
||
|
// * 登录模块
|
||
|
export namespace Login {
|
||
|
export interface ReqLoginForm {
|
||
|
name: string;
|
||
|
password: string;
|
||
|
captcha: string;
|
||
|
captchaID: string;
|
||
|
authMethod: string;
|
||
|
}
|
||
|
export interface ResLogin {
|
||
|
name: string;
|
||
|
token: string;
|
||
|
}
|
||
|
export interface ResCaptcha {
|
||
|
imagePath: string;
|
||
|
captchaID: string;
|
||
|
captchaLength: number;
|
||
|
}
|
||
|
export interface ResAuthButtons {
|
||
|
[propName: string]: any;
|
||
|
}
|
||
|
}
|
||
|
// * 文件上传模块
|
||
|
export namespace Upload {
|
||
|
export interface ResFileUrl {
|
||
|
fileUrl: string;
|
||
|
}
|
||
|
}
|