ANT-DESIGN-PRO+THINKPHP制作管理系统日志

6 篇文章 0 订阅
1 篇文章 0 订阅

一、安装AntDesignPro

git clone --depth=1 https://github.com/vueComponent/ant-design-vue-pro.git my-project
cd my-project
yarn install

二、关闭mock模拟数据,使用本地API服务

  • 修改/src/main.js,删除 第16行(大约位置)
  import './mock'
  • /vue.config.js中开启proxy(第105行)
devServer: {
    // development server port 8000
    port: 8000,
    // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
         target: 'http://localhost:8002', //这样所有调用/api的地址都被转发至http://localhost:8002
         ws: false,
         changeOrigin: true
       }
     }
  },
  • 运行一下看看
yarn run serve

三 、安装THINKPHP,提供API服务

  • 安装Composer
  • 更换源
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
  • 安装稳定版thinkphp
composer create-project topthink/think tp
  • 修改一下试运行端口(与ant一样是8000,冲突,所以改成8002)
    改 \vendor\topthink\framework\src\think\console\command\RunServer.php第37行
    port改为8002
  • 运行一下看看:
php run tp

四、在thinkphp中写接口

基本要实现以下接口:(参见/src/api/login.js+manage.js)

因为接口中出现短横线会出问题,所以2step-code要改为2stepcode

  Login: '/auth/login',  //登录接口
  Logout: '/auth/logout',
  ForgePassword: '/auth/forge-password',
  Register: '/auth/register',
  twoStepCode: '/auth/2step-code',
  SendSms: '/account/sms',
  SendSmsErr: '/account/sms_err',
  // get my info
  UserInfo: '/user/info',  //用户权限接口
  UserMenu: '/user/nav'  //动态路由和菜单接口
  
  user: '/user',
  role: '/role',
  service: '/service',
  permission: '/permission',
  permissionNoPager: '/permission/no-pager',
  orgTree: '/org/tree'

