初始化代码

This commit is contained in:
2025-12-22 14:32:54 +08:00
parent e27ab90d9f
commit d02b31a8b9
1459 changed files with 240973 additions and 0 deletions

View File

@@ -0,0 +1,615 @@
<?php
/**
* Created by PhpStorm.
* User: shuixian
* Date: 2019/11/20
* Time: 18:29
*/
$menu = <<<MENU
[{
"path": "vip/list",
"name": "VipList",
"component": "/application/vip/list",
"meta": {
"keepAlive": true,
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"url": "/app/vip/list",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipApply",
"index": 1,
"url": "/app/vip/apply",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipLevel",
"index": 2,
"url": "/app/vip/level",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRight",
"index": 3,
"url": "/app/vip/right",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipSet",
"index": 4,
"url": "/app/vip/set",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipStoredSet",
"index": 5,
"url": "/app/vip/stored",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRecord",
"index": 6,
"url": "/app/vip/record",
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/apply",
"name": "VipApply",
"component": "/application/vip/apply",
"meta": {
"keepAlive": true,
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"url": "/app/vip/list",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipApply",
"index": 1,
"url": "/app/vip/apply",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipLevel",
"index": 2,
"url": "/app/vip/level",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRight",
"index": 3,
"url": "/app/vip/right",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipSet",
"index": 4,
"url": "/app/vip/set",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipStoredSet",
"index": 5,
"url": "/app/vip/stored",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRecord",
"index": 6,
"url": "/app/vip/record",
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/level",
"name": "VipLevel",
"component": "/application/vip/level",
"meta": {
"keepAlive": true,
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"url": "/app/vip/list",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipApply",
"index": 1,
"url": "/app/vip/apply",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipLevel",
"index": 2,
"url": "/app/vip/level",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRight",
"index": 3,
"url": "/app/vip/right",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipSet",
"index": 4,
"url": "/app/vip/set",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipStoredSet",
"index": 5,
"url": "/app/vip/stored",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRecord",
"index": 6,
"url": "/app/vip/record",
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/right",
"name": "VipRight",
"component": "/application/vip/right",
"meta": {
"keepAlive": true,
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"url": "/app/vip/list",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipApply",
"index": 1,
"url": "/app/vip/apply",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipLevel",
"index": 2,
"url": "/app/vip/level",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRight",
"index": 3,
"url": "/app/vip/right",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipSet",
"index": 4,
"url": "/app/vip/set",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipStoredSet",
"index": 5,
"url": "/app/vip/stored",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRecord",
"index": 6,
"url": "/app/vip/record",
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/set",
"name": "VipSet",
"component": "/application/vip/set",
"meta": {
"keepAlive": true,
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"url": "/app/vip/list",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipApply",
"index": 1,
"url": "/app/vip/apply",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipLevel",
"index": 2,
"url": "/app/vip/level",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRight",
"index": 3,
"url": "/app/vip/right",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipSet",
"index": 4,
"url": "/app/vip/set",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipStoredSet",
"index": 5,
"url": "/app/vip/stored",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRecord",
"index": 6,
"url": "/app/vip/record",
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/stored",
"name": "VipStoredSet",
"component": "/application/vip/stored",
"meta": {
"keepAlive": true,
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"url": "/app/vip/list",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipApply",
"index": 1,
"url": "/app/vip/apply",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipLevel",
"index": 2,
"url": "/app/vip/level",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRight",
"index": 3,
"url": "/app/vip/right",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipSet",
"index": 4,
"url": "/app/vip/set",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipStoredSet",
"index": 5,
"url": "/app/vip/stored",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRecord",
"index": 6,
"url": "/app/vip/record",
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/record",
"name": "VipRecord",
"component": "/application/vip/record",
"meta": {
"keepAlive": true,
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"url": "/app/vip/list",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipApply",
"index": 1,
"url": "/app/vip/apply",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipLevel",
"index": 2,
"url": "/app/vip/level",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRight",
"index": 3,
"url": "/app/vip/right",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipSet",
"index": 4,
"url": "/app/vip/set",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipStoredSet",
"index": 5,
"url": "/app/vip/stored",
"auth": ["view", "add", "edit", "del", "outport"]
}, {
"title": "VipRecord",
"index": 6,
"url": "/app/vip/record",
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/detail",
"name": "VipDetail",
"component": "/application/vip/detail",
"meta": {
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipDetail",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/edit",
"name": "VipLevelEdit",
"component": "/application/vip/edit",
"meta": {
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipLevelEdit",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/editRight",
"name": "VipRightEdit",
"component": "/application/vip/editRight",
"meta": {
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipRightEdit",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "vip/editStored",
"name": "VipStoredEdit",
"component": "/application/vip/editStored",
"meta": {
"title": "AppManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipStoredEdit",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}]
MENU;
$menus = <<<MENU
{
"path": "/vip",
"component": "Layout",
"redirect": "/vip/list",
"meta": {
"menuName": "Vip",
"icon": "iconMember",
"subNavName": [{
"name": "VipManage",
"url": [{
"name": "VipList",
"url": "/vip/list"
}, {
"name": "VipApply",
"url": "/vip/apply"
}]
}, {
"name": "VipRecord",
"url": [{
"name": "VipRecord",
"url": "/vip/record"
}]
}, {
"name": "VipSet",
"url": [{
"name": "VipLevel",
"url": "/vip/level"
}, {
"name": "VipRight",
"url": "/vip/right"
}, {
"name": "VipSet",
"url": "/vip/set"
}, {
"name": "VipStoredSet",
"url": "/vip/stored"
}]
}]
},
"children": [{
"path": "list",
"name": "VipManage",
"component": "/application/vip/list",
"meta": {
"keepAlive": true,
"refresh": false,
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipList",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "apply",
"name": "VipManage",
"component": "/application/vip/apply",
"meta": {
"keepAlive": true,
"refresh": false,
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipApply",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "record",
"name": "VipManage",
"component": "/application/vip/record",
"meta": {
"keepAlive": true,
"refresh": false,
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipRecord",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "level",
"name": "VipManage",
"component": "/application/vip/level",
"meta": {
"keepAlive": true,
"refresh": false,
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipLevel",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "right",
"name": "VipManage",
"component": "/application/vip/right",
"meta": {
"keepAlive": true,
"refresh": false,
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipRight",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "set",
"name": "VipManage",
"component": "/application/vip/set",
"meta": {
"keepAlive": true,
"refresh": false,
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipSet",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "stored",
"name": "VipManage",
"component": "/application/vip/stored",
"meta": {
"keepAlive": true,
"refresh": false,
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipStoredSet",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "detail",
"name": "VipManage",
"component": "/application/vip/detail",
"meta": {
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipDetail",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "edit",
"name": "VipManage",
"component": "/application/vip/edit",
"meta": {
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipLevelEdit",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "editRight",
"name": "VipManage",
"component": "/application/vip/editRight",
"meta": {
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipRightEdit",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}, {
"path": "editStored",
"name": "VipManage",
"component": "/application/vip/editStored",
"meta": {
"title": "VipManage",
"isOnly": false,
"auth": [],
"pagePermission": [{
"title": "VipStoredEdit",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"]
}]
}
}]
}
MENU;
$app_name = config('app.AdminModelList')['app_model_name'];
$menu = $app_name=='longbing_member'?$menus:$menu;
return ["member" => $menu];