package com.sckw.transport.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zk
 * @desc 确认/拒绝出车参数
 * @date 2023/7/26 0026
 */
@Data
public class OperateWaybillDto {

    /**
     * 车辆订单id
     */
    @JsonProperty("wOrderId")
    @NotNull(message = "车辆订单ID不能为空")
    private Long wOrderId;

    /**
     * 操作时间
     */
    @JsonProperty("operateTime")
    @JsonFormat(locale="zh", pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @NotNull(message = "时间不能为空")
    private Date operateTime;

    /**
     * 备注
     */
    @Size(max=100, message = "原因长度不能大于100个字符！")
    private String remark;
}