写一下各个接口,建议用phpstorm

  • 搞清楚接口返回数据的规则,改一下src\store\modules\user.js,console.log一下就可以从MOCK中得到数据格式,放到/public/static下,

  • 用户登录数据login.json,用户信息数据info.json,菜单数据 nav.json等接口返回数据,具体格式附在最后

  • 添加/api/controller/Api.php,完成接口数据提供,具体业务具体改写

  • antd pro的登录代码有点问题,无法在view/user/login.vue中获取返回的res,影响后面的登录状态判断,需要改写一下src/store/modules/user.js

  actions: {
    // 登录
    Login ({ commit }, userInfo) {
      return new Promise((resolve, reject) => {
        login(userInfo).then(response => {
          console.log(response)
          const result = response.result
          storage.set(ACCESS_TOKEN, result.token, new Date().getTime() + 7 * 24 * 60 * 60 * 1000)
          commit('SET_TOKEN', result.token)
          resolve(response)                     //此行修改,原为resolve()------------------
        }).catch(error => {
          reject(error)
        })
      })
    },
  • antdpro的身份验证机制是看API返的信息中有没token,对于登录错误 的处理要自己改,改写login.vue中的登录代码,添加code的识别

    Login(loginParams)
      .then((res) => {               
        if(res.code==200) this.loginSuccess(res)  //修改此处,返回code200为正常,否则给出错误提示
        else{
         this.isLoginError = true
        }
      })
      .catch(err => this.requestFailed(err))
    
  • API需要身份验证,采用TOKEN验证机制,实现如下:
    (1)数据库中添加USER表,在tp中设置好数据库参数
    (2)USER表中至少包括:username,password,token,timeout四个字段
    (3)建立新用户

<?php

namespace app\controller;

use app\BaseController;
use think\Request;

class Api extends BaseController
{
	//添加token生成函数
	public function makeToken($str){
        return md5($str.time());
    } 
    //检查和更新TOKEN
    public function checkToken($token)
    {
        $user = new User();
        $res = $user->field('time_out')->where('token', $token)->select();
        if (!empty($res)) {            
            if (time() - $res[0]['time_out'] > 0) {
                return 90003; //token长时间未使用而过期,需重新登陆
            }
            $new_time_out = time() + 604800; //604800是七天
            $res = $user->where('token', $token)
                ->update(['time_out' => $new_time_out]);
            if ($res) {
                return 90001; //token验证成功,time_out刷新成功,可以获取接口信息
            }
        }
        return 90002; //token错误验证失败
    }

    public function auth(Request $request, $action)
    {
        switch ($action) {
        //登录接口
            case "login":
                $username= $request->param('username');
                $password=$request->param('password');
               
                //登录
                $user = new User();
                $userisset = $user->where('username',$username )->find();
                
                if ($userisset == null) {
                    return json(['msg'=>'用户不存在',                             
                    'result'=>[],
                    'code'=>401]);
                } else {
                    $u=$user->where('username', $username)->find();
                    if(md5($u->password)!=$password) {
                        return json(['msg'=>'密码错误',                             
                        'result'=>[],
                        'code'=>401]);
                    } else {
                        //session('user', $username);
                        $token = $this->makeToken($username);
                        $new_time_out = strtotime("+1 days");
                        $userinfo = ['timeout' => $new_time_out,
                            'token' => $token];                             
                        $res = $user->where('username', $username)
                            ->update($userinfo);
                        if ($res) {
                            return json(['msg'=>'',                             
                            'result'=>[
                                        'username'=>$username,
                                        "token"=>    $token
                                    ],
                            'code'=>200]);
                        }
                    }
                }
                break;
            case "logout":
                return json(array("a" => 1));
                break;
            case "2stepcode":
                $data = file_get_contents(public_path() . 'static\\2step.json');
                return json(json_decode($data));
                break;

        }
        return '';
    }

    public function user(Request $request, $action)
    {
        switch ($action) {
            case "info":
                $token = $request->header('access-token'); //登录后的凭证,根据此凭证返回相应用户信息
                $data = file_get_contents(public_path() . 'static\\info.json');
                return json(json_decode($data));
            case "nav":
                $data = file_get_contents(public_path() . 'static\\nav.json');
                return json(json_decode($data));
        }
    }

    public function role()
    {
        $data = file_get_contents(public_path() . 'static\\role.json');
        return json(json_decode($data));

    }

    public function service()
    {
        $data = file_get_contents(public_path() . 'static\\services.json');
        return json(json_decode($data));

    }

    public function org($action)
    {
        $data = file_get_contents(public_path() . 'static\\orgtree.json');
        return json(json_decode($data));

    }

    public function list($search)
    {
        $data = file_get_contents(public_path() . 'static\\list.json');
        return json(json_decode($data));
    }

    public function workplace($action)
    {
        switch ($action) {
            case "activity":
                $data = file_get_contents(public_path() . 'static\\activity.json');
                return json(json_decode($data));

            case "teams":
                $data = file_get_contents(public_path() . 'static\\teams.json');
                return json(json_decode($data));

            case "radar":
                $data = file_get_contents(public_path() . 'static\\radar.json');
                return json(json_decode($data));
        }

    }

}


thinkphp的路由表要添加相应路径。

Route::post('api/auth/:action', 'api/auth');
Route::get('api/user/:action', 'api/user');

五、切换静态菜单

管理后台的菜单有两种方式进行设置:

  • 一种是获取动态路由菜单,从/api/user/nav接口
  • 一种是本地化的静态路由和菜单/config/router.config.js(仍然需要从用户信息中读取菜单权限,过滤显示哪些菜单项)
  • 前面说的info.json和nav.json主要是动态加载权限的。

系统默认的是动态加载路由表和菜单,详见:
https://pro.antdv.com/docs/authority-management
本案例中采用静态菜单路由表,需要做以下修改
在/src/store/index.js中,选择设置静态路由

import permission from './modules/permission'  //前端菜单 
// dynamic router permission control (Experimental)
// import permission from './modules/async-router'   //后端菜单

这样就不会加载nav.json了。

六、(可选)去除菜单权限管理直接显示所有菜单

当你要开发一个小系统,或一个完全不需要权限控制的,开放后台任意访问的管理面板。
这样就免登录进入了,不推荐

--------参考官方说明---------

  • 去除路由守卫
    移除代码 src/main.js 第 20 行
 import './permission' // permission control
  • 让菜单生成不经过动态路由 :清空并修改 src/router/index.js为下面的内容
import Vue from 'vue'
import Router from 'vue-router'
import { constantRouterMap, asyncRouterMap } from '@/config/router.config'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: constantRouterMap.concat(asyncRouterMap)
})
  • 修改 /src/layouts/BasicLayout.vue
