102 lines
2.0 KiB
Java
102 lines
2.0 KiB
Java
package com.example.caseData.model;
|
||
|
||
import com.baomidou.mybatisplus.annotation.*;
|
||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||
import lombok.Data;
|
||
|
||
import java.time.LocalDateTime;
|
||
import java.util.List;
|
||
|
||
@Data // Lombok注解,用于自动生成getter/setter方法等
|
||
@TableName("`case_clinical_video`") // 指定数据库表名
|
||
public class CaseClinicalVideoModel {
|
||
/**
|
||
* 主键id
|
||
*/
|
||
@TableId(type = IdType.ASSIGN_ID) // 使用MyBatis-Plus的ID生成策略
|
||
private Long videoId;
|
||
|
||
/**
|
||
* 标题
|
||
*/
|
||
@TableField("video_title")
|
||
private String videoTitle;
|
||
|
||
/**
|
||
* 状态(1:正常 2:禁用)
|
||
*/
|
||
@TableField("video_status")
|
||
private Integer videoStatus;
|
||
|
||
/**
|
||
* 删除状态(0:否 1:是)
|
||
*/
|
||
@TableField("delete_status")
|
||
private Integer deleteStatus;
|
||
|
||
/**
|
||
* 阅读量
|
||
*/
|
||
@TableField("read_num")
|
||
private Integer readNum;
|
||
|
||
/**
|
||
* 收藏量
|
||
*/
|
||
@TableField("collect_num")
|
||
private Integer collectNum;
|
||
|
||
/**
|
||
* 评论量
|
||
*/
|
||
@TableField("comment_num")
|
||
private Integer commentNum;
|
||
|
||
/**
|
||
* 视频编号(保利)
|
||
*/
|
||
@TableField("video_no")
|
||
private String videoNo;
|
||
|
||
/**
|
||
* 发表时间
|
||
*/
|
||
@TableField("push_date")
|
||
private LocalDateTime pushDate;
|
||
|
||
/**
|
||
* 证书图片
|
||
*/
|
||
@TableField("cert_image")
|
||
private String certImage;
|
||
|
||
/**
|
||
* 是否外部链接(0:否 1:是)
|
||
*/
|
||
@TableField("is_link")
|
||
private Integer isLink;
|
||
|
||
/**
|
||
* 外部链接地址
|
||
*/
|
||
@TableField("is_link_url")
|
||
private String isLinkUrl;
|
||
|
||
/**
|
||
* 创建时间
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT)
|
||
@JsonProperty("created_at")
|
||
private LocalDateTime createdAt;
|
||
|
||
/**
|
||
* 修改时间
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||
@JsonProperty("updated_at")
|
||
private LocalDateTime updatedAt;
|
||
|
||
// 作者
|
||
@TableField(exist = false)
|
||
private List<CaseClinicalVideoAuthorModel> author;
|
||
} |