Răsfoiți Sursa

新增vue2数据支持

zhontai 2 ani în urmă
părinte
comite
588469dbbc
25 a modificat fișierele cu 2386 adăugiri și 15 ștergeri
  1. 2 0
      src/hosts/ZhonTai.Host/Configs/dbconfig.json
  2. 1426 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_api.json
  3. 20 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_dictionary.json
  4. 22 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_dictionary.tenant.json
  5. 9 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_dictionary_type.json
  6. 10 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_dictionary_type.tenant.json
  7. 10 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_org.json
  8. 11 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_org.tenant.json
  9. 0 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_permission.json
  10. 687 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_permission_api.json
  11. 44 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_role.json
  12. 50 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_role.tenant.json
  13. 1 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_role_permission.json
  14. 16 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_tenant.json
  15. 1 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_tenant_permission.json
  16. 12 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user.json
  17. 13 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user.tenant.json
  18. 7 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_org.json
  19. 7 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_role.json
  20. 6 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_staff.json
  21. 7 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_staff.tenant.json
  22. 0 0
      src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_view.json
  23. 5 0
      src/platform/ZhonTai.Admin/Core/Configs/DbConfig.cs
  24. 15 15
      src/platform/ZhonTai.Admin/Repositories/CustomSyncData.cs
  25. 5 0
      src/platform/ZhonTai.Admin/ZhonTai.Admin.xml

+ 2 - 0
src/hosts/ZhonTai.Host/Configs/dbconfig.json

@@ -28,6 +28,8 @@
   "syncStructure": true,
   //同步数据
   "syncData": true,
+  //同步数据地址
+  "SyncDataPath": "InitData/Admin/Vue2",
 
   //项目初始化不开启生成数据,发布生产环境前,如果开发环境有配置数据需要更新数据包,可以开启生成数据包,使用完记得关闭
   //开启生成数据前先关闭syncStructure syncData createDb

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

