diff --git a/src/tag-log-v3/tag-log-v3.controller.ts b/src/tag-log-v3/tag-log-v3.controller.ts index 7f6f3cf..0fccb8e 100644 --- a/src/tag-log-v3/tag-log-v3.controller.ts +++ b/src/tag-log-v3/tag-log-v3.controller.ts @@ -145,8 +145,7 @@ export class TagLogController { const gaepo = +cadetPerCluster.find((v) => v.cluster === 'GAEPO')?.cadet; // const seocho = +cadetPerCluster.find((v) => v.cluster === 'SEOCHO')?.cadet; - const infoMessages: InfoMessageDto[] = []; - infoMessages.push(this.messageGenerator.generateInfoMessage()); + const infoMessages = this.messageGenerator.generateInfoMessages(); const result: UserInfoType = { login: user.login, diff --git a/src/utils/message-generator.component.ts b/src/utils/message-generator.component.ts index 47b15b0..fba6c12 100644 --- a/src/utils/message-generator.component.ts +++ b/src/utils/message-generator.component.ts @@ -5,11 +5,25 @@ import { InfoMessageDto } from "src/tag-log-v3/dto/info-message.dto"; export class MessageGenerator { // private logger = new Logger(MessageGenerator.name); - generateInfoMessage(): InfoMessageDto { + private generateFundInfoMessage(): InfoMessageDto { const INFO_MESSAGE_TITLE: string = "인정 시간은 지원금 정책에 반영되는 시간입니다."; const INFO_MESSAGE_CONTENT: string = "1일 최대 12시간"; const infoMessage = new InfoMessageDto(INFO_MESSAGE_TITLE, INFO_MESSAGE_CONTENT); return infoMessage; } - + + + private generateTagLatencyMessage(): InfoMessageDto { + const INFO_MESSAGE_TITLE: string = "입실 중 이용시간은 실제 기록과 다를 수 있습니다."; + const INFO_MESSAGE_CONTENT: string = "입실 / 퇴실 태깅에 유의해주세요."; + const infoMessage = new InfoMessageDto(INFO_MESSAGE_TITLE, INFO_MESSAGE_CONTENT); + return infoMessage; + } + + generateInfoMessages(): InfoMessageDto[] { + const infoMessages: InfoMessageDto[] = []; + infoMessages.push(this.generateFundInfoMessage()); + infoMessages.push(this.generateTagLatencyMessage()); + return infoMessages; + } } \ No newline at end of file