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

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

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * @author there
 */
@Schema(description = "开料机台新增/修改 Request VO")
@Data
public class CuttingSaveReqVO {

    @Schema(description = "主键", example = "14092")
    @NotNull(message = "主键不能空")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "名称不能为空")
    @Size(max = 100, message = "名称长度不能超过100个字符")
    private String name;

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

    @Schema(description = "标签id")
    @NotNull(message = "标签id不能空")
    private Long labelId;


    @Schema(description = "品牌ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "品牌ID不能为空")
    private Long brandId;


    @Schema(description = "机台的型号-机台的ID")
    @NotNull(message = "机台型号不能为空")
    private Long machineId;


    @Schema(description = "机台配置")
    private JSONObject machineSettingDO;


}