-
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
타이어 결과물 조회 API 구현 close #58 #65
Conversation
public class ResultResponseDTO { | ||
private String id; | ||
|
||
private Long patternId; |
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.
P3: 이렇게 안주셔도 되고 Pattern
객체 통째로 주셔도 됩니다~
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.
Pattern
객체 통째로 주면 id, name, price 등등을 프론트에서 알아서 받는 건가요?
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.
response.pattern.id
이런 식으로 활용할 것 같아요~
@Service | ||
@RequiredArgsConstructor | ||
public class ResultService { | ||
private final ResultRepository resultRepository; | ||
|
||
public ResultResponseDTO findById(String id) { |
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.
P4: create
, read
, update
, delete
와 같이 메서드명을 통일하면 좋을 것 같아요~
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.
코멘트 확인 부탁드립니다~
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.util.List; | ||
import java.util.UUID; |
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.
P5: 이거 안 쓰는 import면 삭제해주세요!
날이 갈수록 코드 구현이 느는 것 같아! |
날이 갈수록 이해력이 좋아지는 것 같습니다~ 테스트 코드 작성까지만 화이팅해주세요! |
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.
코멘트 반영 부탁드릴게요~
|
||
@OneToMany(mappedBy = "color") //읽기만 가능 | ||
private List<Result> results = new ArrayList<>(); | ||
// @OneToMany(mappedBy = "color") //읽기만 가능 |
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.
P4: 주석 말고 아예 지워버려도 될 것 같아요~
@ResponseBody | ||
@ApiResponses({ | ||
@ApiResponse(responseCode = "200", description = "결과물 조회 성공"), | ||
@ApiResponse(responseCode = "400", description = "잘못된 요청, UUID 형식이 아닌 id가 입력된 경우"), |
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.
P3: 실제로 구현되지 않은 Response들은 작성할 필요가 없습니다~
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.
확인했습니다~
Motivation
Problem Solving
To Reviewer