-
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
Feature/bad word deactivate(wr9 34) #35
Conversation
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.
๊ณ ์ํ์ จ์ต๋๋ค.
@RequestBody @Valid UpdateBadWordStatusRequest request) { | ||
|
||
badWordService.updateBadWordStatus(badWordId, request); | ||
return ResponseEntity.ok(BaseResponse.of(null, "๊ธ์น์ด ์ํ ๋ณ๊ฒฝ ์๋ฃ")); |
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.
๊ฒ์ด๋จ์ด, ๊ธ์น์ด ๋จ์ด๋ฅผ ํต์ผ์ํค๋๊ฒ ์ข์ง ์์๊น์?!
- null ๋ฐํ๋ ์ข์ง๋ง, ์ด๋ป๊ฒ update ๋์๋์ง ๋ฐํํด์ฃผ๋๊ฒ๋ ์ข์๋ณด์ ๋๋ค. but ํด๋น ๊ธฐ๋ฅ์ ํ๋ฉด์ด ์์ต๋๋ค.
@@ -26,4 +26,10 @@ public class BadWord extends BaseEntity { | |||
@Column(nullable = false) | |||
private Boolean isUsed; |
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.
Wrapper ํ ๋ณด๋ค ๊ธฐ๋ณธํ ์ฐ๋๊ฒ ์ข์๋ณด์ ๋๋ค.
์? why? ๊ธฐ๋ณธํ์ ์ฌ์ฉ์ ์ด์ฐจํผ ๊ธฐ๋ณธ๊ฐ์ด false์ด๋ค. wrapper ์ฐ๋ฉด ํน์ ๋ชจ๋ฅผ Null๊ฐ์ ์กฐ์ฌํด์ผํ๋ค. ๊ทธ๋ฆฌ๊ณ ์์ฃผ ๊นจ์๊ฐ์ ๋ฉ๋ชจ๋ฆฌ ์ธก๋ฉด์์๋ ๊ธฐ๋ณธํ์ด ๋์ก์๋จน์ผ๋๊น ๊ธฐ๋ณธํ์ ์ฐ๋๊ฒ ์ข์๋ณด์ ๋๋ค.
@AllArgsConstructor | ||
public class UpdateBadWordStatusRequest { | ||
@NotNull(message = "์ํ๊ฐ์ ํ์์ ๋๋ค.") | ||
private Boolean isUsed; |
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.
๋ฐ์ ๋ฐ๊พธ๋ฉด ์ด๋ถ๋ถ๋ ๋ฐ๊ฟ์ฃผ์๋๊ฒ ์ข์ ๊ฒ ๊ฐ์์..
ํต์ผ์ฑ ์งํค๊ธฐ
|
Pull Request Template
๐ PR ์ค๋ช
๊ธ์น์ด ์ํ ๋ณ๊ฒฝ(ํ์ฑํ/๋นํ์ฑํ) ๊ธฐ๋ฅ ์ถ๊ฐ
๐ ์ฃผ์ ๋ณ๊ฒฝ์ฌํญ
๐ธ ์คํฌ๋ฆฐ์ท (์ ํ์ฌํญ)
๐งช ํ ์คํธ
โ ์ฒดํฌ๋ฆฌ์คํธ
๐ค ๊ด๋ จ ์ด์