-
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
Feat/#49 api
- Loading branch information
Showing
14 changed files
with
205 additions
and
123 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
71 changes: 71 additions & 0 deletions
71
Server/src/main/java/JGS/CasperEvent/domain/event/dto/RequestDto/PostCasperBot.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,71 @@ | ||
package JGS.CasperEvent.domain.event.dto.RequestDto; | ||
|
||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public class PostCasperBot { | ||
|
||
@NotNull(message = "눈 모양 값은 필수 필드입니다.") | ||
@Min(value = 0, message = "눈 모양 값이 부적절합니다.") | ||
@Max(value = 7, message = "눈 모양 값이 부적절합니다.") | ||
private Integer eyeShape; | ||
|
||
@NotNull(message = "눈 위치 값은 필수 필드입니다.") | ||
@Min(value = 0, message = "눈 위치 값이 부적절합니다.") | ||
@Max(value = 2, message = "눈 위치 값이 부적절합니다.") | ||
private Integer eyePosition; | ||
|
||
@NotNull(message = "입 모양 값은 필수 필드입니다.") | ||
@Min(value = 0, message = "입 모양 값이 부적절합니다.") | ||
@Max(value = 4, message = "입 모양 값이 부적절합니다.") | ||
private Integer mouthShape; | ||
|
||
@NotNull(message = "색깔 값은 필수 필드입니다.") | ||
@Min(value = 0, message = "색깔 값이 부적절합니다.") | ||
@Max(value = 17, message = "색깔 값이 부적절합니다.") | ||
private Integer color; | ||
|
||
@NotNull(message = "스티커 값은 필수 필드입니다.") | ||
@Min(value = 0, message = "스티커 값이 부적절합니다.") | ||
@Max(value = 4, message = "스티커 값이 부적절합니다.") | ||
private Integer sticker; | ||
|
||
@NotNull(message = "이름은 필수 필드입니다. ") | ||
private String name; | ||
|
||
private String expectation; | ||
|
||
|
||
public Integer getEyeShape() { | ||
return eyeShape; | ||
} | ||
|
||
public Integer getEyePosition() { | ||
return eyePosition; | ||
} | ||
|
||
public Integer getMouthShape() { | ||
return mouthShape; | ||
} | ||
|
||
public Integer getColor() { | ||
return color; | ||
} | ||
|
||
public Integer getSticker() { | ||
return sticker; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getExpectation() { | ||
return expectation; | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
...erEvent/domain/event/repository/participantsRepository/LotteryParticipantsRepository.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,14 @@ | ||
package JGS.CasperEvent.domain.event.repository.participantsRepository; | ||
|
||
import JGS.CasperEvent.domain.event.entity.participants.LotteryParticipants; | ||
import JGS.CasperEvent.global.entity.BaseUser; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface LotteryParticipantsRepository extends JpaRepository<LotteryParticipants, String> { | ||
Optional<LotteryParticipants> findByBaseUser(BaseUser baseUser); | ||
} | ||
|
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
11 changes: 0 additions & 11 deletions
11
Server/src/main/java/JGS/CasperEvent/global/auth/AdminCheck.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.