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


import com.baomidou.mybatisplus.annotation.TableId;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.module.knowledge.entity.TViolationImage;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class TViolationRequest extends PageParam {
    @Schema(description = "主键")
    @TableId
    private Long id;

    @Schema(
            description = "违章标题",
            example = "违章了"
    )
    private String title;

    @Schema(
            description = "违章类别",
            example = "1"
    )
    private String type;

    @Schema(
            description = "违章人员",
            example = "小明"
    )
    private String violator;

    @Schema(
            description = "备注说明",
            example = "备注"
    )
    private String descr;

    @Schema(
            description = "违章编码",
            example = "A02"
    )
    private String code;

    @Schema(
            description = "违章时间",
            example = "2024-04-14 15:13:42"
    )
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date violationTime;

    @Schema(
            description = "最后推送时间",
            example = "2024-04-14 15:13:42"
    )
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastPushTime;

    @Schema(
            description = "预留字段",
            example = "预留字段"
    )
    private String violationB;

    @Schema(
            description = "创建人",
            example = "人员"
    )
    private String creator;


    @Schema(
            description = "图片",
            example = "jpg"
    )
    private List<TViolationImage> imgList;

    private String bgnTime;
    private String endTime;


}
