-
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.
[BSVR-137] 복수 팀 등록 API를 단일 등록으로 수정 (#53)
* feat: 복수 팀 등록 API를 단일 등록으로 수정 * fix: 오타 수정 * feat: request body -> reqeust param form data로 변경 * test: 중복 팀 이름 확인 테스트 코드 수정
- Loading branch information
Showing
6 changed files
with
66 additions
and
55 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
27 changes: 0 additions & 27 deletions
27
.../src/main/java/org/depromeet/spot/application/team/dto/request/CreateBaseballTeamReq.java
This file was deleted.
Oops, something went wrong.
11 changes: 8 additions & 3 deletions
11
usecase/src/main/java/org/depromeet/spot/usecase/port/in/team/CreateBaseballTeamUsecase.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,10 +1,15 @@ | ||
package org.depromeet.spot.usecase.port.in.team; | ||
|
||
import java.util.List; | ||
import org.depromeet.spot.domain.common.RgbCode; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
import org.depromeet.spot.domain.team.BaseballTeam; | ||
import lombok.Builder; | ||
|
||
public interface CreateBaseballTeamUsecase { | ||
|
||
void saveAll(List<BaseballTeam> teams); | ||
void save(CreateBaseballTeamCommand command); | ||
|
||
@Builder | ||
record CreateBaseballTeamCommand( | ||
MultipartFile logo, String name, String alias, RgbCode rgbCode) {} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
usecase/src/test/java/org/depromeet/spot/usecase/service/fake/FakeImageUploadPort.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.depromeet.spot.usecase.service.fake; | ||
|
||
import org.depromeet.spot.domain.media.MediaProperty; | ||
import org.depromeet.spot.usecase.port.out.media.ImageUploadPort; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
public class FakeImageUploadPort implements ImageUploadPort { | ||
|
||
@Override | ||
public String upload(String target, MultipartFile file, MediaProperty property) { | ||
return target + property.name(); | ||
} | ||
} |
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