From 36c3a02c1fa1245b7b6fb60c3e05d34c77f10c0a Mon Sep 17 00:00:00 2001 From: wken5577 Date: Thu, 29 Feb 2024 11:40:08 +0900 Subject: [PATCH] [FEAT] #657 CheckList, ResultMessage --- .../gg/data/recruit/manage/ResultMessage.java | 32 +++++++++++++++++++ .../data/recruit/manage/type/MessageType.java | 14 ++++++++ .../data/recruit/recruitment/CheckList.java | 30 +++++++++++++++++ .../gg/data/recruit/recruitment/Question.java | 1 + 4 files changed, 77 insertions(+) create mode 100644 gg-data/src/main/java/gg/data/recruit/manage/ResultMessage.java create mode 100644 gg-data/src/main/java/gg/data/recruit/manage/type/MessageType.java create mode 100644 gg-data/src/main/java/gg/data/recruit/recruitment/CheckList.java diff --git a/gg-data/src/main/java/gg/data/recruit/manage/ResultMessage.java b/gg-data/src/main/java/gg/data/recruit/manage/ResultMessage.java new file mode 100644 index 000000000..23387f75e --- /dev/null +++ b/gg-data/src/main/java/gg/data/recruit/manage/ResultMessage.java @@ -0,0 +1,32 @@ +package gg.data.recruit.manage; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.EnumType; +import javax.persistence.Enumerated; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; + +import gg.data.BaseTimeEntity; +import gg.data.recruit.manage.type.MessageType; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; + +@Entity +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class ResultMessage extends BaseTimeEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(length = 100) + private String content; + + @Column(length = 15) + @Enumerated(EnumType.STRING) + private MessageType messageType; + + private Boolean isUse; +} diff --git a/gg-data/src/main/java/gg/data/recruit/manage/type/MessageType.java b/gg-data/src/main/java/gg/data/recruit/manage/type/MessageType.java new file mode 100644 index 000000000..1dc1e1977 --- /dev/null +++ b/gg-data/src/main/java/gg/data/recruit/manage/type/MessageType.java @@ -0,0 +1,14 @@ +package gg.data.recruit.manage.type; + +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor +public enum MessageType { + + INTERVIEW("interview", "면접 안내"), + PASS("pass", "합격 안내"), + FAIL("fail", "불합격 안내"); + + private final String messageType; + private final String desc; +} diff --git a/gg-data/src/main/java/gg/data/recruit/recruitment/CheckList.java b/gg-data/src/main/java/gg/data/recruit/recruitment/CheckList.java new file mode 100644 index 000000000..23abb7cac --- /dev/null +++ b/gg-data/src/main/java/gg/data/recruit/recruitment/CheckList.java @@ -0,0 +1,30 @@ +package gg.data.recruit.recruitment; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.FetchType; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; + +import gg.data.BaseTimeEntity; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; + +@Entity +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class CheckList extends BaseTimeEntity { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "question_id") + private Question questionId; + + @Column(length = 100) + private String content; +} diff --git a/gg-data/src/main/java/gg/data/recruit/recruitment/Question.java b/gg-data/src/main/java/gg/data/recruit/recruitment/Question.java index 931618cb1..e7b4698d1 100644 --- a/gg-data/src/main/java/gg/data/recruit/recruitment/Question.java +++ b/gg-data/src/main/java/gg/data/recruit/recruitment/Question.java @@ -28,6 +28,7 @@ public class Question extends BaseTimeEntity { private Recruitments recruitId; @Enumerated(EnumType.STRING) + @Column(length = 20) private InputType inputType; @Column(length = 300)