-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: group response swagger 설명 추가 (#47) (KAN-102)
- Loading branch information
1 parent
2d328f8
commit 5794f46
Showing
10 changed files
with
31 additions
and
21 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
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
7 changes: 6 additions & 1 deletion
7
src/main/java/org/ioteatime/meonghanyangserver/group/dto/response/CreateGroupResponse.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,5 +1,10 @@ | ||
package org.ioteatime.meonghanyangserver.group.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.time.LocalDateTime; | ||
|
||
public record CreateGroupResponse(Long groupId, String groupName, LocalDateTime createdAt) {} | ||
@Schema(description = "그룹 생성 정보 응답") | ||
public record CreateGroupResponse( | ||
@NotNull Long groupId, @NotBlank String groupName, @NotNull LocalDateTime createdAt) {} |
10 changes: 7 additions & 3 deletions
10
src/main/java/org/ioteatime/meonghanyangserver/group/dto/response/GroupTotalResponse.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,12 +1,16 @@ | ||
package org.ioteatime.meonghanyangserver.group.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import org.ioteatime.meonghanyangserver.cctv.dto.response.CctvInfoResponse; | ||
|
||
@Schema(description = "그룹 통합 정보 응답") | ||
public record GroupTotalResponse( | ||
Long groupId, | ||
String groupName, | ||
LocalDateTime createdAt, | ||
@NotNull Long groupId, | ||
@NotBlank String groupName, | ||
@NotNull LocalDateTime createdAt, | ||
List<GroupUserInfoResponse> groupUser, | ||
List<CctvInfoResponse> cctv) {} |
7 changes: 6 additions & 1 deletion
7
src/main/java/org/ioteatime/meonghanyangserver/group/dto/response/GroupUserInfoResponse.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,3 +1,8 @@ | ||
package org.ioteatime.meonghanyangserver.group.dto.response; | ||
|
||
public record GroupUserInfoResponse(Long userId, String nickname) {} | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
@Schema(description = "그룹 유저 정보 응답") | ||
public record GroupUserInfoResponse(@NotNull Long userId, @NotBlank String nickname) {} |
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