
package cn.orionsec.ops.entity.vo.machine;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "机器分组树响应")
public class MachineGroupTreeVO {

    @JSONField(name = "key")
    @ApiModelProperty(value = "id")
    private Long id;

    @JSONField(serialize = false)
    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    private String title;

    @JSONField(serialize = false)
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "子节点")
    private List<MachineGroupTreeVO> children;

}
