|
@@ -0,0 +1,124 @@
|
|
|
|
+package com.yonge.cooleshow.biz.dal.entity;
|
|
|
|
+
|
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.CoursewareEnum;
|
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
|
+
|
|
|
|
+import java.io.Serializable;
|
|
|
|
+import java.util.Date;
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
+
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 课件表
|
|
|
|
+ */
|
|
|
|
+@TableName("course_courseware")
|
|
|
|
+@ApiModel(value = "CourseCourseware对象", description = "课件表")
|
|
|
|
+public class CourseCourseware implements Serializable {
|
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
|
+ @ApiModelProperty("主键 ")
|
|
|
|
+ @TableId(value = "id_", type = IdType.AUTO)
|
|
|
|
+ private Long id;
|
|
|
|
+ @ApiModelProperty("用户id ")
|
|
|
|
+ @TableField(value = "user_id_")
|
|
|
|
+ private Long userId;
|
|
|
|
+ @ApiModelProperty(value = "用户类型 STUDENT,TEACHER ",hidden = true)
|
|
|
|
+ @TableField(value = "client_type_")
|
|
|
|
+ private ClientEnum clientType;
|
|
|
|
+ @ApiModelProperty(value = "课件名称 ",required = true)
|
|
|
|
+ @TableField(value = "courseware_name_")
|
|
|
|
+ @NotBlank(message = "课件名称不能为空")
|
|
|
|
+ private String coursewareName;
|
|
|
|
+ @ApiModelProperty(value = "课件类型 AUDIO:音频 IMG:图片 ",required = true)
|
|
|
|
+ @TableField(value = "courseware_type_")
|
|
|
|
+ @NotNull(message = "课件类型不能为空")
|
|
|
|
+ private CoursewareEnum coursewareType;
|
|
|
|
+ @ApiModelProperty(value = "文件地址 ",required = true)
|
|
|
|
+ @TableField(value = "file_url_")
|
|
|
|
+ @NotBlank(message = "文件地址不能为空")
|
|
|
|
+ private String fileUrl;
|
|
|
|
+ @ApiModelProperty("创建时间 ")
|
|
|
|
+ @TableField(value = "create_time_")
|
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
|
|
|
+ private Date createTime;
|
|
|
|
+ @ApiModelProperty("更新时间 ")
|
|
|
|
+ @TableField(value = "update_time_")
|
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
|
|
|
+ private Date updateTime;
|
|
|
|
+
|
|
|
|
+ public Long getId() {
|
|
|
|
+ return id;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setId(Long id) {
|
|
|
|
+ this.id = id;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Long getUserId() {
|
|
|
|
+ return userId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUserId(Long userId) {
|
|
|
|
+ this.userId = userId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public ClientEnum getClientType() {
|
|
|
|
+ return clientType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setClientType(ClientEnum clientType) {
|
|
|
|
+ this.clientType = clientType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public CoursewareEnum getCoursewareType() {
|
|
|
|
+ return coursewareType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCoursewareType(CoursewareEnum coursewareType) {
|
|
|
|
+ this.coursewareType = coursewareType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getCoursewareName() {
|
|
|
|
+ return coursewareName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCoursewareName(String coursewareName) {
|
|
|
|
+ this.coursewareName = coursewareName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public String getFileUrl() {
|
|
|
|
+ return fileUrl;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setFileUrl(String fileUrl) {
|
|
|
|
+ this.fileUrl = fileUrl;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ 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;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|