package com.brframework.commoncms.core.permission;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author xu
 * @date 2019/11/6 17:05
 */
@Builder
@Data
public class Permission {

    @ApiModelProperty(value = "权限标题", required = true, example = "添加商品")
    String title;

    @ApiModelProperty(value = "权限标识", required = true, example = "ORDER")
    String role;

    @ApiModelProperty(value = "子权限")
    List<Permission> children;
}
