mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 07:16:08 +08:00
26 lines
467 B
TypeScript
26 lines
467 B
TypeScript
export class AuthInfo {
|
|
ip?: string;
|
|
type: AuthDataType;
|
|
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 enum AuthDataType {
|
|
'loginLog' = 'loginLog',
|
|
'authToken' = 'authToken',
|
|
'notification' = 'notification',
|
|
'removeLogFrequency' = 'removeLogFrequency',
|
|
}
|