-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π :: νμνμμ μΈμΆ μνλ₯Ό κ΄λ¦¬νλ κΈ°λ₯ ꡬν #8
base: main
Are you sure you want to change the base?
Conversation
src/main/kotlin/com/project/goms/domain/studentCouncil/presentation/StudentCouncilController.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/project/goms/domain/studentCouncil/presentation/StudentCouncilController.kt
Outdated
Show resolved
Hide resolved
.../kotlin/com/project/goms/domain/studentCouncil/presentation/data/request/OutingBanRequest.kt
Outdated
Show resolved
Hide resolved
outingStatusUUID = UUID.randomUUID(), | ||
expiredAt = outingStatusExpTimeProperties.expiredAt | ||
) | ||
log.info { "μ΄λ²μ£Ό μΈμΆ λΆκ°λ₯ γ γ±" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λ‘κ·Έ μμ
μ μ΄λ κ² νμλ©΄...γ
γ
γ
goms logλ€μ μ€κ΄νΈκ° μλλΌ μκ΄νΈλ‘ νμλλ°, μ΄κ²λ 컨벀μ
μ μ§ν€λ©΄ μ’μκ±° κ°μμ.
log.info { "μ΄λ²μ£Ό μΈμΆ λΆκ°λ₯ γ γ±" } | |
log.info("μ΄λ²μ£Όλ μΈμΆ λΆκ°λ₯ μν μ λλ€." ) |
content = "@everyone \n" | ||
content += "\uD83D\uDCE2 μ€λμ μμμΌ μ λλ€. \uD83D\uDCE2 \n" | ||
content += "> μ λ²μ£Ό μΈμΆμ μ§κ°μμ΄ ${lateOneWeekAgoCount}λͺ μ΄μ¬μ μΈμΆμ λ μ§ννμ§ μμ΅λλ€. \n" | ||
content += "> μ€λ μΈμΆνλ€ κ±Έλ¦΄μ λ¬΄λ¨ μΈμΆμ λλ€. \n" | ||
} | ||
|
||
OutingStatus.PUBLIC_HOLIDAY -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μμ μ²λ¦¬ λ°©μμ 보면 λ€ OUTING_AVAILABLE, OUTING_UNAVAILABLE μΌλλ§ μ²λ¦¬ νλλ° κ³΅ν΄μΌ(PUBLIC_HOLIDAY)μΌλλ μ΄λ»κ² ꡬλΆνκ³ μ²λ¦¬ ν κΉμ?
): SendMessageUseCase { | ||
|
||
override fun sendMessage() { | ||
var content = "" | ||
var outingStatus: OutingStatus = OutingStatus.OUTING_AVAILABLE | ||
val lateOneWeekAgoCount = lateRepository.lateCountOntWeekAgo(LocalDate.now().minusWeeks(1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ κ° μμ μ μμ±ν μ½λλ₯Ό 보면μ λλκ±΄λ° 7μ 40λΆμ μ§κ°μμ μ μ₯νλ μ€μΌμ₯΄λ¬μμ 3λͺ
μ΄μ, λ―Έλ§ μΌλ κ°κ° OutingStatus(Redis)μ OutingStatus(enum)μ μ μ₯νλ©΄ μ λ κ² μΏΌλ¦¬λ¬Έ(μ λ²μ£Όμ μΈμΆμκ° 3λͺ
μ΄μ κ²μ¦)μ λ 릴 νμκ° μκ³
μλ λ‘μ§κ³Ό κ°μ΄ ifλ¬Έμ μ¨μ μ²λ¦¬ ν νμκ° μμ΄ λ³΄μ΄κ³ , λμ€ν¬ λ³΄λ€ λ©λͺ¨λ¦¬μμ κ°μ Έμ€λκ² λ λΉ λ₯΄λ μ±λ₯λ μ¬λΌκ°κ±°λΌκ³ μκ°νλλ° μ΄μ λν΄μ μ΄λ»κ² μκ°νμ€κΉμ?
π‘ κ°μ
νμνμμ μΈμΆ μνλ₯Ό κ΄λ¦¬
π μμ μ¬ν
πββοΈ λ¦¬λ·°λ΄μ©