package com.sckw.order.model.vo.req;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

/**
 * @desc: 订单完结请求参数
 * @author: yzc
 * @date: 2023-07-12 17:26
 */
@Getter
@Setter
@ToString
public class CompleteOrderParam {

    @NotNull(message = "订单id不能为为空")
    private Long id;

    @NotNull(message = "实际交付量不能为空")
    @DecimalMin(value = "0.00",message = "实际交付量最小为零")
    private BigDecimal actualAmount;

    @Length(max = 200, message = "备注最多200字")
    private String remark;

}
