package jnpf.model.authority.vo.role;

import jnpf.model.authority.vo.menu.FtbPermissionMenuConfigTreeVO;
import lombok.Data;

import java.util.List;

@Data
public class FtbPermissionPositionMenuVO {

    /**
     * 岗位名称
     */
    private String postName;

    /**
     * 岗位主键Id
     */
    private String postId;

    /**
     * 岗位下的人员
     */
    private List<String> userIds;

    /**
     * 1.0权限菜单
     */
    private List<FtbPermissionPositionMenuInnerVO> ftbPermissionPositionMenuInnerVOList;

    /**
     * 2.0web权限菜单
     */
    private List<FtbPermissionMenuConfigTreeVO> ftbPermissionMenuConfigTreeVOListWeb;
    /**
     * 2.0app权限菜单
     */
    private List<FtbPermissionMenuConfigTreeVO> ftbPermissionMenuConfigTreeVOListApp;

    @Data
    public static class FtbPermissionPositionMenuInnerVO {
        /**
         * 菜单名称
         */
        private String menuName;

        /**
         * 菜单ID
         */
        private String menuId;

        /**
         * 父级权限id,最上层为0
         */
        private String parentId;

        /**
         * 是否选中
         */
        private Boolean checked;

        /**
         * 子级权限
         */
        private List<FtbPermissionPositionMenuInnerVO> childrenList;

    }

}
