package com.sckw.transport.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author lfdc
 * @description 操作订单-接单操作
 * @date 2023-07-12 15:07:32
 */
@Data
public class OrderTakingDTO {
    /**
     * 单据号
     */
    @NotBlank(message = "单据号不能为空")
    @JsonProperty(value = "lOrderNo")
    private String lOrderNo;
    /**
     * 数据主键id
     */
    @NotBlank(message = "主键id不能为空")
    @JsonProperty(value = "lOrderId")
    private String lOrderId;
    /**
     * 是否接单的类型(true:接受；false:拒绝)
     */
    @NotNull(message = "接单类型不能为空")
    @JsonProperty(value = "type")
    private Boolean type;
    /**
     * 驳回时填写原因
     */
    @JsonProperty(value = "remark")
    private String remark;

}
