-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ♻️ refactor: 개별 전술 조회 주석처리 (#157) * ♻️ refactor: 내팀 목록 조회, 개별 팀 정보 조회 시 response로 전술 가져오게 (#157) * ♻️ refactor: 프로필 생성 시 프로필 유무 부터 확인 (#157) * ♻️ refactor: 팀 생성 시 팀이름이랑 적용전술 받아서 매핑 (#157) * ♻️ refactor: 팀 생성 시 팀이름이랑 적용전술 받아서 매핑 (#157) * ♻️ refactor: 전술 변경 시 팀 멤버 포지션 할당 초기화 (#157) * ♻️ refactor: 전술 변경 시 팀 멤버 포지션 할당 초기화 (#157)
- Loading branch information
Showing
8 changed files
with
94 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
src/main/java/com/capstone/BnagFer/domain/myteam/dto/request/CUTeamRequestDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
package com.capstone.BnagFer.domain.myteam.dto.request; | ||
import com.capstone.BnagFer.domain.myteam.entity.Team; | ||
import com.capstone.BnagFer.domain.tactic.entity.Tactic; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record CUTeamRequestDto ( | ||
@NotBlank(message = "팀 이름 입력은 필수입니다.") | ||
@Schema(description = "teamName", example = "맨체스터 유나이티드") | ||
String teamName | ||
String teamName, | ||
@NotNull(message = "전술 ID 입력은 필수입니다.") | ||
Long tacticId | ||
) { | ||
public Team toEntity() { | ||
public Team toEntity(Tactic tactic) { | ||
return Team.builder() | ||
.teamName(teamName) | ||
.tactic(tactic) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters