package com.sckw.transport.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author lfdc
 * @description 承运订单/托运订单-撤销托运
 * @date 2023-08-03 19:08:22
 */

@Data
public class CancelOrderDTO {
//    @JsonProperty("orderNo")
//    @NotNull(message = "单据编号不能为空")
//    private String orderNo;

    @JsonProperty("id")
    @NotNull(message = "数据id不能为空")
    private String id;
    /**
     * 1 托运 2 承运
     */
    @JsonProperty("type")
    @NotNull(message = "单据类型不能为空")
    private String type;

    /**
     * 备注
     */
    @JsonProperty("remark")
    @Length(max = 200,message = "备注长度错误最大长度:{max}")
    private String remark;
}
