zhontai 2 роки тому
батько
коміт
baac408ab9

+ 49 - 0
src/hosts/ZhonTai.Host/InitData/Admin/ad_api.json

@@ -1452,5 +1452,54 @@
         "childs": []
       }
     ]
+  },
+  {
+    "id": 371292589752389,
+    "label": "文件服务",
+    "path": "file",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 371292589764677,
+        "parentId": 371292589752389,
+        "label": "查询文件列表",
+        "path": "/api/admin/file/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 371678435708997,
+        "parentId": 371292589752389,
+        "label": "上传文件",
+        "path": "/api/admin/file/upload-file",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 371678435725381,
+        "parentId": 371292589752389,
+        "label": "上传多文件",
+        "path": "/api/admin/file/upload-files",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 372031353708613,
+        "parentId": 371292589752389,
+        "label": "删除文件",
+        "path": "/api/admin/file/delete",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
   }
 ]

+ 65 - 1
src/hosts/ZhonTai.Host/InitData/Admin/ad_permission.json

@@ -865,13 +865,13 @@
             "name": "admin/doc",
             "path": "/platform/system/document",
             "icon": "iconfont icon-gongju",
+            "hidden": true,
             "opened": true,
             "external": true,
             "isKeepAlive": true,
             "sort": 6,
             "description": "",
             "enabled": true,
-            "hidden": true,
             "childs": [
               {
                 "id": 161227168800838,
@@ -1220,6 +1220,70 @@
                 "childs": []
               }
             ]
+          },
+          {
+            "id": 371247914160197,
+            "parentId": 161227168763974,
+            "label": "文件管理",
+            "type": 2,
+            "viewId": 371247502852165,
+            "name": "admin/file",
+            "path": "/platform/system/file",
+            "icon": "ele-Memo",
+            "opened": true,
+            "isKeepAlive": true,
+            "sort": 7,
+            "enabled": true,
+            "childs": [
+              {
+                "id": 372004430860357,
+                "parentId": 371247914160197,
+                "label": "查询",
+                "code": "api:admin:file:get-page",
+                "type": 3,
+                "opened": true,
+                "isKeepAlive": true,
+                "sort": 1,
+                "enabled": true,
+                "childs": []
+              },
+              {
+                "id": 372004589551685,
+                "parentId": 371247914160197,
+                "label": "上传文件",
+                "code": "api:admin:file:upload-file",
+                "type": 3,
+                "opened": true,
+                "isKeepAlive": true,
+                "sort": 2,
+                "enabled": true,
+                "childs": []
+              },
+              {
+                "id": 372005085261893,
+                "parentId": 371247914160197,
+                "label": "上传多文件",
+                "code": "api:admin:file:upload-files",
+                "type": 3,
+                "opened": true,
+                "isKeepAlive": true,
+                "sort": 3,
+                "enabled": true,
+                "childs": []
+              },
+              {
+                "id": 372031447494725,
+                "parentId": 371247914160197,
+                "label": "彻底删除",
+                "code": "api:admin:file:delete",
+                "type": 3,
+                "opened": true,
+                "isKeepAlive": true,
+                "sort": 4,
+                "enabled": true,
+                "childs": []
+              }
+            ]
           }
         ]
       },

+ 20 - 0
src/hosts/ZhonTai.Host/InitData/Admin/ad_permission_api.json

@@ -627,5 +627,25 @@
     "id": 360708999491653,
     "permissionId": 349749778899013,
     "apiId": 349749396619333
+  },
+  {
+    "id": 372004983631941,
+    "permissionId": 372004430860357,
+    "apiId": 371292589764677
+  },
+  {
+    "id": 372004966424645,
+    "permissionId": 372004589551685,
+    "apiId": 371678435708997
+  },
+  {
+    "id": 372005085294662,
+    "permissionId": 372005085261893,
+    "apiId": 371678435725381
+  },
+  {
+    "id": 372032506122309,
+    "permissionId": 372031447494725,
+    "apiId": 372031353708613
   }
 ]

+ 2 - 3
src/hosts/ZhonTai.Host/InitData/Admin/ad_user_org.json

@@ -1,8 +1,7 @@
 [
   {
-    "id": 340793613013061,
+    "id": 371677390377029,
     "userId": 161223411986501,
-    "orgId": 189097691009093,
-    "isManager": true
+    "orgId": 189097691009093
   }
 ]

+ 1 - 1
src/hosts/ZhonTai.Host/InitData/Admin/ad_user_role.json

