package cn.iocoder.yudao.module.knowledge.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 课程推送
 *
 * @author admin
 * @since 1.0.0 2024-05-12
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("t_course_push")
public class TCoursePush extends BaseDO {

    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "视频名称")
    private String name;

    @Schema(description = "视频路径")
    private String fileUrl;

    @Schema(description = "推送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date pushTime;

    @Schema(description = "是否开启 0：关闭 1：开启")
    private String status;
}
