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 java.math.BigDecimal;

/**
 * @author: yzc
 * @date: 2024-03-12  09:46
 * @desc: 更新地点分配量参数
 */
@Getter
@Setter
@ToString
public class UpdateAddressAmountParam {

    @NotNull(message = "地址id不能为空")
    private Long id;

    @NotNull(message = "分配量不能为空")
    @DecimalMin(value = "0.00",message = "分配量必须大于零")
    private BigDecimal amount;

}