mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
21 lines
353 B
TypeScript
21 lines
353 B
TypeScript
export class AuthInfo {
|
|
ip?: string;
|
|
type: AuthInfoType;
|
|
info?: any;
|
|
_id?: string;
|
|
|
|
constructor(options: AuthInfo) {
|
|
this.ip = options.ip;
|
|
this.info = options.info;
|
|
this.type = options.type;
|
|
this._id = options._id;
|
|
}
|
|
}
|
|
|
|
export enum LoginStatus {
|
|
'success',
|
|
'fail',
|
|
}
|
|
|
|
export type AuthInfoType = 'loginLog' | 'authToken';
|