Skip to content

Commit

Permalink
Merge pull request #287 from wafflestudio/develop
Browse files Browse the repository at this point in the history
- Refactor: 공지 태그 FOREIGN -> INTERNATIONAL (Refactor: 공지 태그 FOREIGN -> INTERNATIONAL #286)
  • Loading branch information
huGgW authored Jun 8, 2024
2 parents 0f38e89 + 5c0454e commit 64d40da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class NoticeController(
fun searchNotice(
@RequestParam(required = false) tag: List<String>?,
@RequestParam(required = false) keyword: String?,
@RequestParam(required = false) pageNum: Int?,
@RequestParam(required = false, defaultValue = "20") pageSize: Int,
@RequestParam(required = false) @Positive pageNum: Int?,
@RequestParam(required = false, defaultValue = "20") @Positive pageSize: Int,
@RequestParam(required = false, defaultValue = "DATE") sortBy: String,
authentication: Authentication?
): ResponseEntity<NoticeSearchResponse> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ enum class TagInNoticeEnum(val krName: String) {
CLASS("수업"), SCHOLARSHIP("장학"), UNDERGRADUATE("학사(학부)"), GRADUATE("학사(대학원)"),
MINOR("다전공/전과"), REGISTRATIONS("등록/복학/휴학/재입학"), ADMISSIONS("입학"), GRADUATIONS("졸업"),
RECRUIT("채용정보"), STUDENT_EXCHANGE("교환학생/유학"), INNER_EVENTS_PROGRAMS("내부행사/프로그램"),
OUTER_EVENTS_PROGRAMS("외부행사/프로그램"), FOREIGN("foreign");
OUTER_EVENTS_PROGRAMS("외부행사/프로그램"), INTERNATIONAL("international");

companion object {
private val lookupMap: Map<String, TagInNoticeEnum> = values().associateBy(TagInNoticeEnum::krName)
private val lookupMap: Map<String, TagInNoticeEnum> = entries.associateBy(TagInNoticeEnum::krName)

fun getTagEnum(t: String): TagInNoticeEnum {
return lookupMap[t] ?: throw CserealException.Csereal404("태그를 찾을 수 없습니다: $t")
Expand Down

0 comments on commit 64d40da

Please sign in to comment.