package com.tcm.training.admin.live.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.FieldFill; 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 com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.time.LocalDateTime; import java.util.List; @TableName(value = "tcm_live_course", autoResultMap = true) /** 养生直播课程实体。 */ @Getter @Setter @NoArgsConstructor public class LiveCourse { @TableId(type = IdType.AUTO) private Long id; private String title; private String level; @TableField("expert_id") private Long expertId; @TableField("cover_img") private String coverImg; @TableField(value = "banner_imgs", typeHandler = JacksonTypeHandler.class) private List bannerImgs; private String intro; @TableField("target_users") private String targetUsers; @TableField("quiz_delay_minutes") private Integer quizDelayMinutes; @TableField("quiz_points") private Integer quizPoints; private Integer status; @TableField("password") private String password; @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; }