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

import com.alibaba.fastjson.JSONObject;
import com.cf.imes.framework.es.core.valid.CreateGroup;
import com.cf.imes.framework.es.core.valid.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

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

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

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "名称不能为空")
    private String name;

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

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

    @Schema(description = "机台模板id")
    @NotNull(groups = CreateGroup.class, message = "机台模板id不能空")
    private Long templateId;

   /* @Schema(description = "机台配置")
    @Valid
    private CuttingSettingDO machineSettingDO;*/

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


  /*  @Schema(description = "样式配置")
    @Valid
    private StyleMachineDO styleMachineDO;*/

}