app/@overflow/model/meta/MetaProbeStatus.ts
crusader aaf3e23966 ing
2018-08-27 00:15:10 +09:00

23 lines
425 B
TypeScript

export interface MetaProbeStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaProbeStatusEnum {
INITIAL = 'INITIAL',
NORMAL = 'NORMAL',
}
export const toMetaProbeStatusEnum = (v: MetaProbeStatus): MetaProbeStatusEnum => {
return MetaProbeStatusEnum[v.key];
};
export const toMetaProbeStatus = (v: MetaProbeStatusEnum): MetaProbeStatus => {
return {
key: v,
};
};