Files
plus-ui/src/api/types.ts

52 lines
746 B
TypeScript
Raw Normal View History

2023-04-02 01:01:56 +08:00
/**
*
*/
export type RegisterForm = {
2023-04-03 00:05:09 +08:00
username: string;
password: string;
confirmPassword?: string;
code?: string;
uuid?: string;
userType?: string;
2023-04-02 01:01:56 +08:00
};
/**
*
*/
export interface LoginData {
2023-07-01 16:24:48 +08:00
username?: string;
password?: string;
2023-04-03 00:05:09 +08:00
rememberMe?: boolean;
socialCode?: string;
socialState?: string;
source?: string;
2023-04-03 00:05:09 +08:00
code?: string;
uuid?: string;
clientId: string;
grantType: string;
2023-04-02 01:01:56 +08:00
}
/**
*
*/
export interface LoginResult {
access_token: string;
2023-04-02 01:01:56 +08:00
}
/**
*
*/
export interface VerifyCodeResult {
2023-04-03 00:05:09 +08:00
captchaEnabled: boolean;
uuid?: string;
img?: string;
2023-04-02 01:01:56 +08:00
}
/**
*
*/
export interface PageResult<T = any> {
total: number;
rows: T[];
}