-
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
First seminar/#1 #2
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์๋ต ๊ฐ์ฒด๋ฅผ ๊น๋ํ๊ฒ ์ ์ง์ จ๋ค์ ๐ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๊ฐ์ฌํฉ๋๋ค~!! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.server.dosopt.seminar.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class AssignmentResponse { | ||
|
||
private int code; | ||
private String status; | ||
private boolean success; | ||
|
||
@Builder | ||
public AssignmentResponse(int code, String status, boolean success) { | ||
this.code = code; | ||
this.status = status; | ||
this.success = success; | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ค builder ํจํด์ ์ฌ์ฉํ์
จ๋ค์ฉ! @AllArgsConstructor
@Getter
@Builder
public class AssignmentResponse {
private int code;
private String status;
private boolean success;
} ์๋ฐ ์ฝ๋๋ฅผ ํน์ ๊ณ ๋ คํด๋ณด์ จ๋์ง ๋ง์ฝ ๊ทธ๋ฌ๋ค๋ฉด ์ง์ ์์ฑ์๋ฅผ ๊ตฌํํ๊ณ Builder ์ด๋ ธํ ์ด์ ์ ๋ถ์ธ ์ด์ ๊ฐ ์์๊น์ฉ?!(์ ๋ฌผ๋ก ์ ๋ ๋ชฐ๋ผ์ ใ ใ ) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ํด๋์ค์ @builder๋ฅผ ์ ์ด์ฃผ๋ ๊ฒ์ ํด๋์ค ๋ด์ ๋ชจ๋ ํ๋์ ๋ํด ๋น๋ ํจํด์ด ์ ์ฉ๋๋ ๊ฑฐ๋ผ ์์ฑ์ ์์ ๋ถ์ด๋ ๊ฒ์ ๊ณ ๋ คํด๋ณด๋ผ๋ ๋ฆฌ๋ทฐ๋ฅผ ๋ค๋ฅธ ๋ถ ์ฝ๋์์ ๋ดค์ต๋๋ค! ๊ทธ๋์ ์ ๋ ๋น์ฅ ๋น๋๋ฅผ ์ ์ฉ์ํฌ ์์ฑ์ ์์๋ง ๋ถ์ด๋๊ฒ ๋ ์ข์ ๊ฒ ๊ฐ๋ค๋ ์๊ฐ์ด ๋ค์ด ์ด๋ ๊ฒ ์ฝ๋๋ฅผ ์ ์์ต๋๋ค~!! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์๋ฏธ์๋ ์ฝ๋..! ํ๋ฅญํฉ๋๋ค!๐ฅ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @builder ,,! ๋ชฐ๋๋ ๋ถ๋ถ์ธ๋ฐ, ์ ๋ ๋ฐฐ์๊ฐ๋๋ค!!๐
Comment on lines
+6
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๊น๋ํ๋ค์~! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๊ฐ์ฌํฉ๋๋ค~!! |
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.
AssignmentResponse
๋ผ๊ณresponse
์ด๋ฆ์ ๋ง๋ค๋ฉด ๋์ค์ ๋ค๋ฅธ api์ ์ด api๋ฅผ ๋ณํํด์ ์ฌ์ฉํ ๋ ์๋ฏธ๊ฐ ๋ญ๊ฐ ํ ์๋ฟ์ง ์์ ๊ฒ ๊ฐ๋ค๋ ๋๋์ด ์ข ์๊ธดํ๋ค์คใ ใ ๋ฉ์๋ ์ด๋ฆ์ด๋ ๋ณ์๋ช ๋ฑ์ ๊ณ ๋ฏผํด๋ณด๋ ๊ฒ๋ ์ข์ ์ต๊ด์ด ๋ ๊ฒ ๊ฐ์ต๋๋ค!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.
์ด๋ฆ์ ๋ญ๋ก ํ ๊น ๋๊ฒ ๊ณ ๋ฏผํ๋๋ฐ ์ผ๋จ ๋ฆฌ๋ทฐํด์ฃผ์ค ๋ถ๋ค์ด ๋น ๋ฅด๊ฒ ํ์ธํ ์ ์๋๋ก ํ ๋ฒ์ ์์๋ณผ ์ ์๋ ์ด๋ฆ์ด ์ข์ง ์์๊น ํ๊ณ ์ด๋ ๊ฒ ์ ์์ต๋๋ค ใ ใ ๋ฉ์๋, ๋ณ์ ์ด๋ฆ์ ์ ์ ๋ ๊ฒ์ด ๊ฐ์ธ์ ์ผ๋ก ์ข ์ด๋ ค์์ ใ ใ ์์ผ๋ก ๋ ๊ณ ๋ฏผํด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค! ๊ฐ์ฌํฉ๋๋ค~!!