package com.mosty.base.model.dto.yjzl;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author zhangzhao
 * @description 指导巡逻方格巡逻任务表创建DTO对象
 * @modifier zhangzhao
 * @modifiedTime 2025/05/12 22:59
 * @since 2025/05/12 22:59
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TbZdxlFgxlrwCreateDTO对象", description = "指导巡逻方格巡逻任务表创建DTO对象")
public class TbZdxlFgxlrwCreateDTO {

    /**
     * 任务日期
     */
    @ApiModelProperty(value = "任务日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "zdxl.fgxlrw.rwRq.notNull")
    private Date rwRq;

    /**
     * 任务计算开始日期
     */
    @ApiModelProperty(value = "任务计算开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date rwJsKsrq;

    /**
     * 任务计算结束日期
     */
    @ApiModelProperty(value = "任务计算结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date rwJsJsrq;

}
