-
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.
Browse files
Browse the repository at this point in the history
…swagger docs/#191-RequestDto-swagger
- Loading branch information
Showing
5 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
Server/src/main/java/JGS/CasperEvent/domain/event/dto/RequestDto/AdminRequestDto.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,17 +1,21 @@ | ||
package JGS.CasperEvent.domain.event.dto.RequestDto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.*; | ||
|
||
@Getter | ||
@Builder | ||
@EqualsAndHashCode | ||
@Schema(description = "관리자 계정 생성 요청을 위한 데이터입니다.") | ||
public class AdminRequestDto { | ||
|
||
@NotNull | ||
@Schema(description = "관리자 아이디", example = "adminId", required = true) | ||
private String adminId; | ||
|
||
@NotNull | ||
@Schema(description = "관리자 인증을 위한 비밀번호", example = "password", required = true) | ||
private String password; | ||
|
||
} |
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
24 changes: 24 additions & 0 deletions
24
...a/JGS/CasperEvent/domain/event/dto/RequestDto/rushEventDto/RushEventOptionRequestDto.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,19 +1,43 @@ | ||
package JGS.CasperEvent.domain.event.dto.RequestDto.rushEventDto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import JGS.CasperEvent.global.enums.Position; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
@ToString | ||
@Getter | ||
@Builder | ||
@Schema(description = "선착순 이벤트 선택지를 생성하기 위한 요청 데이터입니다.") | ||
public class RushEventOptionRequestDto { | ||
|
||
@Schema(description = "선착순 이벤트 선택지 ID", example = "1") | ||
@NotNull(message = "선착순 이벤트 선택지 ID는 필수 값입니다.") | ||
private Long rushOptionId; | ||
|
||
@Schema(description = "선택지의 위치", example = "LEFT", implementation = Position.class) | ||
@NotNull(message = "선택지의 위치는 필수 값입니다.") | ||
private Position position; | ||
|
||
@Schema(description = "선택지 메인 텍스트", example = "첫 차는 저렴해야 한다") | ||
@NotNull(message = "선택지 메인 텍스트는 필수 값입니다.") | ||
private String mainText; | ||
|
||
@Schema(description = "선택지 서브 텍스트", example = "가성비 좋게 저렴한 차로 시작해서 차근히 업그레이드하고 싶어") | ||
@NotNull(message = "선택지 서브 텍스트는 필수 값입니다.") | ||
private String subText; | ||
|
||
@Schema(description = "선택지 결과 메인 텍스트", example = "가성비 좋은 도심형 전기차") | ||
@NotNull(message = "선택지 결과 메인 텍스트는 필수 값입니다.") | ||
private String resultMainText; | ||
|
||
@Schema(description = "선택지 결과 서브 텍스트", example = "캐스퍼 일렉트릭은 전기차 평균보다 30% 저렴해요 첫 차로 캐스퍼 일렉트릭 어떤가요?") | ||
@NotNull(message = "선택지 결과 서브 텍스트는 필수 값입니다.") | ||
private String resultSubText; | ||
|
||
@Schema(description = "선택지 이미지 URL", example = "https://example.com/image.png") | ||
@NotNull(message = "선택지 이미지 URL은 필수 값입니다.") | ||
private String imageUrl; | ||
} |
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