package cn.iocoder.yudao.module.pms.controller.admin.yanfan.var.vo;

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

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

@Schema(description = "管理后台 - yf设备采集变量模板对象新增/修改 Request VO")
@Data
public class IotYfVarTempSaveReqVO {

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

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

    @Schema(description = "类型", example = "1")
    private Integer type;

    @Schema(description = "采集方式 1.云端轮询 2.云端边缘计算", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "采集方式 1.云端轮询 2.云端边缘计算不能为空")
    private Integer pollingMethod;

    @Schema(description = "模板所属用户", example = "25672")
    private Integer userId;

    @Schema(description = "从机总数")
    private Long slaveTotal;

    @Schema(description = "总采集点数")
    private Long pointTotal;

    @Schema(description = "是否分享")
    private Integer share;

    @Schema(description = "部门id", example = "26471")
    private Long deptId;

}
