-
-
Save socar-dorma/a0f2c79be7ffc2cff556c02be80500f0 to your computer and use it in GitHub Desktop.
생성된 codes.ts 파일
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Code { | |
id: number | string, | |
group: string, | |
name: string, | |
label: string, | |
message?: string, | |
deleted?: boolean, | |
} | |
export class EnumEntry { | |
values: Array<Code> = []; | |
} | |
// other codes... | |
class SettlementType extends EnumEntry { | |
AUTO: Code = { | |
id: 0, | |
group: 'SETTLEMENT_TYPE', | |
name: 'STLTP_AUTO', | |
label: '자동', | |
} | |
MANUAL: Code = { | |
id: 1, | |
group: 'SETTLEMENT_TYPE', | |
name: 'STLTP_MANUAL', | |
label: '수동', | |
} | |
values: Array<Code> = [ | |
this.AUTO, | |
this.MANUAL, | |
]; | |
} | |
// other codes... | |
export default { | |
// other codes... | |
settlementType: new SettlementType(), | |
// other codes... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment