package com.repair.model.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: binguo
 * @Date: 2023/8/5 星期六 10:05
 * @Description: com.repair.controller
 * @Version: 1.0
 */
@Data
public class MaintenanceConsumeablesRequest {
    /**
     * 报修记录
     */
    @NotNull(message = "报修记录ID不能为空")
    private Integer recordId;


    /**
     * 耗材集合
     */
    @NotEmpty(message = "耗材集合不能为空")
    private List<insertConsumablesRequest> consumes;

    /**
     * 总价
     */
    @NotNull(message = "总价不能为空")
    private BigDecimal totalPrice;
}
