package shop.alien.entity.store.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import shop.alien.entity.store.StorePlatformRole;

import java.util.List;

/**
 * 平台角色信息VO（包含关联统计）
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude
@ApiModel(value = "StorePlatformRoleVo对象", description = "平台角色信息VO（包含关联统计）")
public class StorePlatformRoleVo extends StorePlatformRole {

    @ApiModelProperty(value = "关联子账号数量")
    private Integer subAccountCount;

    @ApiModelProperty(value = "关联权限数量")
    private Integer permissionCount;

    @ApiModelProperty(value = "权限列表（树形结构）")
    private List<RolePermissionVo> permissions;
}

