package cn.iocoder.yudao.module.pms.controller.admin.devicegroup;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.*;

@Schema(description = "管理后台 - PMS成套明细新增/修改 Request VO")
@Data
public class IotDeviceGroupDetailSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "18152")
    private Long id;

    @Schema(description = "成套名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "17288")
    @NotNull(message = "成套名称不能为空")
    private Long groupId;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29616")
    @NotNull(message = "设备id不能为空")
    private Long deviceId;

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

    @Schema(description = "设备编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "设备编码不能为空")
    private String deviceCode;

    @Schema(description = "是否主设备", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否主设备不能为空")
    private Boolean ifMaster;

    @Schema(description = "描述", example = "随便")
    private String remark;

    @Schema(description = "部门id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2916")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

}
