package cn.iocoder.yudao.module.iot.controller.admin.devicemodel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 采集设备模型新增/修改 Request VO")
@Data
public class DeviceModelSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30028")
    private Long id;

    @Schema(description = "分类编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "分类编码不能为空")
    private String code;

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

    @Schema(description = "通讯协议", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "通讯协议不能为空")
    private String protocol;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}