package cn.iocoder.yudao.module.knowledge.controller.requestdto;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.module.knowledge.validated.EditGroup;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
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
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "课程推送查询")
public class TCoursePushRequest extends PageParam {
    @Schema(description = "主键")
    @NotNull(message = "id不能为空", groups = EditGroup.class)
    private Long id;

    @Schema(description = "视频名称")
    @NotBlank(message = "视频名称不能为空")
    private String name;

    @Schema(description = "视频路径")
    @NotBlank(message = "视频路径不能为空")
    private String fileUrl;

    private Boolean status;

    private Date dateTime;

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

}
