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

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

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

@Schema(description = "管理后台 - IOT组织新增/修改 Request VO")
@Data
public class IotOrganizationSaveReqVO {

    @Schema(description = "组织id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24521")
    private Long id;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "负责人/工人", example = "11964")
    private Long workerUserId;

    @Schema(description = "绑定工位id", example = "21787")
    private Long orgId;

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

    @Schema(description = "父组织id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10729")
    @NotNull(message = "父组织id不能为空")
    private Long parentId;

    @Schema(description = "组织状态", example = "2")
    private Integer status;

    @Schema(description = "设备类型", example = "2")
    private String deviceType;

    @Schema(description = "组织等级")
    private String orgClass;

    @Schema(description = "机台类型", example = "2")
    private String machineType;

}