From c0e268d83d5bc0871667553e626d48d18d648ac6 Mon Sep 17 00:00:00 2001 From: HyunWoo9930 Date: Thu, 28 Nov 2024 14:30:04 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat=20:=20=EC=84=A0=EA=B2=B0=EC=A0=9C?= =?UTF-8?q?=EC=8B=9C=201=EC=9D=B8=20=EC=82=AC=EC=9A=A9=20=EA=B8=88?= =?UTF-8?q?=EC=95=A1=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/store/service/PrepayService.java | 53 ------------------- 1 file changed, 53 deletions(-) diff --git a/src/main/java/com/jangburich/domain/store/service/PrepayService.java b/src/main/java/com/jangburich/domain/store/service/PrepayService.java index 1d714f8..6b29e67 100644 --- a/src/main/java/com/jangburich/domain/store/service/PrepayService.java +++ b/src/main/java/com/jangburich/domain/store/service/PrepayService.java @@ -1,9 +1,6 @@ package com.jangburich.domain.store.service; -<<<<<<< Updated upstream import java.time.LocalDate; -======= ->>>>>>> Stashed changes import java.util.Optional; import org.springframework.stereotype.Service; @@ -50,7 +47,6 @@ public Message prepay(String userId, PrepayRequest prepayRequest) { Store store = storeRepository.findById(prepayRequest.storeId()) .orElseThrow(() -> new IllegalArgumentException("유효하지 않은 가게 id 입니다.")); -<<<<<<< Updated upstream team.validateIsTeamLeader(team.getTeamLeader().getUser_id(), user.getUserId()); user.validateHasPointWithPrepayAmount(prepayRequest.prepayAmount(), user.getPoint()); @@ -99,49 +95,6 @@ public Message prepay(String userId, PrepayRequest prepayRequest) { storeTeam.setPersonalAllocatedPoint(prepayRequest.personalAllocatedAmount()); storeTeam.recharge(prepayRequest.prepayAmount()); -======= - if (!team.getTeamLeader().getUser_id().equals(user.getUserId())) { - return Message.builder() - .message("팀의 리더가 아닌 사람은 선결제를 할 수 없습니다.") - .build(); - } - - if (prepayRequest.prepayAmount() > user.getPoint()) { - return Message.builder() - .message("보유하고 있는 금액이 선결제 하려는 금액보다 적습니다.") - .build(); - } - - user.usePoint(prepayRequest.prepayAmount()); - PointTransaction pointTransaction = PointTransaction - .builder() - .transactionType(TransactionType.PREPAY) - .transactionedPoint(prepayRequest.prepayAmount()) - .user(user) - .store(store) - .build(); - - pointTransactionRepository.save(pointTransaction); - - StoreTeam buildedStoreTeam = StoreTeam - .builder() - .team(team) - .store(store) - .point(prepayRequest.prepayAmount()) - .personalAllocatedPoint(prepayRequest.personalAllocatedAmount()) - .remainPoint(prepayRequest.prepayAmount()) - .build(); - - Optional storeAndTeam = storeTeamRepository.findByStoreAndTeam(store, team); - - if (storeAndTeam.isEmpty()) { - storeAndTeam = Optional.of(storeTeamRepository.save(buildedStoreTeam)); - } - - StoreTeam storeTeam = storeAndTeam.get(); - storeTeam.recharge(prepayRequest.prepayAmount()); - ->>>>>>> Stashed changes return Message.builder() .message("매장 선결제가 완료되었습니다.") .build(); @@ -152,12 +105,6 @@ public PrepaymentInfoResponse getPrepayInfo(String userId, Long storeId, Long te User user = userRepository.findByProviderId(userId) .orElseThrow(() -> new DefaultNullPointerException(ErrorCode.INVALID_AUTHENTICATION)); -<<<<<<< Updated upstream -======= - Team team = teamRepository.findById(teamId) - .orElseThrow(() -> new IllegalArgumentException("유효하지 않은 팀 id 입니다.")); - ->>>>>>> Stashed changes StoreTeam storeTeam = storeTeamRepository.findByStoreIdAndTeamId(storeId, teamId) .orElse(null); From ebc65650e9e48c6d4dde78576a9b70e148752c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9E=AC=ED=98=81?= Date: Thu, 28 Nov 2024 14:56:32 +0900 Subject: [PATCH 2/3] fix: conflict (#180) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 장바구니 추가 기능 구현 * feat: 장바구니 조회 기능 구현 * feat: 상품 주문과 식권 사용 기능 구현 * style: 포인트트랜잭션 레포지토리명 변경 * deploy: 재배포 * deploy: 재배포2 * deploy: 로그인 로직 수정에 따른 재배포 * deploy: 로그인 로직 수정에 따른 재배포2 * feat: 식권 사용 기능 구현 * feat: yml 수정 사항 반영 * feat: 식권 사용 로직 수정 * feat: 주문 로직 수정 완료 * fix: 장바구니에 아무것도 없을 때 주문 시 active 되는 현상 수정 * feat: 주문 완료 시 리턴 값 수정 * feat: 내 그룹 조회 기능 구현 * feat: 기본 프로필 이미지 url 추가 * feat: 그룹 멤버 전체 조회 기능 구현 * feat: 1인당 사용 가능 금액 설정 컬럼 추가 * feat: 내 지갑 조회 기능 구현 * feat: 선결제 기능 구현 * feat: 유저 홈 화면 조회 기능 구현 * feat: 그룹 상세 조회 기능 구현 * feat: 가게 상세 조회 쿼리 수정 * deploy: 변경사항 반영을 위한 커밋 * deploy: 수정 사항 반영 재배포 * deploy: rds 교체로 인한 재배포 * deploy: rds 교체로 인한 재배포2 * feat: 홈 화면 소속팀 조회 쿼리 제대로 안되던 현상 해결, 대표이미지 반환 추가 * feat: 그룹 상세 조회 응답 컬럼명 변경 * feat: memberLimit 컬럼 삭제 * feat: 선결제 시 기존 결제 내역과 멱등성 문제 해결 * fix: 팀 상세 조회 시 이미지 쿼리가 의미 없이 join 되던 쿼리 수정 * feat: 가게 검색 기능 대폭 수정 * feat: 프론트 요구사 반영 * feat: searchcondition 삭제 * feat: 팀타입 desription 리턴 하도록 수정 * feat: 카테고리별 팀 조회 시 팀 생성일 컬럼 추가 * feat: 매장찾기_상세 페이지 조회 기능 구현 * feat: 비밀 코드 조회 기능 엔드 포인트 수정 * fix: conflict fix * hotfix: 서버 복구 * hotfix: 서버 복구2 * feat: Barobill api 연동 * fix: 홈 화면에 같은 데이터가 중복되는 현상 수정 * infra: ElastiCache 연결을 위한 docker-compose 설정 * infra: cicd script 수정 * infra: cicd script ec2 주소 설정 * infra: cicd script 수정2 * infra: cicd script 수정3 * infra: cicd script 수정4 * infra: cicd script 수정5 * infra: cicd script 수정6 * infra: cicd script 수정7 * infra: cicd script 수정7 * infra: cicd script 수정8 * infra: cicd script 수정9 * infra: cicd script 수정10 * infra: cicd script 수정11 * infra: cicd script 수정12 * infra: cicd script 수정13 * infra: cicd script 수정14 * infra: cicd script 수정15 * infra: cicd script 수정16 * infra: cicd script 수정17 * infra: cicd script 수정18 * infra: cicd script 수정19 * infra: cicd script 수정20 * infra: cicd script 수정21 * infra: cicd script 수정22 * fix: 보유금액이 선결제 금액보다 작을 경우 상태값 변경(200->400) * feat: 홈화면 가게 별 선결제 디데이 추가, 쿼리문 조정 * feat: 주문하기 로직 정상화 * feat: 장바구니에 다른 가게 물건이 있는지 검증 구현 * feat: 장바구니 비우기 기능 구현 * deploy: cd retry * feat: 매장 상세 페이지 조회 메뉴 정렬 조건 추가 --- .../java/com/jangburich/domain/store/service/PrepayService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/jangburich/domain/store/service/PrepayService.java b/src/main/java/com/jangburich/domain/store/service/PrepayService.java index 6b29e67..5b4fc8f 100644 --- a/src/main/java/com/jangburich/domain/store/service/PrepayService.java +++ b/src/main/java/com/jangburich/domain/store/service/PrepayService.java @@ -121,4 +121,4 @@ public PrepaymentInfoResponse getPrepayInfo(String userId, Long storeId, Long te prepaymentInfoResponse.setWallet(user.getPoint()); return prepaymentInfoResponse; } -} +} \ No newline at end of file From fdf76a7ed98d4118fce81fd349523d8af5a1e9fd Mon Sep 17 00:00:00 2001 From: HyunWoo9930 Date: Thu, 28 Nov 2024 15:52:24 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix=20:=20team=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/team/application/TeamService.java | 22 ++-- .../jangburich/domain/team/domain/Team.java | 87 ++++++++------- .../TeamQueryDslRepositoryImpl.java | 100 ++++++++++-------- .../domain/repository/TeamRepository.java | 5 +- .../team/dto/request/RegisterTeamRequest.java | 1 - .../dto/response/TeamSecretCodeResponse.java | 14 +++ .../team/presentation/TeamController.java | 4 +- 7 files changed, 137 insertions(+), 96 deletions(-) create mode 100644 src/main/java/com/jangburich/domain/team/dto/response/TeamSecretCodeResponse.java diff --git a/src/main/java/com/jangburich/domain/team/application/TeamService.java b/src/main/java/com/jangburich/domain/team/application/TeamService.java index c9df54c..8a97d2c 100644 --- a/src/main/java/com/jangburich/domain/team/application/TeamService.java +++ b/src/main/java/com/jangburich/domain/team/application/TeamService.java @@ -3,6 +3,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Optional; +import java.util.UUID; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -19,6 +20,7 @@ import com.jangburich.domain.team.dto.response.MyTeamResponse; import com.jangburich.domain.team.dto.response.TeamCodeResponse; import com.jangburich.domain.team.dto.response.TeamMemberResponse; +import com.jangburich.domain.team.dto.response.TeamSecretCodeResponse; import com.jangburich.domain.user.domain.User; import com.jangburich.domain.user.repository.UserRepository; import com.jangburich.global.payload.Message; @@ -38,7 +40,7 @@ public class TeamService { private final UserTeamRepository userTeamRepository; @Transactional - public Message registerTeam(String userId, RegisterTeamRequest registerTeamRequest) { + public TeamSecretCodeResponse registerTeam(String userId, RegisterTeamRequest registerTeamRequest) { User user = userRepository.findByProviderId(userId) .orElseThrow(() -> new NullPointerException()); @@ -47,19 +49,19 @@ public Message registerTeam(String userId, RegisterTeamRequest registerTeamReque .description(registerTeamRequest.description()) .teamLeader(new TeamLeader(user.getUserId(), registerTeamRequest.teamLeaderAccountNumber(), registerTeamRequest.bankName())) - .secretCode(registerTeamRequest.secretCode()) .point(ZERO) .teamType(TeamType.valueOf(registerTeamRequest.teamType())) .build(); - teamRepository.save(team); + Team saved = teamRepository.save(team); UserTeam userTeam = UserTeam.of(user, team); userTeamRepository.save(userTeam); - return Message.builder() - .message("팀 생성이 완료되었습니다.") - .build(); + TeamSecretCodeResponse teamSecretCodeResponse = new TeamSecretCodeResponse(); + teamSecretCodeResponse.setUuid(saved.getSecretCode()); + + return teamSecretCodeResponse; } @Transactional @@ -134,15 +136,13 @@ public MyTeamDetailsResponse getTeamDetailsById(String userId, Long teamId) { if (!team.getTeamLeader().getUser_id().equals(user.getUserId())) { // 일반 구성원 - MyTeamDetailsResponse myTeamDetailsAsMember = teamRepository.findMyTeamDetailsAsMember(user.getUserId(), + return teamRepository.findMyTeamDetailsAsMember(user.getUserId(), teamId); - return myTeamDetailsAsMember; } // 팀 리더일 때 - MyTeamDetailsResponse myTeamDetailsAsLeader = teamRepository.findMyTeamDetailsAsLeader(user.getUserId(), - teamId); - return myTeamDetailsAsLeader; + return teamRepository.findMyTeamDetailsAsLeader(user.getUserId(), + teamId); } public List getTeamMembers(String userId, Long teamId) { diff --git a/src/main/java/com/jangburich/domain/team/domain/Team.java b/src/main/java/com/jangburich/domain/team/domain/Team.java index 79ef3ca..bd79f51 100644 --- a/src/main/java/com/jangburich/domain/team/domain/Team.java +++ b/src/main/java/com/jangburich/domain/team/domain/Team.java @@ -1,16 +1,18 @@ package com.jangburich.domain.team.domain; -import jakarta.persistence.Embedded; -import jakarta.persistence.EnumType; -import jakarta.persistence.Enumerated; +import java.util.UUID; import com.jangburich.domain.common.BaseEntity; import jakarta.persistence.Column; +import jakarta.persistence.Embedded; import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; +import jakarta.persistence.PrePersist; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; @@ -21,33 +23,33 @@ @NoArgsConstructor(access = AccessLevel.PROTECTED) public class Team extends BaseEntity { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "id", updatable = false) - private Long id; + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "id", updatable = false) + private Long id; - @Column(name = "name") - private String name; + @Column(name = "name") + private String name; - @Column(name = "description") - private String description; + @Column(name = "description") + private String description; - @Column(name = "secret_code") - private String secretCode; + @Column(name = "secret_code", updatable = false, unique = true) + private String secretCode; - @Embedded - private TeamLeader teamLeader; + @Embedded + private TeamLeader teamLeader; - @Column(name = "point") - private Integer point; + @Column(name = "point") + private Integer point; - @Enumerated(EnumType.STRING) - @Column(name = "team_type") - private TeamType teamType; + @Enumerated(EnumType.STRING) + @Column(name = "team_type") + private TeamType teamType; - public void updatePoint(Integer point) { - this.point += point; - } + public void updatePoint(Integer point) { + this.point += point; + } public void validateJoinCode(String joinCode) { if (!this.secretCode.equals(joinCode)) { @@ -55,21 +57,26 @@ public void validateJoinCode(String joinCode) { } } - - @Builder - public Team(String name, String description, String secretCode, TeamLeader teamLeader, Integer point, - TeamType teamType) { - this.name = name; - this.description = description; - this.secretCode = secretCode; - this.teamLeader = teamLeader; - this.point = point; - this.teamType = teamType; - } - - public void validateIsTeamLeader(Long userId, Long userId1) { - if (!userId.equals(userId1)) { - throw new IllegalArgumentException("팀의 리더가 아닌 사람은 선결제를 할 수 없습니다."); - } - } + @PrePersist + private void generateSecretCode() { + if (this.secretCode == null) { + this.secretCode = UUID.randomUUID().toString().replace("-", "").substring(0, 8); + } + } + + @Builder + public Team(String name, String description, TeamLeader teamLeader, Integer point, + TeamType teamType) { + this.name = name; + this.description = description; + this.teamLeader = teamLeader; + this.point = point; + this.teamType = teamType; + } + + public void validateIsTeamLeader(Long userId, Long userId1) { + if (!userId.equals(userId1)) { + throw new IllegalArgumentException("팀의 리더가 아닌 사람은 선결제를 할 수 없습니다."); + } + } } diff --git a/src/main/java/com/jangburich/domain/team/domain/repository/TeamQueryDslRepositoryImpl.java b/src/main/java/com/jangburich/domain/team/domain/repository/TeamQueryDslRepositoryImpl.java index 9cbfcdd..d45b2dd 100644 --- a/src/main/java/com/jangburich/domain/team/domain/repository/TeamQueryDslRepositoryImpl.java +++ b/src/main/java/com/jangburich/domain/team/domain/repository/TeamQueryDslRepositoryImpl.java @@ -77,27 +77,35 @@ public MyTeamDetailsResponse findMyTeamDetailsAsMember(Long userId, Long teamId) .fetch(); return queryFactory - .selectDistinct(new QMyTeamDetailsResponse( - storeTeam.team.id, - storeTeam.team.name, - storeTeam.team.description, - Expressions.constant(-1), - storeTeam.remainPoint, - storeTeam.personalAllocatedPoint, - pointTransaction.transactionedPoint.sum(), - Expressions.constant(prepayedStores), - Expressions.constant(images), - Expressions.constant(images.size()), - Expressions.constant(todayPayments), - Expressions.constant(todayPayments.size()) - )) - .from(storeTeam) - .leftJoin(team).on(storeTeam.team.id.eq(teamId)) - .leftJoin(userTeam).on(userTeam.team.id.eq(storeTeam.team.id)) - .leftJoin(pointTransaction).on(pointTransaction.transactionType.eq(TransactionType.FOOD_PURCHASE), - pointTransaction.user.userId.eq(userId)) - .where(storeTeam.team.id.eq(teamId)) - .fetchOne(); + .selectDistinct(new QMyTeamDetailsResponse( + storeTeam.team.id, + storeTeam.team.name, + storeTeam.team.description, + Expressions.constant(-1), + storeTeam.remainPoint, + storeTeam.personalAllocatedPoint, + pointTransaction.transactionedPoint.sum(), + Expressions.constant(prepayedStores), + Expressions.constant(images), + Expressions.constant(images.size()), + Expressions.constant(todayPayments), + Expressions.constant(todayPayments.size()) + )) + .from(storeTeam) + .leftJoin(team).on(storeTeam.team.id.eq(teamId)) + .leftJoin(userTeam).on(userTeam.team.id.eq(storeTeam.team.id)) + .leftJoin(pointTransaction).on(pointTransaction.transactionType.eq(TransactionType.FOOD_PURCHASE), + pointTransaction.user.userId.eq(userId)) + .where(storeTeam.team.id.eq(teamId)) + .groupBy( + storeTeam.team.id, + storeTeam.team.name, + storeTeam.team.description, + storeTeam.remainPoint, + storeTeam.personalAllocatedPoint + ) + .fetchOne(); + } @Override @@ -139,26 +147,34 @@ public MyTeamDetailsResponse findMyTeamDetailsAsLeader(Long userId, Long teamId) return queryFactory - .selectDistinct(new QMyTeamDetailsResponse( - storeTeam.team.id, - storeTeam.team.name, - storeTeam.team.description, - storeTeam.point, - storeTeam.remainPoint, - Expressions.constant(-1), - pointTransaction.transactionedPoint.sum(), - Expressions.constant(prepayedStores), - Expressions.constant(images), - Expressions.constant(images.size()), - Expressions.constant(todayPayments), - Expressions.constant(todayPayments.size()) - )) - .from(storeTeam) - .leftJoin(team).on(storeTeam.team.id.eq(teamId)) - .leftJoin(userTeam).on(userTeam.team.id.eq(storeTeam.team.id)) - .leftJoin(pointTransaction).on(pointTransaction.transactionType.eq(TransactionType.FOOD_PURCHASE), - pointTransaction.user.userId.eq(userId)) - .where(storeTeam.team.id.eq(teamId)) - .fetchOne(); + .selectDistinct(new QMyTeamDetailsResponse( + storeTeam.team.id, + storeTeam.team.name, + storeTeam.team.description, + storeTeam.point, + storeTeam.remainPoint, + Expressions.constant(-1), + pointTransaction.transactionedPoint.sum(), + Expressions.constant(prepayedStores), + Expressions.constant(images), + Expressions.constant(images.size()), + Expressions.constant(todayPayments), + Expressions.constant(todayPayments.size()) + )) + .from(storeTeam) + .leftJoin(team).on(storeTeam.team.id.eq(teamId)) + .leftJoin(userTeam).on(userTeam.team.id.eq(storeTeam.team.id)) + .leftJoin(pointTransaction).on(pointTransaction.transactionType.eq(TransactionType.FOOD_PURCHASE), + pointTransaction.user.userId.eq(userId)) + .where(storeTeam.team.id.eq(teamId)) + .groupBy( + storeTeam.team.id, + storeTeam.team.name, + storeTeam.team.description, + storeTeam.point, + storeTeam.remainPoint + ) + .fetchOne(); + } } diff --git a/src/main/java/com/jangburich/domain/team/domain/repository/TeamRepository.java b/src/main/java/com/jangburich/domain/team/domain/repository/TeamRepository.java index ecfcb55..ce11e4d 100644 --- a/src/main/java/com/jangburich/domain/team/domain/repository/TeamRepository.java +++ b/src/main/java/com/jangburich/domain/team/domain/repository/TeamRepository.java @@ -5,12 +5,15 @@ import com.jangburich.domain.user.domain.User; import java.util.List; import java.util.Optional; +import java.util.UUID; + import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; public interface TeamRepository extends JpaRepository, TeamQueryDslRepository { - Optional findBySecretCode(String joinCode); + Optional findBySecretCode(String secretCode); + @Query("SELECT t FROM Team t JOIN UserTeam ut ON ut.team = t WHERE ut.user = :user AND t.status = :status") Optional> findAllByUserAndStatus(@Param("user") User user, @Param("status") Status status); diff --git a/src/main/java/com/jangburich/domain/team/dto/request/RegisterTeamRequest.java b/src/main/java/com/jangburich/domain/team/dto/request/RegisterTeamRequest.java index a0f9eda..e034616 100644 --- a/src/main/java/com/jangburich/domain/team/dto/request/RegisterTeamRequest.java +++ b/src/main/java/com/jangburich/domain/team/dto/request/RegisterTeamRequest.java @@ -4,7 +4,6 @@ public record RegisterTeamRequest( String teamType, String teamName, String description, - String secretCode, String teamLeaderAccountNumber, String bankName, int memberLimit diff --git a/src/main/java/com/jangburich/domain/team/dto/response/TeamSecretCodeResponse.java b/src/main/java/com/jangburich/domain/team/dto/response/TeamSecretCodeResponse.java new file mode 100644 index 0000000..c7b0e7e --- /dev/null +++ b/src/main/java/com/jangburich/domain/team/dto/response/TeamSecretCodeResponse.java @@ -0,0 +1,14 @@ +package com.jangburich.domain.team.dto.response; + +import java.util.UUID; + +import lombok.Getter; +import lombok.RequiredArgsConstructor; +import lombok.Setter; + +@Getter +@Setter +@RequiredArgsConstructor +public class TeamSecretCodeResponse { + private String uuid; +} diff --git a/src/main/java/com/jangburich/domain/team/presentation/TeamController.java b/src/main/java/com/jangburich/domain/team/presentation/TeamController.java index 794f7fa..c852d50 100644 --- a/src/main/java/com/jangburich/domain/team/presentation/TeamController.java +++ b/src/main/java/com/jangburich/domain/team/presentation/TeamController.java @@ -1,6 +1,7 @@ package com.jangburich.domain.team.presentation; import java.util.List; +import java.util.UUID; import org.springframework.security.core.Authentication; import org.springframework.web.bind.annotation.GetMapping; @@ -17,6 +18,7 @@ import com.jangburich.domain.team.dto.response.MyTeamResponse; import com.jangburich.domain.team.dto.response.TeamCodeResponse; import com.jangburich.domain.team.dto.response.TeamMemberResponse; +import com.jangburich.domain.team.dto.response.TeamSecretCodeResponse; import com.jangburich.global.payload.Message; import com.jangburich.global.payload.ResponseCustom; import com.jangburich.utils.parser.AuthenticationParser; @@ -35,7 +37,7 @@ public class TeamController { @Operation(summary = "팀 생성", description = "팀을 생성한다. 팀 리더는 생성자") @PostMapping - public ResponseCustom registerTeam( + public ResponseCustom registerTeam( Authentication authentication, @RequestBody RegisterTeamRequest registerTeamRequest ) {