package com.cf.imes.module.system.controller.admin.machine.vo;


import com.cf.imes.module.system.validation.machine.MachineTypeValid;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.util.List;

@Data
public class MachineTemplateBrandReqVO {


    @Schema(description = "组织ID")
    private Long organId;

    @Schema(description = "1开料机台设备 2钻孔机台设备", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "1开料机台设备 2钻孔机台设备 不能为空")
    @MachineTypeValid
    private Integer machineType;

    @Schema(description = "机台的品牌ID")
    private Long id;


    @Schema(description = "机台的品牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "品牌名称不能为空")
    @Size(max = 64, message = "品牌名称长度不能超过64个字符")
    private String brand;


    @Schema(description = "机台模板的授权信息")
    private List<OrganTemplateVO> organMachineVOS;

}
