package com.zhongshu.card.client.model.org;

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

import java.io.Serializable;
import java.util.List;

@Data
public class ModularModel implements Serializable {

    private String id;

    @Schema(description = "分组名称,如：角色管理")
    private String name;

    private String value;

    @Schema(description = "排序")
    private int index = 0;

    @Schema(description = "是否可以勾选")
    private Boolean isCanSelect = Boolean.FALSE;

    public String getValue() {
        return name;
    }

    @Schema(description = "权限列表")
    private List<AuthModel> authModels;
}
