package com.repair.model.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author: binguo
 * @Date: 2023/8/5 星期六 9:48
 * @Description: com.repair.model.request
 * @Version: 1.0
 */
@Data
public class insertConsumablesRequest {

    @NotNull(message = "耗材数据不能为空")
    private Integer id;

    /**
     * 报修物品ID
     */
    @NotNull(message = "报修物品ID不能为空")
    private Integer articleId;

    @NotNull(message = "耗材数据不能为空")
    private Integer consumeId;

    @NotBlank(message = "耗材名称不能为空")
    private String consumeName;

    @NotNull(message = "耗材单价不能为空")
    private BigDecimal price;

    @NotNull(message = "耗材数量不能为空")
    private Double number;

    private BigDecimal totalPrice;
}
