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

import com.cf.imes.framework.es.core.valid.UpdateGroup;
import com.cf.imes.module.system.dal.dataobject.machinetemplate.DrillTemplateMachineDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * @author there
 */
@Schema(description = "管理后台 - 钻孔机台新增/修改 Request VO")
@Data
public class DrillTemplateSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, 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 = "钻孔机台模板配置")
    @NotNull(message = "配置不能空")
    private DrillTemplateMachineDO setting;
}
