diff --git a/src/main/java/com/softeer/backend/bo_domain/admin/dto/FcfsSettingTestRequestDto.java b/src/main/java/com/softeer/backend/bo_domain/admin/dto/FcfsSettingTestRequestDto.java index 98cf4314..a02cdce2 100644 --- a/src/main/java/com/softeer/backend/bo_domain/admin/dto/FcfsSettingTestRequestDto.java +++ b/src/main/java/com/softeer/backend/bo_domain/admin/dto/FcfsSettingTestRequestDto.java @@ -12,7 +12,7 @@ public class FcfsSettingTestRequestDto { private int round; - + @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss") private LocalDateTime startTime; @@ -20,4 +20,6 @@ public class FcfsSettingTestRequestDto { private LocalDateTime endTime; private int winnerNum; + + private boolean isFcfsClosed; } diff --git a/src/main/java/com/softeer/backend/fo_domain/fcfs/service/FcfsSettingManager.java b/src/main/java/com/softeer/backend/fo_domain/fcfs/service/FcfsSettingManager.java index dd2b96ef..47258337 100644 --- a/src/main/java/com/softeer/backend/fo_domain/fcfs/service/FcfsSettingManager.java +++ b/src/main/java/com/softeer/backend/fo_domain/fcfs/service/FcfsSettingManager.java @@ -197,6 +197,8 @@ public void setFcfsSettingByAdmin(FcfsSettingTestRequestDto fcfsSettingTestReque .build(); fcfsSettingList.set(fcfsSettingTestRequestDto.getRound()-1, fcfsSettingDto); + + isFcfsClosed = fcfsSettingTestRequestDto.isFcfsClosed(); } } diff --git a/src/main/java/com/softeer/backend/global/common/constant/RedisKeyPrefix.java b/src/main/java/com/softeer/backend/global/common/constant/RedisKeyPrefix.java index d230e72b..1fd003f6 100644 --- a/src/main/java/com/softeer/backend/global/common/constant/RedisKeyPrefix.java +++ b/src/main/java/com/softeer/backend/global/common/constant/RedisKeyPrefix.java @@ -11,7 +11,7 @@ public enum RedisKeyPrefix { FCFS_USERID_PREFIX("FCFS_WINNER_"), FCFS_CODE_PREFIX("FCFS_CODE_"), FCFS_CODE_USERID_PREFIX("FCFS_CODE_USERID_"), - FCFS_PARTICIPANT_COUNT_PREFIX("FCFS_PARTICIPANT_COUNT"), + FCFS_PARTICIPANT_COUNT_PREFIX("FCFS_PARTICIPANT_COUNT_"), // 추첨 DRAW_WINNER_LIST_PREFIX("DRAW_WINNER_LIST_"), diff --git a/src/main/java/com/softeer/backend/global/filter/JwtAuthorizationFilter.java b/src/main/java/com/softeer/backend/global/filter/JwtAuthorizationFilter.java index 411e564c..c9e863c0 100644 --- a/src/main/java/com/softeer/backend/global/filter/JwtAuthorizationFilter.java +++ b/src/main/java/com/softeer/backend/global/filter/JwtAuthorizationFilter.java @@ -25,7 +25,8 @@ public class JwtAuthorizationFilter extends OncePerRequestFilter { // 인가검사를 하지 않는 url 설정 private final String[] whiteListUrls = { - "/admin/login", "/admin/signup" + "/admin/login", "/admin/signup", + "/admin/fcfs/test", "/admin/draw/test" }; @Override