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

round 전체 완성 #13

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

round 전체 완성 #13

wants to merge 2 commits into from

Conversation

JaehoonJung0430
Copy link
Collaborator

round 부분 전체 완성(Round, RoundThumbnail 일부 추가, RoundThumbnailDTO, RoundController, RoundRepository, RoundThumbnailRepository, RoundService 추가)

round 부분 전체 완성(Round, RoundThumbnail 일부 추가, RoundThumbnailDTO, RoundController, RoundRepository, RoundThumbnailRepository, RoundService 추가)
@JaehoonJung0430 JaehoonJung0430 self-assigned this Jan 22, 2025
@Operation(summary = "회차 생성", description = "새로운 회차를 생성합니다.")
public ResponseEntity<RoundDTO> createRound(
@Parameter(description = "스터디 ID", required = true) @PathVariable Long studyId,
@RequestParam String goal,
Copy link
Collaborator

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,
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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 로 바꿔주세요
자세한 내용은 디스코드에 적혀있어요
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants