package com.tcm.training.admin.live.entity; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.time.LocalDateTime; @TableName("tcm_project_introduction") /** 项目介绍内容实体。 */ @Getter @Setter @NoArgsConstructor public class ProjectIntroduction { public static final String CATEGORY_PLATFORM = "platform"; public static final String CATEGORY_MARKETING_MODEL = "mode"; public static final String CATEGORY_MARKETING_ACTION = "action"; public static final int CONTENT_TYPE_ARTICLE = 1; public static final int CONTENT_TYPE_VIDEO = 2; @TableId(type = IdType.AUTO) private Long id; private String title; @TableField("cover_img") private String coverImg; private String category; @TableField("content_type") private Integer contentType; private String content; @TableField("video_url") private String videoUrl; @TableField("video_file_name") private String videoFileName; @TableField("video_description") private String videoDescription; @TableField("click_count") private Integer clickCount; private Integer status; @TableLogic private Integer deleted; @TableField(value = "created_by", fill = FieldFill.INSERT) private String createdBy; @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE) private String updatedBy; @TableField("created_at") private LocalDateTime createdAt; @TableField("updated_at") private LocalDateTime updatedAt; }