//去掉广告代码后的第51行,插入:
import { asyncRouterMap } from '@/config/router.config.js'
//修改115行created函数:
created () {
  const routes = asyncRouterMap.find((item) => item.path === '/')
  // const routes = this.mainMenu.find((item) => item.path === '/')
  this.menus = (routes && routes.children) || []
},

这样,info.json的API接口也不会调用了

七、打开隐藏功能

在/src/config/router.config.js中解开注释部分,
import中添加导入…PageView } from ‘@/layouts’
view/role/RoleList部分得注释掉,不存在

八、切换默认语言

Step1. 在src\locales\index.js文件修改默认语言

// default lang
// import enUS from './lang/en-US'
import zhCN from './lang/zh-CN' // 默认语言由英文改为中文

Vue.use(VueI18n)

// export const defaultLang = 'en-US'
export const defaultLang = 'zh-CN'

const messages = {
  // 'en-US': {
  //   ...enUS
  // }
  'zh-CN': {
    ...zhCN
  }
}

Step2. src\core\bootstrap.js文件,修改初始化的语言

// store.dispatch('setLang', storage.get(APP_LANGUAGE, 'en-US'))
  store.dispatch('setLang', storage.get(APP_LANGUAGE, 'zh-CN'))

Step3.src\store\modules\app.js文件,修改app对象里state中的lang属性

const app = {
  state: {
    // ...
    // lang: 'en-US',
    lang: 'zh-CN',
  },
  // ...
} 

九、添加新页面

  1. /src/views/中添加setup/checker.vue
  2. router.config.js中添加菜单
 {
        path: '/setup',
        name: 'setup',
        redirect: '/setup/checker',
        component: RouteView,
        meta: { title: '设置', keepAlive: true, icon: 'table', permission: ['dashboard'] },
        children: [
          {
            path: '/setup/checker',
            name: 'checker',
            component: () => import('@/views/setup/checker'),
            meta: { title: '检查人员', keepAlive: false, permission: ['dashboard'] }
          }]
      },

十、服务器端发布(小皮面板)

动静分离,前端与后端各建一个站点,后端只限本机访问,用代理完成对接

1、编译

yarn run build

编译后的目标文件在dist目录中,复制到服务器上

2.静态内容发布

服务器上建立站点,本例用apache作WEB服务,因为启用的是vue的histroy模式,所以要做一个URL重写,防止刷新非index页时出现404,APACHE伪静态设置规则如下

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>

3. API站点配置

将thinkphp站点复制到服力器上,建立相应站点,端口用8003,不要绑定域名
thinkphp自带APACHE的URL重写文件public/.htaccess,

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

如果有不重写的目录,用下面的语句屏蔽:

RewriteCond $1 !^(static|madmin)

4. API的反向代理设置

参考:https://www.xinyueseo.com/linux/325.html
在apahce的httpd.conf中分别找到下面2行内容,把它们前面的‘#’去掉,然后保存。

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so 

在静态站点的vhost.conf配置文件中加入URL重写规则,将所的/api/xxxx转发至动态站点127.0.0.1:8003

  ProxyPassMatch ^/api\/.*$ http://127.0.0.1:8003
  ProxyPassReverse ^/api\/.*$ http://127.0.0.1:8003

最后的结果如下

<VirtualHost *:80>
    DocumentRoot "D:/WEBROOT/antd"
    ServerName ant.mydomain.com
    ServerAlias 
  <Directory "D:/WEBROOT/antd">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
	  DirectoryIndex index.php index.html error/index.html
  </Directory>
  ProxyPassMatch ^/api\/.*$ http://127.0.0.1:8003
  ProxyPassReverse ^/api\/.*$ http://127.0.0.1:8003
  .....

这样应该可以跑起来了

2、用express做WEB服务,启用proxy

如果用EXPRESS做WEB静态站点服务,则main.js写如下:

