package com.repair.model.request;

import lombok.Data;

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

/**
 * @Author: binguo
 * @Date: 2023/7/13 星期四 15:21
 * @Description: com.repair.model.request
 * @Version: 1.0
 */
@Data
public class insertRepairConsumeRequest {

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

    /**
     * 报修物品（故障类型）ID集合
     */
    @NotEmpty(message = "报修物品（故障类型）ID集合")
    private List<Integer> articleIds;

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

    /**
     * 校区ID
     */
    @NotNull(message = "校区ID不能为空")
    private Integer schoolId;

    /**
     * 耗材内容
     */
    private String content;
}
