package com.brframework.commoncms.core.permission;

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

import java.util.List;

/**
 * @author xu
 * @date 2019/11/6 16:39
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Menu {

    @ApiModelProperty(value = "标题", required = true, example = "会员管理")
    String title;

    @ApiModelProperty(value = "链接", example = "/admin/link")
    String url;

    @ApiModelProperty(value = "图标", example = "/admin/link")
    String icon;

    @ApiModelProperty(value = "功能所需权限", example = "ADMIN")
    String role;

    @ApiModelProperty(value = "功能排序", example = "1")
    Integer order;

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

}
