Skip to content

Commit

Permalink
�chore: 번개 -> 번쩍으로 변경 (#502)
Browse files Browse the repository at this point in the history
* chore(MeetingCategory): 번개 -> 번쩍으로 변경

* style(MeetingCategory): 코드 포맷터 적용

* chore: 메이커스 리드 삭제
  • Loading branch information
mikekks authored Dec 16, 2024
1 parent 773f35c commit efac19d
Show file tree
Hide file tree
Showing 2 changed files with 19 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

0 comments on commit efac19d

Please sign in to comment.