|
@@ -0,0 +1,142 @@
|
|
|
+package com.yaoxiang.diagnosis.entity;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import org.hibernate.annotations.CreationTimestamp;
|
|
|
+import org.hibernate.annotations.UpdateTimestamp;
|
|
|
+
|
|
|
+import javax.persistence.*;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Entity
|
|
|
+@ApiModel("问题")
|
|
|
+public class Issue {
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @Lob
|
|
|
+ @Column(nullable = false)
|
|
|
+ @ApiModelProperty("题目内容")
|
|
|
+ private String content;
|
|
|
+
|
|
|
+ @ApiModelProperty("模块1专用")
|
|
|
+ @Column
|
|
|
+ private Long chapterId;
|
|
|
+
|
|
|
+ @Column
|
|
|
+ private String grade;
|
|
|
+
|
|
|
+ @Column
|
|
|
+ @ApiModelProperty("知识点标签 以,隔开")
|
|
|
+ private String tag;
|
|
|
+
|
|
|
+ @Column(nullable = false, columnDefinition = " int default 1")
|
|
|
+ @ApiModelProperty("题目所属模块 1 2 3")
|
|
|
+ private int section;
|
|
|
+
|
|
|
+ private String answer;
|
|
|
+
|
|
|
+ @CreationTimestamp
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Date createtime;
|
|
|
+
|
|
|
+ @UpdateTimestamp
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Date updatetime;
|
|
|
+
|
|
|
+ @Transient
|
|
|
+ private List<IssueOption> options;
|
|
|
+
|
|
|
+ @Transient
|
|
|
+ private List<IssueMind> minds;
|
|
|
+
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getContent() {
|
|
|
+ return content;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setContent(String content) {
|
|
|
+ this.content = content;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getChapterId() {
|
|
|
+ return chapterId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setChapterId(Long chapterId) {
|
|
|
+ this.chapterId = chapterId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGrade() {
|
|
|
+ return grade;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGrade(String grade) {
|
|
|
+ this.grade = grade;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTag() {
|
|
|
+ return tag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTag(String tag) {
|
|
|
+ this.tag = tag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getSection() {
|
|
|
+ return section;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSection(int section) {
|
|
|
+ this.section = section;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAnswer() {
|
|
|
+ return answer;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAnswer(String answer) {
|
|
|
+ this.answer = answer;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getCreatetime() {
|
|
|
+ return createtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreatetime(Date createtime) {
|
|
|
+ this.createtime = createtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getUpdatetime() {
|
|
|
+ return updatetime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUpdatetime(Date updatetime) {
|
|
|
+ this.updatetime = updatetime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<IssueOption> getOptions() {
|
|
|
+ return options;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOptions(List<IssueOption> options) {
|
|
|
+ this.options = options;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<IssueMind> getMinds() {
|
|
|
+ return minds;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMinds(List<IssueMind> minds) {
|
|
|
+ this.minds = minds;
|
|
|
+ }
|
|
|
+}
|