-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
export class InfoMessageDto { | ||
title: string | null; | ||
content: string | null; | ||
|
||
constructor(title: string | null, content: string | null) { | ||
this.title = title; | ||
this.content = content; | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export const TWELVE_HOURS_IN_SECONDS = 12 * 60 * 60; | ||
export const ONE_DAY_IN_SECONDS = 24 * 60 * 60; | ||
export const ONE_DAY_IN_SECONDS = 24 * 60 * 60; | ||
|
||
export const INFO_MESSAGE_TITLE = "인정 시간은 지원금 정책에 반영되는 시간입니다."; | ||
export const INFO_MESSAGE_CONTENT = "1일 최대 12시간"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Injectable, Logger } from "@nestjs/common"; | ||
import { InfoMessageDto } from "src/tag-log-v3/dto/info-message.dto"; | ||
|
||
@Injectable() | ||
export class MessageGenerator { | ||
// private logger = new Logger(MessageGenerator.name); | ||
|
||
generateInfoMessage(): 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; | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { DateCalculator } from './date-calculator.component'; | ||
import { GoogleApi } from './google-api.component'; | ||
import { MessageGenerator } from './message-generator.component'; | ||
|
||
@Module({ | ||
providers: [DateCalculator, GoogleApi], | ||
exports: [DateCalculator, GoogleApi], | ||
providers: [DateCalculator, GoogleApi, MessageGenerator], | ||
exports: [DateCalculator, GoogleApi, MessageGenerator], | ||
}) | ||
export class UtilsModule {} |