Skip to content

Commit

Permalink
[FEAT] #657 CheckList, ResultMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
wken5577 committed Feb 29, 2024
1 parent d8171b0 commit 36c3a02
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
32 changes: 32 additions & 0 deletions gg-data/src/main/java/gg/data/recruit/manage/ResultMessage.java
Original file line number Diff line number Diff line change
@@ -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;
}
14 changes: 14 additions & 0 deletions gg-data/src/main/java/gg/data/recruit/manage/type/MessageType.java
Original file line number Diff line number Diff line change
@@ -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;
}
30 changes: 30 additions & 0 deletions gg-data/src/main/java/gg/data/recruit/recruitment/CheckList.java
Original file line number Diff line number Diff line change
@@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class Question extends BaseTimeEntity {
private Recruitments recruitId;

@Enumerated(EnumType.STRING)
@Column(length = 20)
private InputType inputType;

@Column(length = 300)
Expand Down

0 comments on commit 36c3a02

Please sign in to comment.