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

prod #287

Merged
merged 1 commit into from
Jun 8, 2024
Merged

prod #287

Show file tree
Hide file tree
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 @@ -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
Loading