-
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
round 전체 완성 #13
base: develop
Are you sure you want to change the base?
round 전체 완성 #13
Conversation
round 부분 전체 완성(Round, RoundThumbnail 일부 추가, RoundThumbnailDTO, RoundController, RoundRepository, RoundThumbnailRepository, RoundService 추가)
@Operation(summary = "회차 생성", description = "새로운 회차를 생성합니다.") | ||
public ResponseEntity<RoundDTO> createRound( | ||
@Parameter(description = "스터디 ID", required = true) @PathVariable Long studyId, | ||
@RequestParam String goal, |
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.
묶어서 requestDTO 하나 만드는게 좋아보여요
public ResponseEntity<RoundDTO> updateRound( | ||
@Parameter(description = "스터디 ID", required = true) @PathVariable Long studyId, | ||
@Parameter(description = "회차 ID", required = true) @PathVariable Long roundId, | ||
@RequestParam String goal, |
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.
여기도 묶어서 DTO로 바꾸는게 좋아보여요
import java.time.LocalDate; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor |
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.
다른 분들이랑 통일해서 noarg 는 protected로,
allarg 는 private으로 만들고,
builder annotation 은 클래스 위로 옮기는게 어떨까요
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor |
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.
여기도 위처럼 noarg, allarg, builder 같은 이야기입니다
|
||
@Service | ||
@RequiredArgsConstructor | ||
@Transactional |
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.
readOnly 로 바꿔주세요
자세한 내용은 디스코드에 적혀있어요
CreateRoundRequest, UpdateRoundRequest 생성 컨트롤러, 도메인, dto, service 일부 수정 @operation(summary = "회차 생성", description = "새로운 회차를 생성합니다.") public ResponseEntity<RoundDTO> createRound( @parameter(description = "스터디 ID", required = true) @PathVariable Long studyId, @RequestParam String goal, Member 묶어서 requestDTO 하나 만드는게 좋아보여요 src/main/java/com/gdgoc/study_group/round/controller/RoundController.java public ResponseEntity<RoundDTO> updateRound( @parameter(description = "스터디 ID", required = true) @PathVariable Long studyId, @parameter(description = "회차 ID", required = true) @PathVariable Long roundId, @RequestParam String goal, Member 여기도 묶어서 DTO로 바꾸는게 좋아보여요 @entity @Getter @NoArgsConstructor Member 다른 분들이랑 통일해서 noarg 는 protected로, allarg 는 private으로 만들고, builder annotation 은 클래스 위로 옮기는게 어떨까요 @entity @Getter @NoArgsConstructor Member 여기도 위처럼 noarg, allarg, builder 같은 이야기입니다 @service @requiredargsconstructor @transactional Member@cmj7271 readOnly 로 바꿔주세요 자세한 내용은 디스코드에 적혀있어요
round 부분 전체 완성(Round, RoundThumbnail 일부 추가, RoundThumbnailDTO, RoundController, RoundRepository, RoundThumbnailRepository, RoundService 추가)