var express = require('express')
var proxy = require('http-proxy-middleware')  //API代理
var history = require('connect-history-api-fallback') // 支持vue histroy模式
var app = express()
//下面三个use的顺序不要搞错
//api/全部重定向  如/api/auth     /api/user
app.use('/api', proxy({ target: ''http://127.0.0.1:8003', changeOrigin: true }))
// 支持vue histroy模式,将不含点的路径全重写至/↓↓↓
app.use(history({ verbose: true, index: '/' })) 
//所有没被重写的路径从当前目录读静态文件↓↓↓
app.use('/', express.static('.'))
app.listen(80)

3、用NGIX做WEB服务,启用反向代理,不再赘述








接口数据格式

login.json

{
  "message": "",
  "timestamp": 1653580080736,
  "result": {
    "id": "214Bde6C-bA99-bFB6-105E-24B91d8c9D3e",
    "name": "Timothy White",
    "username": "admin",
    "password": "",
    "avatar": "https://gw.alipayobjects.com/zos/rmsportal/jZUIxmJycoymBprLOUbT.png",
    "status": 1,
    "telephone": "",
    "lastLoginIp": "27.154.74.117",
    "lastLoginTime": 1534837621348,
    "creatorId": "admin",
    "createTime": 1497160610259,
    "deleted": 0,
    "roleId": "admin",
    "lang": "zh-CN",
    "token": "4291d7da9005377ec9aec4a71ea837f"
  },
  "code": 200,
  "_headers": {
    "Custom-Header": "B81cCcc5-6FC5-cA4C-bba1-EEf3c887e7C6"
  }
}

info.json(用户权限)

{
  "message": "",
  "timestamp": 1653580081543,
  "result": {
    "id": "4291d7da9005377ec9aec4a71ea837f",
    "name": "天野远子",
    "username": "admin",
    "password": "",
    "avatar": "/avatar2.jpg",
    "status": 1,
    "telephone": "",
    "lastLoginIp": "27.154.74.117",
    "lastLoginTime": 1534837621348,
    "creatorId": "admin",
    "createTime": 1497160610259,
    "merchantCode": "TLif2btpzg079h15bk",
    "deleted": 0,
    "roleId": "admin",
    "role": {
      "id": "admin",
      "name": "管理员",
      "describe": "拥有所有权限",
      "status": 1,
      "creatorId": "system",
      "createTime": 1497160610259,
      "deleted": 0,
      "permissions": [
        {
          "roleId": "admin",
          "permissionId": "dashboard",
          "permissionName": "仪表盘",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "query",
              "describe": "查询",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "query",
            "get",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "exception",
          "permissionName": "异常页面权限",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "query",
              "describe": "查询",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "query",
            "get",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "result",
          "permissionName": "结果权限",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "query",
              "describe": "查询",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "query",
            "get",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "profile",
          "permissionName": "详细页权限",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "query",
              "describe": "查询",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "query",
            "get",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "table",
          "permissionName": "表格权限",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"import\",\"defaultCheck\":false,\"describe\":\"导入\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "import",
              "describe": "导入",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "import",
            "get",
            "update"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "form",
          "permissionName": "表单权限",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "query",
              "describe": "查询",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "get",
            "query",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "order",
          "permissionName": "订单管理",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "query",
              "describe": "查询",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "query",
            "get",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "permission",
          "permissionName": "权限管理",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "get",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "role",
          "permissionName": "角色管理",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "get",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "table",
          "permissionName": "桌子管理",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "query",
              "describe": "查询",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "get",
            "query",
            "update",
            "delete"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "user",
          "permissionName": "用户管理",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"import\",\"defaultCheck\":false,\"describe\":\"导入\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"},{\"action\":\"export\",\"defaultCheck\":false,\"describe\":\"导出\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "import",
              "describe": "导入",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            },
            {
              "action": "export",
              "describe": "导出",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "import",
            "get",
            "update",
            "delete",
            "export"
          ],
          "dataAccess": null
        },
        {
          "roleId": "admin",
          "permissionId": "support",
          "permissionName": "超级模块",
          "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"import\",\"defaultCheck\":false,\"describe\":\"导入\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"update\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"},{\"action\":\"export\",\"defaultCheck\":false,\"describe\":\"导出\"}]",
          "actionEntitySet": [
            {
              "action": "add",
              "describe": "新增",
              "defaultCheck": false
            },
            {
              "action": "import",
              "describe": "导入",
              "defaultCheck": false
            },
            {
              "action": "get",
              "describe": "详情",
              "defaultCheck": false
            },
            {
              "action": "update",
              "describe": "修改",
              "defaultCheck": false
            },
            {
              "action": "delete",
              "describe": "删除",
              "defaultCheck": false
            },
            {
              "action": "export",
              "describe": "导出",
              "defaultCheck": false
            }
          ],
          "actionList": [
            "add",
            "import",
            "get",
            "update",
            "delete",
            "export"
          ],
          "dataAccess": null
        }
      ],
      "permissionList": [
        "dashboard",
        "exception",
        "result",
        "profile",
        "table",
        "form",
        "order",
        "permission",
        "role",
        "table",
        "user",
        "support"
      ]
    }
  },
  "code": 200,
  "_headers": {
    "Custom-Header": "B81cCcc5-6FC5-cA4C-bba1-EEf3c887e7C6"
  }
}

nav.json(动态菜单)

{
  "message": "",
  "timestamp": 1653578631617,
  "result": [
    {
      "name": "dashboard",
      "parentId": 0,
      "id": 1,
      "meta": {
        "icon": "dashboard",
        "title": "仪表盘",
        "show": true
      },
      "component": "RouteView",
      "redirect": "/dashboard/workplace"
    },
    {
      "name": "workplace",
      "parentId": 1,
      "id": 7,
      "meta": {
        "title": "工作台",
        "show": true
      },
      "component": "Workplace"
    },
    {
      "name": "monitor",
      "path": "https://www.baidu.com/",
      "parentId": 1,
      "id": 3,
      "meta": {
        "title": "监控页(外部)",
        "target": "_blank",
        "show": true
      }
    },
    {
      "name": "Analysis",
      "parentId": 1,
      "id": 2,
      "meta": {
        "title": "分析页",
        "show": true
      },
      "component": "Analysis",
      "path": "/dashboard/analysis"
    },
    {
      "name": "form",
      "parentId": 0,
      "id": 10,
      "meta": {
        "icon": "form",
        "title": "表单页"
      },
      "redirect": "/form/base-form",
      "component": "RouteView"
    },
    {
      "name": "basic-form",
      "parentId": 10,
      "id": 6,
      "meta": {
        "title": "基础表单"
      },
      "component": "BasicForm"
    },
    {
      "name": "step-form",
      "parentId": 10,
      "id": 5,
      "meta": {
        "title": "分步表单"
      },
      "component": "StepForm"
    },
    {
      "name": "advanced-form",
      "parentId": 10,
      "id": 4,
      "meta": {
        "title": "高级表单"
      },
      "component": "AdvanceForm"
    },
    {
      "name": "list",
      "parentId": 0,
      "id": 10010,
      "meta": {
        "icon": "table",
        "title": "列表页",
        "show": true
      },
      "redirect": "/list/table-list",
      "component": "RouteView"
    },
    {
      "name": "table-list",
      "parentId": 10010,
      "id": 10011,
      "path": "/list/table-list/:pageNo([1-9]\\d*)?",
      "meta": {
        "title": "查询表格",
        "show": true
      },
      "component": "TableList"
    },
    {
      "name": "basic-list",
      "parentId": 10010,
      "id": 10012,
      "meta": {
        "title": "标准列表",
        "show": true
      },
      "component": "StandardList"
    },
    {
      "name": "card",
      "parentId": 10010,
      "id": 10013,
      "meta": {
        "title": "卡片列表",
        "show": true
      },
      "component": "CardList"
    },
    {
      "name": "search",
      "parentId": 10010,
      "id": 10014,
      "meta": {
        "title": "搜索列表",
        "show": true
      },
      "redirect": "/list/search/article",
      "component": "SearchLayout"
    },
    {
      "name": "article",
      "parentId": 10014,
      "id": 10015,
      "meta": {
        "title": "搜索列表(文章)",
        "show": true
      },
      "component": "SearchArticles"
    },
    {
      "name": "project",
      "parentId": 10014,
      "id": 10016,
      "meta": {
        "title": "搜索列表(项目)",
        "show": true
      },
      "component": "SearchProjects"
    },
    {
      "name": "application",
      "parentId": 10014,
      "id": 10017,
      "meta": {
        "title": "搜索列表(应用)",
        "show": true
      },
      "component": "SearchApplications"
    },
    {
      "name": "profile",
      "parentId": 0,
      "id": 10018,
      "meta": {
        "title": "详情页",
        "icon": "profile",
        "show": true
      },
      "redirect": "/profile/basic",
      "component": "RouteView"
    },
    {
      "name": "basic",
      "parentId": 10018,
      "id": 10019,
      "meta": {
        "title": "基础详情页",
        "show": true
      },
      "component": "ProfileBasic"
    },
    {
      "name": "advanced",
      "parentId": 10018,
      "id": 10020,
      "meta": {
        "title": "高级详情页",
        "show": true
      },
      "component": "ProfileAdvanced"
    },
    {
      "name": "result",
      "parentId": 0,
      "id": 10021,
      "meta": {
        "title": "结果页",
        "icon": "check-circle-o",
        "show": true
      },
      "redirect": "/result/success",
      "component": "PageView"
    },
    {
      "name": "success",
      "parentId": 10021,
      "id": 10022,
      "meta": {
        "title": "成功",
        "hiddenHeaderContent": true,
        "show": true
      },
      "component": "ResultSuccess"
    },
    {
      "name": "fail",
      "parentId": 10021,
      "id": 10023,
      "meta": {
        "title": "失败",
        "hiddenHeaderContent": true,
        "show": true
      },
      "component": "ResultFail"
    },
    {
      "name": "exception",
      "parentId": 0,
      "id": 10024,
      "meta": {
        "title": "异常页",
        "icon": "warning",
        "show": true
      },
      "redirect": "/exception/403",
      "component": "RouteView"
    },
    {
      "name": "403",
      "parentId": 10024,
      "id": 10025,
      "meta": {
        "title": "403",
        "show": true
      },
      "component": "Exception403"
    },
    {
      "name": "404",
      "parentId": 10024,
      "id": 10026,
      "meta": {
        "title": "404",
        "show": true
      },
      "component": "Exception404"
    },
    {
      "name": "500",
      "parentId": 10024,
      "id": 10027,
      "meta": {
        "title": "500",
        "show": true
      },
      "component": "Exception500"
    },
    {
      "name": "account",
      "parentId": 0,
      "id": 10028,
      "meta": {
        "title": "个人页",
        "icon": "user",
        "show": true
      },
      "redirect": "/account/center",
      "component": "RouteView"
    },
    {
      "name": "center",
      "parentId": 10028,
      "id": 10029,
      "meta": {
        "title": "个人中心",
        "show": true
      },
      "component": "AccountCenter"
    },
    {
      "name": "settings",
      "parentId": 10028,
      "id": 10030,
      "meta": {
        "title": "个人设置",
        "hideHeader": true,
        "hideChildren": true,
        "show": true
      },
      "redirect": "/account/settings/basic",
      "component": "AccountSettings"
    },
    {
      "name": "BasicSettings",
      "path": "/account/settings/basic",
      "parentId": 10030,
      "id": 10031,
      "meta": {
        "title": "基本设置",
        "show": false
      },
      "component": "BasicSetting"
    },
    {
      "name": "SecuritySettings",
      "path": "/account/settings/security",
      "parentId": 10030,
      "id": 10032,
      "meta": {
        "title": "安全设置",
        "show": false
      },
      "component": "SecuritySettings"
    },
    {
      "name": "CustomSettings",
      "path": "/account/settings/custom",
      "parentId": 10030,
      "id": 10033,
      "meta": {
        "title": "个性化设置",
        "show": false
      },
      "component": "CustomSettings"
    },
    {
      "name": "BindingSettings",
      "path": "/account/settings/binding",
      "parentId": 10030,
      "id": 10034,
      "meta": {
        "title": "账户绑定",
        "show": false
      },
      "component": "BindingSettings"
    },
    {
      "name": "NotificationSettings",
      "path": "/account/settings/notification",
      "parentId": 10030,
      "id": 10034,
      "meta": {
        "title": "新消息通知",
        "show": false
      },
      "component": "NotificationSettings"
    }
  ],
  "code": 200,
  "_headers": {
    "Custom-Header": "AB187D4D-A4e1-Fd1D-CAb2-BEb4FB5FfaD6"
  }
}

orgtree.json(辅助数据)

{
  "message": "",
  "timestamp": 1653587703211,
  "result": [
    {
      "key": "key-01",
      "title": "研发中心",
      "icon": "mail",
      "children": [
        {
          "key": "key-01-01",
          "title": "后端组",
          "icon": null,
          "group": true,
          "children": [
            {
              "key": "key-01-01-01",
              "title": "JAVA",
              "icon": null
            },
            {
              "key": "key-01-01-02",
              "title": "PHP",
              "icon": null
            },
            {
              "key": "key-01-01-03",
              "title": "Golang",
              "icon": null
            }
          ]
        },
        {
          "key": "key-01-02",
          "title": "前端组",
          "icon": null,
          "group": true,
          "children": [
            {
              "key": "key-01-02-01",
              "title": "React",
              "icon": null
            },
            {
              "key": "key-01-02-02",
              "title": "Vue",
              "icon": null
            },
            {
              "key": "key-01-02-03",
              "title": "Angular",
              "icon": null
            }
          ]
        }
      ]
    },
    {
      "key": "key-02",
      "title": "财务部",
      "icon": "dollar",
      "children": [
        {
          "key": "key-02-01",
          "title": "会计核算",
          "icon": null
        },
        {
          "key": "key-02-02",
          "title": "成本控制",
          "icon": null
        },
        {
          "key": "key-02-03",
          "title": "内部控制",
          "icon": null,
          "children": [
            {
              "key": "key-02-03-01",
              "title": "财务制度建设",
              "icon": null
            },
            {
              "key": "key-02-03-02",
              "title": "会计核算",
              "icon": null
            }
          ]
        }
      ]
    }
  ],
  "code": 0
}

service.json(示例表格加载数据)

{
  "message": "",
  "timestamp": 1653587077762,
  "result": {
    "pageSize": 10,
    "pageNo": 1,
    "totalCount": 5701,
    "totalPage": 571,
    "data": [
      {
        "key": 1,
        "id": 1,
        "no": "No 1",
        "description": "这是一段描述",
        "callNo": 533,
        "status": 1,
        "updatedAt": "2010-10-10 12:03:47",
        "editable": false
      },
      {
        "key": 2,
        "id": 2,
        "no": "No 2",
        "description": "这是一段描述",
        "callNo": 235,
        "status": 1,
        "updatedAt": "1997-08-18 10:36:17",
        "editable": false
      },
      {
        "key": 3,
        "id": 3,
        "no": "No 3",
        "description": "这是一段描述",
        "callNo": 154,
        "status": 2,
        "updatedAt": "2019-09-05 21:04:05",
        "editable": false
      },
      {
        "key": 4,
        "id": 4,
        "no": "No 4",
        "description": "这是一段描述",
        "callNo": 953,
        "status": 1,
        "updatedAt": "2013-09-08 03:31:35",
        "editable": false
      },
      {
        "key": 5,
        "id": 5,
        "no": "No 5",
        "description": "这是一段描述",
        "callNo": 335,
        "status": 2,
        "updatedAt": "1995-06-19 21:53:39",
        "editable": false
      },
      {
        "key": 6,
        "id": 6,
        "no": "No 6",
        "description": "这是一段描述",
        "callNo": 254,
        "status": 1,
        "updatedAt": "2011-09-12 01:54:04",
        "editable": false
      },
      {
        "key": 7,
        "id": 7,
        "no": "No 7",
        "description": "这是一段描述",
        "callNo": 604,
        "status": 1,
        "updatedAt": "1989-07-26 16:26:42",
        "editable": false
      },
      {
        "key": 8,
        "id": 8,
        "no": "No 8",
        "description": "这是一段描述",
        "callNo": 621,
        "status": 3,
        "updatedAt": "2011-01-30 18:48:03",
        "editable": false
      },
      {
        "key": 9,
        "id": 9,
        "no": "No 9",
        "description": "这是一段描述",
        "callNo": 424,
        "status": 0,
        "updatedAt": "1976-05-13 12:33:23",
        "editable": false
      },
      {
        "key": 10,
        "id": 10,
        "no": "No 10",
        "description": "这是一段描述",
        "callNo": 800,
        "status": 1,
        "updatedAt": "1997-05-28 18:47:13",
        "editable": false
      }
    ]
  },
  "code": 200,
  "_headers": {
    "Custom-Header": "8Cdd911C-AE6d-E5cA-C171-FcC42BfcD63d"
  }
}

role.json(用户角色数据)

{
  "message": "",
  "timestamp": 1653586759302,
  "result": {
    "data": [
      {
        "id": "admin",
        "name": "管理员",
        "describe": "拥有所有权限",
        "status": 1,
        "creatorId": "system",
        "createTime": 1497160610259,
        "deleted": 0,
        "permissions": [
          {
            "roleId": "admin",
            "permissionId": "comment",
            "permissionName": "评论管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "delete",
              "edit"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "member",
            "permissionName": "会员管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "query",
              "get",
              "edit",
              "delete"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "menu",
            "permissionName": "菜单管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"import\",\"defaultCheck\":false,\"describe\":\"导入\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "import",
                "describe": "导入",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "import"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "order",
            "permissionName": "订单管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "query",
              "add",
              "get"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "permission",
            "permissionName": "权限管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "get",
              "edit",
              "delete"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "role",
            "permissionName": "角色管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              }
            ],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "test",
            "permissionName": "测试权限",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "user",
            "permissionName": "用户管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"import\",\"defaultCheck\":false,\"describe\":\"导入\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"},{\"action\":\"export\",\"defaultCheck\":false,\"describe\":\"导出\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "import",
                "describe": "导入",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              },
              {
                "action": "export",
                "describe": "导出",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "get"
            ],
            "dataAccess": null
          }
        ]
      },
      {
        "id": "svip",
        "name": "SVIP",
        "describe": "超级会员",
        "status": 1,
        "creatorId": "system",
        "createTime": 1532417744846,
        "deleted": 0,
        "permissions": [
          {
            "roleId": "admin",
            "permissionId": "comment",
            "permissionName": "评论管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "get",
              "delete"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "member",
            "permissionName": "会员管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "query",
              "get"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "menu",
            "permissionName": "菜单管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"import\",\"defaultCheck\":false,\"describe\":\"导入\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "import",
                "describe": "导入",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "get"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "order",
            "permissionName": "订单管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "query"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "permission",
            "permissionName": "权限管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add",
              "get",
              "edit"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "role",
            "permissionName": "角色管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              },
              {
                "action": "delete",
                "describe": "删除",
                "defaultCheck": false
              }
            ],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "test",
            "permissionName": "测试权限",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": [
              "add",
              "edit"
            ],
            "dataAccess": null
          },
          {
            "roleId": "admin",
            "permissionId": "user",
            "permissionName": "用户管理",
            "actions": "[{\"action\":\"add\",\"defaultCheck\":false,\"describe\":\"新增\"},{\"action\":\"import\",\"defaultCheck\":false,\"describe\":\"导入\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"},{\"action\":\"edit\",\"defaultCheck\":false,\"describe\":\"修改\"},{\"action\":\"delete\",\"defaultCheck\":false,\"describe\":\"删除\"},{\"action\":\"export\",\"defaultCheck\":false,\"describe\":\"导出\"}]",
            "actionEntitySet": [
              {
                "action": "add",
                "describe": "新增",
                "defaultCheck": false
              },
              {
                "action": "import",
                "describe": "导入",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              },
              {
                "action": "edit",
                "describe": "修改",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "add"
            ],
            "dataAccess": null
          }
        ]
      },
      {
        "id": "user",
        "name": "普通会员",
        "describe": "普通用户,只能查询",
        "status": 1,
        "creatorId": "system",
        "createTime": 1497160610259,
        "deleted": 0,
        "permissions": [
          {
            "roleId": "user",
            "permissionId": "comment",
            "permissionName": "评论管理",
            "actions": "[{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"}]",
            "actionEntitySet": [
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              }
            ],
            "actionList": [
              "query"
            ],
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "marketing",
            "permissionName": "营销管理",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "member",
            "permissionName": "会员管理",
            "actions": "[{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"}]",
            "actionEntitySet": [
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              }
            ],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "menu",
            "permissionName": "菜单管理",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "order",
            "permissionName": "订单管理",
            "actions": "[{\"action\":\"query\",\"defaultCheck\":false,\"describe\":\"查询\"},{\"action\":\"get\",\"defaultCheck\":false,\"describe\":\"详情\"}]",
            "actionEntitySet": [
              {
                "action": "query",
                "describe": "查询",
                "defaultCheck": false
              },
              {
                "action": "get",
                "describe": "详情",
                "defaultCheck": false
              }
            ],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "permission",
            "permissionName": "权限管理",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "role",
            "permissionName": "角色管理",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "test",
            "permissionName": "测试权限",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": null,
            "dataAccess": null
          },
          {
            "roleId": "user",
            "permissionId": "user",
            "permissionName": "用户管理",
            "actions": "[]",
            "actionEntitySet": [],
            "actionList": null,
            "dataAccess": null
          }
        ]
      }
    ],
    "pageSize": 10,
    "pageNo": 0,
    "totalPage": 1,
    "totalCount": 5
  },
  "code": 200,
  "_headers": {
    "Custom-Header": "8Cdd911C-AE6d-E5cA-C171-FcC42BfcD63d"
  }
}

users.json以及permission.json未导出,请自己行mock

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值