-
Notifications
You must be signed in to change notification settings - Fork 1
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
π :: (PiCK-381) weekend meal my status #386
Conversation
Walkthroughμ£Όλ§ κΈμ μν κ΄λ¦¬μ κ΄λ ¨λ API μλν¬μΈνΈλ₯Ό λ€λ£¬ Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
π§Ή Outside diff range and nitpick comments (1)
src/main/kotlin/dsm/pick2024/domain/weekendmeal/presentation/WeekendMealController.kt (1)
47-51
: LGTM! μ£Όλ§κΈμ μν λ³κ²½ κΈ°λ₯μ΄ μ±κ³΅μ μΌλ‘ ꡬνλμμ΅λλ€.μ΄ λ³κ²½μ¬νμ PRμ λͺ©μ μ λΆν©νλ©°, μ£Όλ§κΈμ μνλ₯Ό λ³κ²½νλ κΈ°λ₯μ μ 곡ν©λλ€. λ€μκ³Ό κ°μ κ°μ μ¬νμ κ³ λ €ν΄ λ³΄μκΈ° λ°λλλ€:
- μ λ ₯λ
status
μ μ ν¨μ±μ κ²μ¬νλ λ‘μ§μ μΆκ°νλ κ²μ΄ μ’μ κ² κ°μ΅λλ€.- μν λ³κ²½ μ€ν¨ μ μ μ ν μμΈ μ²λ¦¬λ₯Ό μΆκ°νλ κ²μ΄ μ’μ κ² κ°μ΅λλ€.
- λ³κ²½λ μνλ₯Ό μλ΅μΌλ‘ λ°ννμ¬ ν΄λΌμ΄μΈνΈμκ² νΌλλ°±μ μ 곡νλ κ²μ κ³ λ €ν΄ λ³΄μΈμ.
μ΄λ¬ν κ°μ μ¬νμ μ μ©νκ³ μΆμΌμλ€λ©΄, λ€μκ³Ό κ°μ΄ μ½λλ₯Ό μμ ν μ μμ΅λλ€:
@PatchMapping("/my-status") fun changeStatus(@RequestParam(name = "status") status: Status): ResponseEntity<StatusResponse> { return try { val updatedStatus = weekendMealUseCase.changeWeekendMeal(status) ResponseEntity.ok(StatusResponse(updatedStatus)) } catch (e: IllegalArgumentException) { ResponseEntity.badRequest().body(StatusResponse(null, e.message)) } } data class StatusResponse(val status: Status?, val message: String? = null)μ΄ λ³κ²½μ¬νμ μ μ©νμκ² μ΅λκΉ?
close #385
![αα
³αα
³α
α
΅α«αα
£αΊ 2024-10-01 09 05 13](https://private-user-images.githubusercontent.com/126755987/372280427-a6a81614-b563-4513-9272-627405005b98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzczMzAsIm5iZiI6MTczOTQzNzAzMCwicGF0aCI6Ii8xMjY3NTU5ODcvMzcyMjgwNDI3LWE2YTgxNjE0LWI1NjMtNDUxMy05MjcyLTYyNzQwNTAwNWI5OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwODU3MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZDc0OWFjZjMwMWVkMWFkNjY5M2QwZmY5YTVjOTNlYjBkZWZjNzRkNmMyMGQ1MjFlNWExNTJlNmU5Yjg1NDEwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.pKoImnCfarCs-PEug-qeLsI6eavGdwvGXZ0WUhOsnFs)
Summary by CodeRabbit
μλ‘μ΄ κΈ°λ₯
/my-status
μλν¬μΈνΈλ₯Ό ν΅ν΄ μμ μ μ£Όλ§ μμ¬ μνλ₯Ό λ³κ²½ν μ μμ΅λλ€.λ²κ·Έ μμ
changeStatus
λ©μλκ° νμ±νλμ΄ κΈ°λ₯μ΄ λ³΅μλμμ΅λλ€.