package cn.iocoder.yudao.module.pms.controller.admin.yanfan.group.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 IotYfGroupSaveReqVO {

    @Schema(description = "分组ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25395")
    private Long groupId;

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

    @Schema(description = "分组排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "分组排序不能为空")
    private Integer groupOrder;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11789")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "用户昵称不能为空")
    private String userName;

    @Schema(description = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

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

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

}
