package com.yuchen.saas.park.api.dto.elevator;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author: baichaojie
 * @CreateTime: 2024/07/24 15:02
 * @Description: TODO
 * @Version: 1.0
 */
@ApiModel(value="GroupDTO对象", description="人员权限Json字符串")
@Data
public class GroupDTO {
    @ApiModelProperty(name = "id", value = "id")
    private String id;

    @ApiModelProperty(name = "groupId", value = "分组")
    private Long groupId;

    @ApiModelProperty(name = "label", value = "分组名称")
    //@ApiModelProperty(name = "groupName", value = "分组名称")
    private String label;

    @ApiModelProperty(name = "isDisabled", value = "是否禁用")
    private Boolean isDisabled;

    @ApiModelProperty(name = "isSelected", value = "是否选择")
    private Boolean isSelected;

    //@ApiModelProperty(name = "listDevice", value = "设备们")
    @ApiModelProperty(name = "children", value = "设备们")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<DeviceDTO> children;

    @ApiModelProperty(name = "isEnabled", value = "分组状态开关")
    private Boolean isEnabled;

}