Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 태그 항목 수정 #92

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import com.wafflestudio.csereal.common.CserealException

enum class TagInNoticeEnum {
CLASS, SCHOLARSHIP, UNDERGRADUATE, GRADUATE, MINOR, REGISTRATIONS, ADMISSIONS, GRADUATIONS,
RECRUIT, STUDENT_EXCHANGE, EVENTS_PROGRAMS, FOREIGN;
RECRUIT, STUDENT_EXCHANGE, INNER_EVENTS_PROGRAMS, OUTER_EVENTS_PROGRAMS, FOREIGN;

companion object {
fun getTagEnum(t: String) : TagInNoticeEnum{
return when(t) {
fun getTagEnum(t: String): TagInNoticeEnum {
return when (t) {
"수업" -> CLASS
"장학" -> SCHOLARSHIP
"학사(학부)" -> UNDERGRADUATE
Expand All @@ -19,7 +19,8 @@ enum class TagInNoticeEnum {
"졸업" -> GRADUATIONS
"채용정보" -> RECRUIT
"교환학생/유학" -> STUDENT_EXCHANGE
"행사/프로그램" -> EVENTS_PROGRAMS
"내부행사/프로그램" -> INNER_EVENTS_PROGRAMS
"외부행사/프로그램" -> OUTER_EVENTS_PROGRAMS
"foreign" -> FOREIGN
else -> throw CserealException.Csereal404("태그를 찾을 수 없습니다")
}
Expand Down