mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
ck管理增加排序,禁用,实时状态变成手动获取
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export class Cookie {
|
||||
value?: string;
|
||||
timestamp?: string;
|
||||
created?: number;
|
||||
_id?: string;
|
||||
status?: CookieStatus;
|
||||
position?: number;
|
||||
|
||||
constructor(options: Cookie) {
|
||||
this.value = options.value;
|
||||
this._id = options._id;
|
||||
this.created = options.created || new Date().valueOf();
|
||||
this.status = options.status || CookieStatus.noacquired;
|
||||
this.timestamp = new Date().toString();
|
||||
this.position = options.position;
|
||||
}
|
||||
}
|
||||
|
||||
export enum CookieStatus {
|
||||
'noacquired',
|
||||
'normal',
|
||||
'disabled',
|
||||
'invalid',
|
||||
'abnormal',
|
||||
}
|
||||
|
||||
export const initCookiePosition = 9999999999;
|
||||
Reference in New Issue
Block a user