Skip to content

Commit c0ff914

Browse files
[EA3-78] feat : 스터디 게시판 카테고리 생성
1 parent 4a0f70a commit c0ff914

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package grep.neogul_coder.domain.studypost;
2+
3+
import com.fasterxml.jackson.annotation.JsonValue;
4+
import io.swagger.v3.oas.annotations.media.Schema;
5+
6+
@Schema(description = "카테고리: NOTICE(공지), FREE(자유)")
7+
public enum Category {
8+
NOTICE("공지"),
9+
FREE("자유");
10+
11+
private final String korean;
12+
13+
Category(String korean) { this.korean = korean; }
14+
15+
@JsonValue
16+
public String toJson() {
17+
return korean;
18+
}
19+
}

0 commit comments

Comments
 (0)