@@ -0,0 +1,1426 @@
+[
+  {
+    "id": 161227167658053,
+    "label": "接口服务",
+    "path": "api",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168079941,
+        "parentId": 161227167658053,
+        "label": "查询接口",
+        "path": "/api/admin/api/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168116805,
+        "parentId": 161227167658053,
+        "label": "查询列表",
+        "path": "/api/admin/api/get-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168116806,
+        "parentId": 161227167658053,
+        "label": "查询分页",
+        "path": "/api/admin/api/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168120901,
+        "parentId": 161227167658053,
+        "label": "添加",
+        "path": "/api/admin/api/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168120902,
+        "parentId": 161227167658053,
+        "label": "修改",
+        "path": "/api/admin/api/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168120903,
+        "parentId": 161227167658053,
+        "label": "删除",
+        "path": "/api/admin/api/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168124997,
+        "parentId": 161227167658053,
+        "label": "批量删除",
+        "path": "/api/admin/api/batch-soft-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168124998,
+        "parentId": 161227167658053,
+        "label": "同步",
+        "path": "/api/admin/api/sync",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651914309,
+        "parentId": 161227167658053,
+        "label": "彻底删除",
+        "path": "/api/admin/api/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167719493,
+    "label": "认证授权服务",
+    "path": "auth",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168129094,
+        "parentId": 161227167719493,
+        "label": "查询密钥",
+        "path": "/api/admin/auth/get-password-encrypt-key",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168133189,
+        "parentId": 161227167719493,
+        "label": "登录",
+        "path": "/api/admin/auth/login",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168133190,
+        "parentId": 161227167719493,
+        "label": "刷新Token",
+        "path": "/api/admin/auth/refresh",
+        "httpMethods": "get",
+        "description": "以旧换新",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651922501,
+        "parentId": 161227167719493,
+        "label": "查询用户信息",
+        "path": "/api/admin/auth/get-user-info",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651922502,
+        "parentId": 161227167719493,
+        "label": "获取验证数据",
+        "path": "/api/admin/auth/get-captcha",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651922503,
+        "parentId": 161227167719493,
+        "label": "检查验证数据",
+        "path": "/api/admin/auth/check-captcha",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167719494,
+    "label": "数据字典服务",
+    "path": "dictionary",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168137285,
+        "parentId": 161227167719494,
+        "label": "查询数据字典",
+        "path": "/api/admin/dictionary/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168137286,
+        "parentId": 161227167719494,
+        "label": "查询数据字典列表",
+        "path": "/api/admin/dictionary/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168137287,
+        "parentId": 161227167719494,
+        "label": "新增",
+        "path": "/api/admin/dictionary/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168141381,
+        "parentId": 161227167719494,
+        "label": "修改",
+        "path": "/api/admin/dictionary/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168141382,
+        "parentId": 161227167719494,
+        "label": "删除",
+        "path": "/api/admin/dictionary/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 184100551516229,
+        "parentId": 161227167719494,
+        "label": "批量删除",
+        "path": "/api/admin/dictionary/batch-soft-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651922504,
+        "parentId": 161227167719494,
+        "label": "彻底删除",
+        "path": "/api/admin/dictionary/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167719495,
+    "label": "权限服务",
+    "path": "permission",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168141383,
+        "parentId": 161227167719495,
+        "label": "查询权限列表",
+        "path": "/api/admin/permission/get-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168145477,
+        "parentId": 161227167719495,
+        "label": "查询分组",
+        "path": "/api/admin/permission/get-group",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168145478,
+        "parentId": 161227167719495,
+        "label": "查询菜单",
+        "path": "/api/admin/permission/get-menu",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168149573,
+        "parentId": 161227167719495,
+        "label": "查询接口",
+        "path": "/api/admin/permission/get-api",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168149574,
+        "parentId": 161227167719495,
+        "label": "查询角色权限-权限列表",
+        "path": "/api/admin/permission/get-permission-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168149575,
+        "parentId": 161227167719495,
+        "label": "查询角色权限列表",
+        "path": "/api/admin/permission/get-role-permission-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168153669,
+        "parentId": 161227167719495,
+        "label": "新增分组",
+        "path": "/api/admin/permission/add-group",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168153670,
+        "parentId": 161227167719495,
+        "label": "新增菜单",
+        "path": "/api/admin/permission/add-menu",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168153671,
+        "parentId": 161227167719495,
+        "label": "新增接口",
+        "path": "/api/admin/permission/add-api",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168157765,
+        "parentId": 161227167719495,
+        "label": "修改分组",
+        "path": "/api/admin/permission/update-group",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168157766,
+        "parentId": 161227167719495,
+        "label": "修改菜单",
+        "path": "/api/admin/permission/update-menu",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168161861,
+        "parentId": 161227167719495,
+        "label": "修改接口",
+        "path": "/api/admin/permission/update-api",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168161862,
+        "parentId": 161227167719495,
+        "label": "删除",
+        "path": "/api/admin/permission/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168165957,
+        "parentId": 161227167719495,
+        "label": "保存角色权限",
+        "path": "/api/admin/permission/assign",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168165958,
+        "parentId": 161227167719495,
+        "label": "查询权限点",
+        "path": "/api/admin/permission/get-dot",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168165959,
+        "parentId": 161227167719495,
+        "label": "新增权限点",
+        "path": "/api/admin/permission/add-dot",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168170053,
+        "parentId": 161227167719495,
+        "label": "修改权限点",
+        "path": "/api/admin/permission/update-dot",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 170317848645701,
+        "parentId": 161227167719495,
+        "label": "查询租户权限列表",
+        "path": "/api/admin/permission/get-tenant-permission-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 170317848662085,
+        "parentId": 161227167719495,
+        "label": "保存租户权限",
+        "path": "/api/admin/permission/save-tenant-permissions",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 187384805367877,
+        "parentId": 161227167719495,
+        "label": "彻底删除",
+        "path": "/api/admin/permission/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167719496,
+    "label": "角色服务",
+    "path": "role",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168170054,
+        "parentId": 161227167719496,
+        "label": "查询角色",
+        "path": "/api/admin/role/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168170055,
+        "parentId": 161227167719496,
+        "label": "查询角色列表",
+        "path": "/api/admin/role/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168174149,
+        "parentId": 161227167719496,
+        "label": "添加",
+        "path": "/api/admin/role/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168178245,
+        "parentId": 161227167719496,
+        "label": "修改",
+        "path": "/api/admin/role/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168178246,
+        "parentId": 161227167719496,
+        "label": "删除",
+        "path": "/api/admin/role/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168182341,
+        "parentId": 161227167719496,
+        "label": "批量删除",
+        "path": "/api/admin/role/batch-soft-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926604,
+        "parentId": 161227167719496,
+        "label": "彻底删除",
+        "path": "/api/admin/role/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241422917,
+        "parentId": 161227167719496,
+        "label": "查询角色列表",
+        "path": "/api/admin/role/get-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241422918,
+        "parentId": 161227167719496,
+        "label": "查询角色用户列表",
+        "path": "/api/admin/role/get-role-user-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241422919,
+        "parentId": 161227167719496,
+        "label": "新增角色用户",
+        "path": "/api/admin/role/add-role-user",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241422920,
+        "parentId": 161227167719496,
+        "label": "移除角色用户",
+        "path": "/api/admin/role/remove-role-user",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241422921,
+        "parentId": 161227167719496,
+        "label": "批量彻底删除",
+        "path": "/api/admin/role/batch-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167719497,
+    "label": "用户服务",
+    "path": "user",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168182342,
+        "parentId": 161227167719497,
+        "label": "查询用户基本信息",
+        "path": "/api/admin/user/get-basic",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168182343,
+        "parentId": 161227167719497,
+        "label": "查询用户",
+        "path": "/api/admin/user/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168186437,
+        "parentId": 161227167719497,
+        "label": "查询分页",
+        "path": "/api/admin/user/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168186438,
+        "parentId": 161227167719497,
+        "label": "新增用户",
+        "path": "/api/admin/user/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168190533,
+        "parentId": 161227167719497,
+        "label": "修改用户",
+        "path": "/api/admin/user/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168190534,
+        "parentId": 161227167719497,
+        "label": "删除用户",
+        "path": "/api/admin/user/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168190535,
+        "parentId": 161227167719497,
+        "label": "批量删除用户",
+        "path": "/api/admin/user/batch-soft-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168194629,
+        "parentId": 161227167719497,
+        "label": "修改用户密码",
+        "path": "/api/admin/user/change-password",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168194630,
+        "parentId": 161227167719497,
+        "label": "更新用户基本信息",
+        "path": "/api/admin/user/update-basic",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168194631,
+        "parentId": 161227167719497,
+        "label": "上传头像",
+        "path": "/api/admin/user/avatar-upload",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926606,
+        "parentId": 161227167719497,
+        "label": "查询用户权限信息",
+        "path": "/api/admin/user/get-permissions",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926607,
+        "parentId": 161227167719497,
+        "label": "彻底删除用户",
+        "path": "/api/admin/user/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241427019,
+        "parentId": 161227167719497,
+        "label": "批量彻底删除用户",
+        "path": "/api/admin/user/batch-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 349749396615237,
+        "parentId": 161227167719497,
+        "label": "重置密码",
+        "path": "/api/admin/user/reset-password",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 349749396619333,
+        "parentId": 161227167719497,
+        "label": "设置主管",
+        "path": "/api/admin/user/set-manager",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167719498,
+    "label": "视图服务",
+    "path": "view",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168198725,
+        "parentId": 161227167719498,
+        "label": "查询视图",
+        "path": "/api/admin/view/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168198726,
+        "parentId": 161227167719498,
+        "label": "查询列表",
+        "path": "/api/admin/view/get-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168202822,
+        "parentId": 161227167719498,
+        "label": "新增",
+        "path": "/api/admin/view/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168202823,
+        "parentId": 161227167719498,
+        "label": "修改",
+        "path": "/api/admin/view/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168206917,
+        "parentId": 161227167719498,
+        "label": "删除",
+        "path": "/api/admin/view/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168206918,
+        "parentId": 161227167719498,
+        "label": "批量删除",
+        "path": "/api/admin/view/batch-soft-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168206919,
+        "parentId": 161227167719498,
+        "label": "同步",
+        "path": "/api/admin/view/sync",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926608,
+        "parentId": 161227167719498,
+        "label": "彻底删除",
+        "path": "/api/admin/view/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167723589,
+    "label": "缓存服务",
+    "path": "cache",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168211013,
+        "parentId": 161227167723589,
+        "label": "查询列表",
+        "path": "/api/admin/cache/get-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168211014,
+        "parentId": 161227167723589,
+        "label": "清除缓存",
+        "path": "/api/admin/cache/clear",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167723590,
+    "label": "登录日志服务",
+    "path": "login-log",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168215109,
+        "parentId": 161227167723590,
+        "label": "查询登录日志列表",
+        "path": "/api/admin/login-log/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926601,
+        "parentId": 161227167723590,
+        "label": "新增",
+        "path": "/api/admin/login-log/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167723591,
+    "label": "操作日志服务",
+    "path": "opration-log",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168215110,
+        "parentId": 161227167723591,
+        "label": "查询操作日志列表",
+        "path": "/api/admin/opration-log/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926602,
+        "parentId": 161227167723591,
+        "label": "新增",
+        "path": "/api/admin/opration-log/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167723592,
+    "label": "文档服务",
+    "path": "document",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168215111,
+        "parentId": 161227167723592,
+        "label": "查询文档列表",
+        "path": "/api/admin/document/get-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168219205,
+        "parentId": 161227167723592,
+        "label": "查询分组",
+        "path": "/api/admin/document/get-group",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168219206,
+        "parentId": 161227167723592,
+        "label": "查询菜单",
+        "path": "/api/admin/document/get-menu",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168223301,
+        "parentId": 161227167723592,
+        "label": "查询精简文档列表",
+        "path": "/api/admin/document/get-plain-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168223302,
+        "parentId": 161227167723592,
+        "label": "新增分组",
+        "path": "/api/admin/document/add-group",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168227397,
+        "parentId": 161227167723592,
+        "label": "新增菜单",
+        "path": "/api/admin/document/add-menu",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168227398,
+        "parentId": 161227167723592,
+        "label": "修改分组",
+        "path": "/api/admin/document/update-group",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168231493,
+        "parentId": 161227167723592,
+        "label": "修改菜单",
+        "path": "/api/admin/document/update-menu",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168231494,
+        "parentId": 161227167723592,
+        "label": "删除文档",
+        "path": "/api/admin/document/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168235589,
+        "parentId": 161227167723592,
+        "label": "查询文档内容",
+        "path": "/api/admin/document/get-content",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168235590,
+        "parentId": 161227167723592,
+        "label": "修改文档内容",
+        "path": "/api/admin/document/update-content",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168235591,
+        "parentId": 161227167723592,
+        "label": "上传文档图片",
+        "path": "/api/admin/document/upload-image",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168239685,
+        "parentId": 161227167723592,
+        "label": "查询图片列表",
+        "path": "/api/admin/document/get-image-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168239686,
+        "parentId": 161227167723592,
+        "label": "彻底删除图片",
+        "path": "/api/admin/document/delete-image",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926599,
+        "parentId": 161227167723592,
+        "label": "新增图片",
+        "path": "/api/admin/document/add-image",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926600,
+        "parentId": 161227167723592,
+        "label": "彻底删除文档",
+        "path": "/api/admin/document/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 161227167723593,
+    "label": "租户服务",
+    "path": "tenant",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 161227168243781,
+        "parentId": 161227167723593,
+        "label": "查询租户",
+        "path": "/api/admin/tenant/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168243782,
+        "parentId": 161227167723593,
+        "label": "查询租户列表",
+        "path": "/api/admin/tenant/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168243783,
+        "parentId": 161227167723593,
+        "label": "新增",
+        "path": "/api/admin/tenant/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168247877,
+        "parentId": 161227167723593,
+        "label": "修改",
+        "path": "/api/admin/tenant/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168247878,
+        "parentId": 161227167723593,
+        "label": "删除",
+        "path": "/api/admin/tenant/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 161227168251973,
+        "parentId": 161227167723593,
+        "label": "批量删除",
+        "path": "/api/admin/tenant/batch-soft-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 163579785756741,
+        "parentId": 161227167723593,
+        "label": "彻底删除",
+        "path": "/api/admin/tenant/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 174219034718277,
+    "label": "部门服务",
+    "path": "org",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 174219034734672,
+        "parentId": 174219034718277,
+        "label": "查询部门",
+        "path": "/api/admin/org/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 174219034734674,
+        "parentId": 174219034718277,
+        "label": "新增",
+        "path": "/api/admin/org/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 174219034738757,
+        "parentId": 174219034718277,
+        "label": "修改",
+        "path": "/api/admin/org/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 174219034738758,
+        "parentId": 174219034718277,
+        "label": "删除",
+        "path": "/api/admin/org/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 188049296683077,
+        "parentId": 174219034718277,
+        "label": "查询列表",
+        "path": "/api/admin/org/get-list",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 342274923528261,
+        "parentId": 174219034718277,
+        "label": "彻底删除",
+        "path": "/api/admin/org/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 174219034718279,
+    "label": "字典类型服务",
+    "path": "dictionary-type",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 174219034734661,
+        "parentId": 174219034718279,
+        "label": "查询字典类型",
+        "path": "/api/admin/dictionary-type/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 174219034734662,
+        "parentId": 174219034718279,
+        "label": "查询字典类型列表",
+        "path": "/api/admin/dictionary-type/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 174219034734663,
+        "parentId": 174219034718279,
+        "label": "新增",
+        "path": "/api/admin/dictionary-type/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 174219034734664,
+        "parentId": 174219034718279,
+        "label": "修改",
+        "path": "/api/admin/dictionary-type/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 174219034734665,
+        "parentId": 174219034718279,
+        "label": "删除",
+        "path": "/api/admin/dictionary-type/soft-delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 184100551532613,
+        "parentId": 174219034718279,
+        "label": "批量删除",
+        "path": "/api/admin/dictionary-type/batch-soft-delete",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 271618651926597,
+        "parentId": 174219034718279,
+        "label": "彻底删除",
+        "path": "/api/admin/dictionary-type/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 336555241189445,
+    "label": "任务日志服务",
+    "path": "task-log",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 336555241427018,
+        "parentId": 336555241189445,
+        "label": "查询任务日志列表",
+        "path": "/api/admin/task-log/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  },
+  {
+    "id": 336555241193541,
+    "label": "任务服务",
+    "path": "task",
+    "description": "",
+    "enabled": true,
+    "childs": [
+      {
+        "id": 336555241422922,
+        "parentId": 336555241193541,
+        "label": "查询任务",
+        "path": "/api/admin/task/get",
+        "httpMethods": "get",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241427013,
+        "parentId": 336555241193541,
+        "label": "查询任务列表",
+        "path": "/api/admin/task/get-page",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241427014,
+        "parentId": 336555241193541,
+        "label": "新增",
+        "path": "/api/admin/task/add",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241427015,
+        "parentId": 336555241193541,
+        "label": "修改",
+        "path": "/api/admin/task/update",
+        "httpMethods": "put",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 336555241427016,
+        "parentId": 336555241193541,
+        "label": "删除任务",
+        "path": "/api/admin/task/delete",
+        "httpMethods": "delete",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 343342310699077,
+        "parentId": 336555241193541,
+        "label": "暂停任务",
+        "path": "/api/admin/task/pause",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 343342310703173,
+        "parentId": 336555241193541,
+        "label": "启动任务",
+        "path": "/api/admin/task/resume",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      },
+      {
+        "id": 343342310703174,
+        "parentId": 336555241193541,
+        "label": "执行任务",
+        "path": "/api/admin/task/run",
+        "httpMethods": "post",
+        "description": "",
+        "enabled": true,
+        "childs": []
+      }
+    ]
+  }
+]

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

@@ -0,0 +1,20 @@
+[
+  {
+    "id": 187395320303685,
+    "dictionaryTypeId": 187395320434757,
+    "name": "男",
+    "code": "male",
+    "value": "1",
+    "description": "",
+    "enabled": true
+  },
+  {
+    "id": 187395320369221,
+    "dictionaryTypeId": 187395320434757,
+    "name": "女",
+    "code": "female",
+    "value": "2",
+    "description": "",
+    "enabled": true
+  }
+]

+ 22 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_dictionary.tenant.json

@@ -0,0 +1,22 @@
+[
+  {
+    "id": 187395320303685,
+    "tenantId": 161223412138053,
+    "dictionaryTypeId": 187395320434757,
+    "name": "男",
+    "code": "male",
+    "value": "1",
+    "description": "",
+    "enabled": true
+  },
+  {
+    "id": 187395320369221,
+    "tenantId": 161223412138053,
+    "dictionaryTypeId": 187395320434757,
+    "name": "女",
+    "code": "female",
+    "value": "2",
+    "description": "",
+    "enabled": true
+  }
+]

+ 9 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_dictionary_type.json

@@ -0,0 +1,9 @@
+[
+  {
+    "id": 187395320434757,
+    "name": "性别",
+    "code": "sex",
+    "description": "",
+    "enabled": true
+  }
+]

+ 10 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_dictionary_type.tenant.json

@@ -0,0 +1,10 @@
+[
+  {
+    "id": 187395320434757,
+    "tenantId": 161223412138053,
+    "name": "性别",
+    "code": "sex",
+    "description": "",
+    "enabled": true
+  }
+]

+ 10 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_org.json

@@ -0,0 +1,10 @@
+[
+  {
+    "id": 189097691009093,
+    "name": "中台",
+    "code": "",
+    "value": "",
+    "description": "",
+    "enabled": true
+  }
+]

+ 11 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_org.tenant.json

@@ -0,0 +1,11 @@
+[
+  {
+    "id": 189097691009093,
+    "tenantId": 161223412138053,
+    "name": "中台",
+    "code": "",
+    "value": "",
+    "description": "",
+    "enabled": true
+  }
+]

+ 0 - 0
src/hosts/ZhonTai.Host/InitData/Admin/ad_permission.vue2.json → src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_permission.json


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

@@ -0,0 +1,687 @@
+[
+  {
+    "id": 171046015770694,
+    "permissionId": 161227168628805,
+    "apiId": 161227168182342
+  },
+  {
+    "id": 171045671936071,
+    "permissionId": 161227168628806,
+    "apiId": 161227168182342
+  },
+  {
+    "id": 171045671936072,
+    "permissionId": 161227168628806,
+    "apiId": 161227168194630
+  },
+  {
+    "id": 171045702873158,
+    "permissionId": 161227168632901,
+    "apiId": 161227168194629
+  },
+  {
+    "id": 342275178242117,
+    "permissionId": 161227168641093,
+    "apiId": 161227168186437
+  },
+  {
+    "id": 342275178246213,
+    "permissionId": 161227168641093,
+    "apiId": 188049296683077
+  },
+  {
+    "id": 349750459183174,
+    "permissionId": 161227168641094,
+    "apiId": 161227168186437
+  },
+  {
+    "id": 349750459183175,
+    "permissionId": 161227168641094,
+    "apiId": 161227168186438
+  },
+  {
+    "id": 349750459183176,
+    "permissionId": 161227168641094,
+    "apiId": 188049296683077
+  },
+  {
+    "id": 349750459183173,
+    "permissionId": 161227168641094,
+    "apiId": 336555241422917
+  },
+  {
+    "id": 349750499344454,
+    "permissionId": 161227168645189,
+    "apiId": 161227168182343
+  },
+  {
+    "id": 349750499344455,
+    "permissionId": 161227168645189,
+    "apiId": 161227168186437
+  },
+  {
+    "id": 349750499344456,
+    "permissionId": 161227168645189,
+    "apiId": 161227168190533
+  },
+  {
+    "id": 349750499344457,
+    "permissionId": 161227168645189,
+    "apiId": 188049296683077
+  },
+  {
+    "id": 349750499344453,
+    "permissionId": 161227168645189,
+    "apiId": 336555241422917
+  },
+  {
+    "id": 342282197545029,
+    "permissionId": 161227168645190,
+    "apiId": 161227168190534
+  },
+  {
+    "id": 342282197545030,
+    "permissionId": 161227168645190,
+    "apiId": 271618651926607
+  },
+  {
+    "id": 342282494840901,
+    "permissionId": 161227168649285,
+    "apiId": 161227168190535
+  },
+  {
+    "id": 342282494840902,
+    "permissionId": 161227168649285,
+    "apiId": 336555241427019
+  },
+  {
+    "id": 340637112541253,
+    "permissionId": 161227168653382,
+    "apiId": 336555241422917
+  },
+  {
+    "id": 340637112541254,
+    "permissionId": 161227168653382,
+    "apiId": 336555241422918
+  },
+  {
+    "id": 171039545122886,
+    "permissionId": 161227168657477,
+    "apiId": 161227168174149
+  },
+  {
+    "id": 171039733657671,
+    "permissionId": 161227168657478,
+    "apiId": 161227168170054
+  },
+  {
+    "id": 171039733657672,
+    "permissionId": 161227168657478,
+    "apiId": 161227168178245
+  },
+  {
+    "id": 342280979902533,
+    "permissionId": 161227168661573,
+    "apiId": 161227168178246
+  },
+  {
+    "id": 342280979902534,
+    "permissionId": 161227168661573,
+    "apiId": 271618651926604
+  },
+  {
+    "id": 342281320968261,
+    "permissionId": 161227168665669,
+    "apiId": 161227168182341
+  },
+  {
+    "id": 342281320968262,
+    "permissionId": 161227168665669,
+    "apiId": 336555241422921
+  },
+  {
+    "id": 171039848452166,
+    "permissionId": 161227168669766,
+    "apiId": 161227168116805
+  },
+  {
+    "id": 171039883370566,
+    "permissionId": 161227168673861,
+    "apiId": 161227168120901
+  },
+  {
+    "id": 171039935344711,
+    "permissionId": 161227168673862,
+    "apiId": 161227168079941
+  },
+  {
+    "id": 171039935344712,
+    "permissionId": 161227168673862,
+    "apiId": 161227168120902
+  },
+  {
+    "id": 171039984590918,
+    "permissionId": 161227168677957,
+    "apiId": 161227168120903
+  },
+  {
+    "id": 171040049598534,
+    "permissionId": 161227168677958,
+    "apiId": 161227168124997
+  },
+  {
+    "id": 171040100655174,
+    "permissionId": 161227168682053,
+    "apiId": 161227168124998
+  },
+  {
+    "id": 171040178724934,
+    "permissionId": 161227168686150,
+    "apiId": 161227168198726
+  },
+  {
+    "id": 171040219164742,
+    "permissionId": 161227168690245,
+    "apiId": 161227168202822
+  },
+  {
+    "id": 171040256553031,
+    "permissionId": 161227168690246,
+    "apiId": 161227168198725
+  },
+  {
+    "id": 171040256553032,
+    "permissionId": 161227168690246,
+    "apiId": 161227168202823
+  },
+  {
+    "id": 171040295129157,
+    "permissionId": 161227168694341,
+    "apiId": 161227168206917
+  },
+  {
+    "id": 171040330653766,
+    "permissionId": 161227168694342,
+    "apiId": 161227168206918
+  },
+  {
+    "id": 171040379768902,
+    "permissionId": 161227168698437,
+    "apiId": 161227168206919
+  },
+  {
+    "id": 171040930574406,
+    "permissionId": 161227168702534,
+    "apiId": 161227168141383
+  },
+  {
+    "id": 171041051480134,
+    "permissionId": 161227168706629,
+    "apiId": 161227168153669
+  },
+  {
+    "id": 171040981246021,
+    "permissionId": 161227168706630,
+    "apiId": 161227168153670
+  },
+  {
+    "id": 171041490071623,
+    "permissionId": 161227168710726,
+    "apiId": 161227168145477
+  },
+  {
+    "id": 171041490071624,
+    "permissionId": 161227168710726,
+    "apiId": 161227168157765
+  },
+  {
+    "id": 171041379016773,
+    "permissionId": 161227168714821,
+    "apiId": 161227168145478
+  },
+  {
+    "id": 171041379016774,
+    "permissionId": 161227168714821,
+    "apiId": 161227168157766
+  },
+  {
+    "id": 171041229475910,
+    "permissionId": 161227168718917,
+    "apiId": 161227168161862
+  },
+  {
+    "id": 171040863215686,
+    "permissionId": 161227168727110,
+    "apiId": 161227168165959
+  },
+  {
+    "id": 171040714301511,
+    "permissionId": 161227168731205,
+    "apiId": 161227168165958
+  },
+  {
+    "id": 171040714301512,
+    "permissionId": 161227168731205,
+    "apiId": 161227168170053
+  },
+  {
+    "id": 171044150452296,
+    "permissionId": 161227168735301,
+    "apiId": 161227168149574
+  },
+  {
+    "id": 171044150452297,
+    "permissionId": 161227168735301,
+    "apiId": 161227168149575
+  },
+  {
+    "id": 171044150452298,
+    "permissionId": 161227168735301,
+    "apiId": 161227168170055
+  },
+  {
+    "id": 171043491364937,
+    "permissionId": 161227168739398,
+    "apiId": 161227168149574
+  },
+  {
+    "id": 171043491364938,
+    "permissionId": 161227168739398,
+    "apiId": 161227168149575
+  },
+  {
+    "id": 171043491364939,
+    "permissionId": 161227168739398,
+    "apiId": 161227168165957
+  },
+  {
+    "id": 171043491364940,
+    "permissionId": 161227168739398,
+    "apiId": 161227168170055
+  },
+  {
+    "id": 171044112568390,
+    "permissionId": 161227168747589,
+    "apiId": 161227168211013
+  },
+  {
+    "id": 171042505658439,
+    "permissionId": 161227168747590,
+    "apiId": 161227168211013
+  },
+  {
+    "id": 171042505658440,
+    "permissionId": 161227168747590,
+    "apiId": 161227168211014
+  },
+  {
+    "id": 171044276404294,
+    "permissionId": 161227168751686,
+    "apiId": 161227168243782
+  },
+  {
+    "id": 171044306128966,
+    "permissionId": 161227168755781,
+    "apiId": 161227168243783
+  },
+  {
+    "id": 171044724113479,
+    "permissionId": 161227168755782,
+    "apiId": 161227168243781
+  },
+  {
+    "id": 171044724113480,
+    "permissionId": 161227168755782,
+    "apiId": 161227168247877
+  },
+  {
+    "id": 171044355190854,
+    "permissionId": 161227168759877,
+    "apiId": 161227168247878
+  },
+  {
+    "id": 171044388511814,
+    "permissionId": 161227168759878,
+    "apiId": 161227168251973
+  },
+  {
+    "id": 171045341298758,
+    "permissionId": 161227168784454,
+    "apiId": 161227168215109
+  },
+  {
+    "id": 171045383643206,
+    "permissionId": 161227168788550,
+    "apiId": 161227168215110
+  },
+  {
+    "id": 171046614102086,
+    "permissionId": 161227168800838,
+    "apiId": 161227168223302
+  },
+  {
+    "id": 171046647849030,
+    "permissionId": 161227168804933,
+    "apiId": 161227168227397
+  },
+  {
+    "id": 171046740811847,
+    "permissionId": 161227168809029,
+    "apiId": 161227168219205
+  },
+  {
+    "id": 171046740811848,
+    "permissionId": 161227168809029,
+    "apiId": 161227168227398
+  },
+  {
+    "id": 171046827180103,
+    "permissionId": 161227168813125,
+    "apiId": 161227168219206
+  },
+  {
+    "id": 171046827180104,
+    "permissionId": 161227168813125,
+    "apiId": 161227168231493
+  },
+  {
+    "id": 171046899044422,
+    "permissionId": 161227168813126,
+    "apiId": 161227168231494
+  },
+  {
+    "id": 185974955921477,
+    "permissionId": 161227168821318,
+    "apiId": 161227168215111
+  },
+  {
+    "id": 185974955921478,
+    "permissionId": 161227168821318,
+    "apiId": 161227168235589
+  },
+  {
+    "id": 171047159746631,
+    "permissionId": 161227168825414,
+    "apiId": 161227168235589
+  },
+  {
+    "id": 171047159746632,
+    "permissionId": 161227168825414,
+    "apiId": 161227168235590
+  },
+  {
+    "id": 171046199644230,
+    "permissionId": 161227168829509,
+    "apiId": 161227168235591
+  },
+  {
+    "id": 171046300762182,
+    "permissionId": 161227168833605,
+    "apiId": 161227168239685
+  },
+  {
+    "id": 171046127857734,
+    "permissionId": 161227168833606,
+    "apiId": 161227168239686
+  },
+  {
+    "id": 171044607758405,
+    "permissionId": 161807358345285,
+    "apiId": 170317848645701
+  },
+  {
+    "id": 171044607758406,
+    "permissionId": 161807358345285,
+    "apiId": 170317848662085
+  },
+  {
+    "id": 171044440813638,
+    "permissionId": 163579955331141,
+    "apiId": 163579785756741
+  },
+  {
+    "id": 187390793699399,
+    "permissionId": 187375358951493,
+    "apiId": 161227168137286
+  },
+  {
+    "id": 187390793703493,
+    "permissionId": 187375358951493,
+    "apiId": 174219034734662
+  },
+  {
+    "id": 187385577730117,
+    "permissionId": 187385577599045,
+    "apiId": 187384805367877
+  },
+  {
+    "id": 187390759231560,
+    "permissionId": 187389970825285,
+    "apiId": 161227168137285
+  },
+  {
+    "id": 187390759231561,
+    "permissionId": 187389970825285,
+    "apiId": 161227168141381
+  },
+  {
+    "id": 187390759231562,
+    "permissionId": 187389970825285,
+    "apiId": 174219034734661
+  },
+  {
+    "id": 187390759231563,
+    "permissionId": 187389970825285,
+    "apiId": 174219034734664
+  },
+  {
+    "id": 187391074381895,
+    "permissionId": 187390547820613,
+    "apiId": 161227168141382
+  },
+  {
+    "id": 187391074381896,
+    "permissionId": 187390547820613,
+    "apiId": 174219034734665
+  },
+  {
+    "id": 187391371079750,
+    "permissionId": 187391371018309,
+    "apiId": 184100551516229
+  },
+  {
+    "id": 187391371079751,
+    "permissionId": 187391371018309,
+    "apiId": 184100551532613
+  },
+  {
+    "id": 187391980814407,
+    "permissionId": 187391980761157,
+    "apiId": 161227168137287
+  },
+  {
+    "id": 187391980814408,
+    "permissionId": 187391980761157,
+    "apiId": 174219034734663
+  },
+  {
+    "id": 188054258307141,
+    "permissionId": 188054258278469,
+    "apiId": 188049296683077
+  },
+  {
+    "id": 188054341591109,
+    "permissionId": 188054341582917,
+    "apiId": 174219034734674
+  },
+  {
+    "id": 188054416900167,
+    "permissionId": 188054416891973,
+    "apiId": 174219034734672
+  },
+  {
+    "id": 188054416900168,
+    "permissionId": 188054416891973,
+    "apiId": 174219034738757
+  },
+  {
+    "id": 188054509035590,
+    "permissionId": 188054509027397,
+    "apiId": 174219034738758
+  },
+  {
+    "id": 188054656598086,
+    "permissionId": 188054656589893,
+    "apiId": 174219034738760
+  },
+  {
+    "id": 188054719275078,
+    "permissionId": 188054719266885,
+    "apiId": 174219034738761
+  },
+  {
+    "id": 188054776557639,
+    "permissionId": 188054776545349,
+    "apiId": 174219034738759
+  },
+  {
+    "id": 188054776557640,
+    "permissionId": 188054776545349,
+    "apiId": 174219034738762
+  },
+  {
+    "id": 188054835359813,
+    "permissionId": 188054834004037,
+    "apiId": 174219034738763
+  },
+  {
+    "id": 188799732666437,
+    "permissionId": 188799732494405,
+    "apiId": 174219034734667
+  },
+  {
+    "id": 188799795204165,
+    "permissionId": 188799795101765,
+    "apiId": 174219034734668
+  },
+  {
+    "id": 188799878713413,
+    "permissionId": 188799878676549,
+    "apiId": 174219034734666
+  },
+  {
+    "id": 188799878713414,
+    "permissionId": 188799878676549,
+    "apiId": 174219034734669
+  },
+  {
+    "id": 188799949889606,
+    "permissionId": 188799949844549,
+    "apiId": 174219034734670
+  },
+  {
+    "id": 188799997497414,
+    "permissionId": 188799997452357,
+    "apiId": 174219034734671
+  },
+  {
+    "id": 189345990312005,
+    "permissionId": 189345990168645,
+    "apiId": 174219034738764
+  },
+  {
+    "id": 342277088911429,
+    "permissionId": 340645133123653,
+    "apiId": 161227168149574
+  },
+  {
+    "id": 342277088911430,
+    "permissionId": 340645133123653,
+    "apiId": 161227168149575
+  },
+  {
+    "id": 342277088911431,
+    "permissionId": 340645133123653,
+    "apiId": 161227168165957
+  },
+  {
+    "id": 342277691510854,
+    "permissionId": 340890474405957,
+    "apiId": 174219034734667
+  },
+  {
+    "id": 342277691510855,
+    "permissionId": 340890474405957,
+    "apiId": 188049296683077
+  },
+  {
+    "id": 342277691510853,
+    "permissionId": 340890474405957,
+    "apiId": 336555241422919
+  },
+  {
+    "id": 340890633531462,
+    "permissionId": 340890633515077,
+    "apiId": 336555241422920
+  },
+  {
+    "id": 343342945849413,
+    "permissionId": 343342945812549,
+    "apiId": 336555241422922
+  },
+  {
+    "id": 343343121375302,
+    "permissionId": 343343120306245,
+    "apiId": 336555241427013
+  },
+  {
+    "id": 343343209173062,
+    "permissionId": 343343209164869,
+    "apiId": 336555241427014
+  },
+  {
+    "id": 343343795257413,
+    "permissionId": 343343735894085,
+    "apiId": 336555241422922
+  },
+  {
+    "id": 343343795261509,
+    "permissionId": 343343735894085,
+    "apiId": 336555241427015
+  },
+  {
+    "id": 343343926603846,
+    "permissionId": 343343926595653,
+    "apiId": 343342310699077
+  },
+  {
+    "id": 343343989968966,
+    "permissionId": 343343989960773,
+    "apiId": 343342310703173
+  },
+  {
+    "id": 343344066175046,
+    "permissionId": 343344066166853,
+    "apiId": 343342310703174
+  },
+  {
+    "id": 343344158363718,
+    "permissionId": 343344158351429,
+    "apiId": 336555241427016
+  },
+  {
+    "id": 343344474333253,
+    "permissionId": 343344363630661,
+    "apiId": 336555241427018
+  },
+  {
+    "id": 349749511979077,
+    "permissionId": 349749511946309,
+    "apiId": 349749396615237
+  },
+  {
+    "id": 349749778911302,
+    "permissionId": 349749778899013,
+    "apiId": 349749396619333
+  }
+]

+ 44 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_role.json

@@ -0,0 +1,44 @@
+[
+  {
+    "id": 161223412080709,
+    "parentId": 336557474730053,
+    "name": "主管理员",
+    "code": "main-admin",
+    "dataScope": 1,
+    "description": ""
+  },
+  {
+    "id": 162605510979653,
+    "parentId": 336557578817605,
+    "name": "普通员工",
+    "code": "emp",
+    "dataScope": 1,
+    "description": ""
+  },
+  {
+    "id": 336557474730053,
+    "name": "系统默认",
+    "dataScope": 1,
+    "sort": 1
+  },
+  {
+    "id": 336557508276293,
+    "name": "职务",
+    "dataScope": 1,
+    "sort": 2
+  },
+  {
+    "id": 336557578817605,
+    "name": "岗位",
+    "dataScope": 1,
+    "sort": 3
+  },
+  {
+    "id": 340428577087557,
+    "parentId": 336557508276293,
+    "name": "IT",
+    "code": "it",
+    "dataScope": 1,
+    "description": ""
+  }
+]

+ 50 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_role.tenant.json

@@ -0,0 +1,50 @@
+[
+  {
+    "id": 161223412080709,
+    "tenantId": 161223412138053,
+    "parentId": 336557474730053,
+    "name": "主管理员",
+    "code": "main-admin",
+    "dataScope": 1,
+    "description": ""
+  },
+  {
+    "id": 162605510979653,
+    "tenantId": 161223412138053,
+    "parentId": 336557578817605,
+    "name": "普通员工",
+    "code": "emp",
+    "dataScope": 1,
+    "description": ""
+  },
+  {
+    "id": 336557474730053,
+    "tenantId": 161223412138053,
+    "name": "系统默认",
+    "dataScope": 1,
+    "sort": 1
+  },
+  {
+    "id": 336557508276293,
+    "tenantId": 161223412138053,
+    "name": "职务",
+    "dataScope": 1,
+    "sort": 2
+  },
+  {
+    "id": 336557578817605,
+    "tenantId": 161223412138053,
+    "name": "岗位",
+    "dataScope": 1,
+    "sort": 3
+  },
+  {
+    "id": 340428577087557,
+    "tenantId": 161223412138053,
+    "parentId": 336557508276293,
+    "name": "IT",
+    "code": "it",
+    "dataScope": 1,
+    "description": ""
+  }
+]

+ 1 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_role_permission.json

@@ -0,0 +1 @@
+[]

+ 16 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_tenant.json

@@ -0,0 +1,16 @@
+[
+  {
+    "id": 161223412138053,
+    "name": "中台",
+    "code": "zhontai",
+    "realName": "小雪",
+    "phone": "13122223333",
+    "email": "xiaoxue@zhontai.com",
+    "userId": 161223411986501,
+    "tenantType": 1,
+    "dbKey": "masterdb",
+    "connectionString": "",
+    "enabled": true,
+    "description": ""
+  }
+]

+ 1 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_tenant_permission.json

@@ -0,0 +1 @@
+[]

+ 12 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user.json

@@ -0,0 +1,12 @@
+[
+  {
+    "id": 161223411986501,
+    "userName": "admin",
+    "password": "96E79218965EB72C92A549DD5A330112",
+    "name": "管理员",
+    "mobile": "13122223333",
+    "orgId": 189097691009093,
+    "nickName": "小雪",
+    "type": 100
+  }
+]

+ 13 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user.tenant.json

@@ -0,0 +1,13 @@
+[
+  {
+    "id": 161223411986501,
+    "tenantId": 161223412138053,
+    "userName": "admin",
+    "password": "96E79218965EB72C92A549DD5A330112",
+    "name": "管理员",
+    "mobile": "13122223333",
+    "orgId": 189097691009093,
+    "nickName": "小雪",
+    "type": 100
+  }
+]

+ 7 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_org.json

@@ -0,0 +1,7 @@
+[
+  {
+    "id": 340793613013061,
+    "userId": 161223411986501,
+    "orgId": 189097691009093
+  }
+]

+ 7 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_role.json

@@ -0,0 +1,7 @@
+[
+  {
+    "id": 340793613008965,
+    "userId": 161223411986501,
+    "roleId": 161223412080709
+  }
+]

+ 6 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_staff.json

@@ -0,0 +1,6 @@
+[
+  {
+    "id": 161223411986501,
+    "sex": 0
+  }
+]

+ 7 - 0
src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_user_staff.tenant.json

@@ -0,0 +1,7 @@
+[
+  {
+    "id": 161223411986501,
+    "tenantId": 161223412138053,
+    "sex": 0
+  }
+]

+ 0 - 0
src/hosts/ZhonTai.Host/InitData/Admin/ad_view.vue2.json → src/hosts/ZhonTai.Host/InitData/Admin/Vue2/ad_view.json


+ 5 - 0
src/platform/ZhonTai.Admin/Core/Configs/DbConfig.cs

@@ -48,6 +48,11 @@ public class DbConfig
     /// </summary>
     public bool SyncData { get; set; } = false;
 
+    /// <summary>
+    /// 同步数据地址
+    /// </summary>
+    public string SyncDataPath { get; set; } = "InitData/Admin";
+
     /// <summary>
     /// 建库
     /// </summary>

+ 15 - 15
src/platform/ZhonTai.Admin/Repositories/CustomSyncData.cs

@@ -27,49 +27,49 @@ public class CustomSyncData : SyncData, ISyncData
         using var tran = uow.GetOrBeginTransaction();
         var isTenant = appConfig.Tenant;
 
-        var dictionaryTypes = GetData<DictionaryTypeEntity>(isTenant);
+        var dictionaryTypes = GetData<DictionaryTypeEntity>(isTenant, dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, dictionaryTypes, dbConfig);
 
-        var dictionaries = GetData<DictionaryEntity>(isTenant);
+        var dictionaries = GetData<DictionaryEntity>(isTenant, dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, dictionaries, dbConfig);
 
-        var users = GetData<UserEntity>(isTenant);
+        var users = GetData<UserEntity>(isTenant, dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, users, dbConfig);
 
-        var staffs = GetData<UserStaffEntity>(isTenant);
+        var staffs = GetData<UserStaffEntity>(isTenant, dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, staffs, dbConfig);
 
-        var orgs = GetData<OrgEntity>(isTenant);
+        var orgs = GetData<OrgEntity>(isTenant, dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, orgs, dbConfig);
 
-        var roles = GetData<RoleEntity>(isTenant);
+        var roles = GetData<RoleEntity>(isTenant, dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, roles, dbConfig);
 
-        var apiTree = GetData<ApiEntity>();
+        var apiTree = GetData<ApiEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, apiTree, dbConfig);
 
