Skip to content
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

Merged
merged 7 commits into from
Feb 28, 2024

Conversation

byeon22
Copy link
Member

@byeon22 byeon22 commented Feb 23, 2024

Motivation

Problem Solving

  • Controller, Service, responseDTO 코드 작성

To Reviewer

  • 칭찬과 리뷰 부탁드려요~~

@byeon22 byeon22 self-assigned this Feb 23, 2024
public class ResultResponseDTO {
private String id;

private Long patternId;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: 이렇게 안주셔도 되고 Pattern 객체 통째로 주셔도 됩니다~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pattern 객체 통째로 주면 id, name, price 등등을 프론트에서 알아서 받는 건가요?

Copy link
Member

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) {
Copy link
Member

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와 같이 메서드명을 통일하면 좋을 것 같아요~

Copy link
Member

@jinlee1703 jinlee1703 left a 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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P5: 이거 안 쓰는 import면 삭제해주세요!

@SubiHwang
Copy link
Member

SubiHwang commented Feb 23, 2024

날이 갈수록 코드 구현이 느는 것 같아!
수고했고 확인했습니다~!

@jinlee1703
Copy link
Member

날이 갈수록 이해력이 좋아지는 것 같습니다~ 테스트 코드 작성까지만 화이팅해주세요!

@byeon22 byeon22 requested a review from jinlee1703 February 28, 2024 03:33
Copy link
Member

@jinlee1703 jinlee1703 left a 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") //읽기만 가능
Copy link
Member

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가 입력된 경우"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: 실제로 구현되지 않은 Response들은 작성할 필요가 없습니다~

@byeon22 byeon22 requested a review from jinlee1703 February 28, 2024 06:33
Copy link
Member

@jinlee1703 jinlee1703 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다~

@byeon22 byeon22 merged commit b867a61 into develop Feb 28, 2024
1 check passed
@byeon22 byeon22 deleted the feature#58-result-list-api branch February 28, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants