|
|
@@ -0,0 +1,49 @@
|
|
|
+package cn.seecoder.seecoderportalserver.domain;
|
|
|
+
|
|
|
+import cn.seecoder.seecoderportalcommon.vo.CommunicationFileVO;
|
|
|
+
|
|
|
+import javax.persistence.Entity;
|
|
|
+import javax.persistence.Id;
|
|
|
+import javax.persistence.OneToMany;
|
|
|
+import javax.persistence.Table;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author fanyanpeng
|
|
|
+ * @date 2023/7/11 12:22
|
|
|
+ */
|
|
|
+@Entity
|
|
|
+@Table(name = "communication")
|
|
|
+public class Communication {
|
|
|
+ @Id
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ private Long publisherId;
|
|
|
+
|
|
|
+ private String title;
|
|
|
+
|
|
|
+// private CommunicationTypeEnum type;
|
|
|
+
|
|
|
+ private String description;
|
|
|
+
|
|
|
+ private String organization;
|
|
|
+
|
|
|
+ private String phone;
|
|
|
+
|
|
|
+ private String wechat;
|
|
|
+
|
|
|
+ private String qq;
|
|
|
+
|
|
|
+ private String email;
|
|
|
+
|
|
|
+ private Date publishTime;
|
|
|
+
|
|
|
+ private Date deadline;
|
|
|
+
|
|
|
+ @OneToMany
|
|
|
+ private List<CommunicationFile> photos;
|
|
|
+
|
|
|
+ @OneToMany
|
|
|
+ private List<CommunicationFile> attachments;
|
|
|
+}
|