mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
增加登录日志
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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';
|
||||
Reference in New Issue
Block a user