@@ -1,6 +1,6 @@
 [
   {
-    "id": 340793613008965,
+    "id": 371677390233669,
     "userId": 161223411986501,
     "roleId": 161223412080709
   }

+ 65 - 55
src/hosts/ZhonTai.Host/InitData/Admin/ad_view.json

@@ -20,11 +20,51 @@
       {
         "id": 161227168432197,
         "parentId": 161227168313413,
-        "label": "系统配置",
+        "label": "系统管理",
         "cache": true,
         "sort": 3,
         "enabled": true,
         "childs": [
+          {
+            "id": 161227168440390,
+            "parentId": 161227168432197,
+            "name": "admin/api",
+            "label": "接口管理",
+            "path": "admin/api/index",
+            "cache": true,
+            "sort": 4,
+            "enabled": true
+          },
+          {
+            "id": 161227168444485,
+            "parentId": 161227168432197,
+            "name": "admin/view",
+            "label": "视图管理",
+            "path": "admin/view/index",
+            "cache": true,
+            "sort": 5,
+            "enabled": true
+          },
+          {
+            "id": 161227168448582,
+            "parentId": 161227168432197,
+            "name": "admin/cache",
+            "label": "缓存管理",
+            "path": "admin/cache/index",
+            "cache": true,
+            "sort": 3,
+            "enabled": true
+          },
+          {
+            "id": 161227168456774,
+            "parentId": 161227168432197,
+            "name": "admin/document",
+            "label": "文档管理",
+            "path": "admin/document/index",
+            "cache": true,
+            "sort": 7,
+            "enabled": true
+          },
           {
             "id": 187053736300613,
             "parentId": 161227168432197,
@@ -35,6 +75,27 @@
             "cache": true,
             "sort": 1,
             "enabled": true
+          },
+          {
+            "id": 336556164300869,
+            "parentId": 161227168432197,
+            "name": "admin/task",
+            "label": "任务调度",
+            "path": "admin/task/index",
+            "description": "",
+            "cache": true,
+            "sort": 2,
+            "enabled": true
+          },
+          {
+            "id": 371247502852165,
+            "parentId": 161227168432197,
+            "name": "admin/file",
+            "label": "文件管理",
+            "path": "admin/file/index",
+            "cache": true,
+            "sort": 6,
+            "enabled": true
           }
         ]
       },
@@ -80,26 +141,6 @@
             "sort": 2,
             "enabled": true
           },
-          {
-            "id": 161227168440390,
-            "parentId": 161227168436294,
-            "name": "admin/api",
-            "label": "接口管理",
-            "path": "admin/api/index",
-            "cache": true,
-            "sort": 5,
-            "enabled": true
-          },
-          {
-            "id": 161227168444485,
-            "parentId": 161227168436294,
-            "name": "admin/view",
-            "label": "视图管理",
-            "path": "admin/view/index",
-            "cache": true,
-            "sort": 4,
-            "enabled": true
-          },
           {
             "id": 161227168444486,
             "parentId": 161227168436294,
@@ -107,17 +148,7 @@
             "label": "权限管理",
             "path": "admin/permission/index",
             "cache": true,
-            "sort": 6,
-            "enabled": true
-          },
-          {
-            "id": 161227168448582,
-            "parentId": 161227168436294,
-            "name": "admin/cache",
-            "label": "缓存管理",
-            "path": "admin/cache/index",
-            "cache": true,
-            "sort": 8,
+            "sort": 4,
             "enabled": true
           },
           {
@@ -127,17 +158,7 @@
             "label": "租户管理",
             "path": "admin/tenant/index",
             "cache": true,
-            "sort": 7,
-            "enabled": true
-          },
-          {
-            "id": 161227168456774,
-            "parentId": 161227168436294,
-            "name": "admin/document",
-            "label": "文档管理",
-            "path": "admin/document/index",
-            "cache": true,
-            "sort": 10,
+            "sort": 5,
             "enabled": true
           },
           {
@@ -150,17 +171,6 @@
             "cache": true,
             "sort": 3,
             "enabled": true
-          },
-          {
-            "id": 336556164300869,
-            "parentId": 161227168436294,
-            "name": "admin/task",
-            "label": "任务管理",
-            "path": "admin/task/index",
-            "description": "",
-            "cache": true,
-            "sort": 9,
-            "enabled": true
           }
         ]
       },
@@ -202,7 +212,7 @@
     "name": "",
     "label": "布局管理",
     "cache": true,
-    "sort": 1,
+    "sort": 2,
     "enabled": true,
     "childs": [
       {