-        var viewTree = GetData<ViewEntity>();
+        var viewTree = GetData<ViewEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, viewTree, dbConfig);
 
-        var permissionTree = GetData<PermissionEntity>();
+        var permissionTree = GetData<PermissionEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, permissionTree, dbConfig);
 
-        var userRoles = GetData<UserRoleEntity>();
+        var userRoles = GetData<UserRoleEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, userRoles, dbConfig);
 
-        var userOrgs = GetData<UserOrgEntity>();
+        var userOrgs = GetData<UserOrgEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, userOrgs, dbConfig);
 
-        var rolePermissions = GetData<RolePermissionEntity>();
+        var rolePermissions = GetData<RolePermissionEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, rolePermissions, dbConfig);
 
-        var tenants = GetData<TenantEntity>();
+        var tenants = GetData<TenantEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, tenants, dbConfig);
 
-        var tenantPermissions = GetData<TenantPermissionEntity>();
+        var tenantPermissions = GetData<TenantPermissionEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, tenantPermissions, dbConfig);
 
-        var permissionApis = GetData<PermissionApiEntity>();
+        var permissionApis = GetData<PermissionApiEntity>(path: dbConfig.SyncDataPath);
         await InitDataAsync(db, uow, tran, permissionApis, dbConfig);
 
         uow.Commit();

+ 5 - 0
src/platform/ZhonTai.Admin/ZhonTai.Admin.xml

@@ -571,6 +571,11 @@
             同步数据
             </summary>
         </member>
+        <member name="P:ZhonTai.Admin.Core.Configs.DbConfig.SyncDataPath">
+            <summary>
+            同步数据地址
+            </summary>
+        </member>
         <member name="P:ZhonTai.Admin.Core.Configs.DbConfig.CreateDb">
             <summary>
             建库