mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
31 lines
640 B
TypeScript
31 lines
640 B
TypeScript
export class Env {
|
|
value?: string;
|
|
timestamp?: string;
|
|
created?: number;
|
|
_id?: string;
|
|
status?: EnvStatus;
|
|
position?: number;
|
|
name?: number;
|
|
remarks?: number;
|
|
|
|
constructor(options: Env) {
|
|
this.value = options.value;
|
|
this._id = options._id;
|
|
this.created = options.created || new Date().valueOf();
|
|
this.status = options.status || EnvStatus.noacquired;
|
|
this.timestamp = new Date().toString();
|
|
this.name = options.name;
|
|
this.remarks = options.remarks;
|
|
}
|
|
}
|
|
|
|
export enum EnvStatus {
|
|
'noacquired',
|
|
'normal',
|
|
'disabled',
|
|
'invalid',
|
|
'abnormal',
|
|
}
|
|
|
|
export const initEnvPosition = 9999999999;
|