app/@overflow/model/meta/MetaNoAuthProbeStatus.ts

24 lines
510 B
TypeScript
Raw Normal View History

2018-08-26 15:15:10 +00:00
export interface MetaNoAuthProbeStatus {
id?: number;
key?: string;
name?: string;
createDate?: Date;
}
export enum MetaNoAuthProbeStatusEnum {
ACCEPTED = 'ACCEPTED',
DENIED = 'DENIED',
PROCESSING = 'PROCESSING',
}
export const toMetaNoAuthProbeStatusEnum = (v: MetaNoAuthProbeStatus): MetaNoAuthProbeStatusEnum => {
return MetaNoAuthProbeStatusEnum[v.key];
};
export const toMetaNoAuthProbeStatus = (v: MetaNoAuthProbeStatusEnum): MetaNoAuthProbeStatus => {
return {
key: v,
};
};