-
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.
Merge pull request #108 from TeamPINGLE/feat/107
[feat] 단체 생성 flow
- Loading branch information
Showing
8 changed files
with
103 additions
and
0 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
16 changes: 16 additions & 0 deletions
16
src/main/java/org/pingle/pingleserver/dto/reponse/TeamCreationResponse.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,16 @@ | ||
package org.pingle.pingleserver.dto.reponse; | ||
|
||
import org.pingle.pingleserver.domain.Team; | ||
import org.pingle.pingleserver.domain.enums.TKeyword; | ||
|
||
public record TeamCreationResponse ( | ||
Long id, | ||
String name, | ||
String email, | ||
String code, | ||
TKeyword keyword | ||
) { | ||
public static TeamCreationResponse of(Team team) { | ||
return new TeamCreationResponse(team.getId(), team.getName(), team.getEmail(), team.getCode(), team.getKeyword()); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/org/pingle/pingleserver/dto/reponse/TeamNameDuplicatedResponse.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,4 @@ | ||
package org.pingle.pingleserver.dto.reponse; | ||
|
||
public record TeamNameDuplicatedResponse (boolean result){ | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/org/pingle/pingleserver/dto/request/TeamCreationRequest.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,10 @@ | ||
package org.pingle.pingleserver.dto.request; | ||
|
||
import org.pingle.pingleserver.domain.enums.TKeyword; | ||
|
||
public record TeamCreationRequest ( | ||
String name, | ||
String email, | ||
TKeyword keyword | ||
) { | ||
} |
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