Skip to content

Commit

Permalink
v2.3.2
Browse files Browse the repository at this point in the history
v2.3.2
  • Loading branch information
hoonyworld authored Dec 27, 2024
2 parents 7120e27 + d567a5a commit b8b48d9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
package org.sopt.makers.crew.main.entity.meeting.enums;

import java.util.Arrays;

import org.sopt.makers.crew.main.global.exception.BadRequestException;

public enum MeetingCategory {
STUDY("스터디"),
LECTURE("강연"),
LIGHTNING("번개"),
EVENT("행사"),
SEMINAR("세미나");
STUDY("스터디"),
LECTURE("강연"),
LIGHTNING("번쩍"),
EVENT("행사"),
SEMINAR("세미나");

private final String value;
private final String value;

MeetingCategory(String value) {
this.value = value;
}
MeetingCategory(String value) {
this.value = value;
}

public static MeetingCategory ofValue(String dbData) {
return Arrays.stream(MeetingCategory.values()).filter(v -> v.getValue().equals(dbData))
.findFirst().orElseThrow(() -> new BadRequestException(
String.format("MeetingCategory 클래스에 value = [%s] 값을 가진 enum 객체가 없습니다.", dbData)));
}
public static MeetingCategory ofValue(String dbData) {
return Arrays.stream(MeetingCategory.values()).filter(v -> v.getValue().equals(dbData))
.findFirst().orElseThrow(() -> new BadRequestException(
String.format("MeetingCategory 클래스에 value = [%s] 값을 가진 enum 객체가 없습니다.", dbData)));
}

public String getValue() {
return value;
}
public String getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ public enum UserPart {
GENERAL_AFFAIRS("총무"),
OPERATION_LEADER("운영 팀장"),
MEDIA_LEADER("미디어 팀장"),
MAKERS_LEADER("메이커스 팀장"),
// 메이커스 리드는 임시조치 입니다. 플그와의 싱크 맞춘 후에는 삭제 필요
MAKERS_LEADER_TEMP("메이커스 리드");
MAKERS_LEADER("메이커스 팀장");

private final String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private String[] getAuthWhitelist() {
"/auth/v2",
"/auth/v2/**",
actuatorEndPoint + "/health",
actuatorEndPoint + "/prometheus",
"/internal/**"
};
}
Expand Down

0 comments on commit b8b48d9

Please sign in to comment.