Просмотр исходного кода

feat(openspec): 添加艾灸椅后台管理系统代码

Made-with: Cursor
liaoxg 7 месяцев назад
Родитель
Сommit
38e00e19a0
100 измененных файлов с 5873 добавлено и 0 удалено
  1. 22 0
      .gitignore
  2. 6 0
      openspec/.gitignore
  3. 4 0
      openspec/admin-ui/.gitignore
  4. 13 0
      openspec/admin-ui/index.html
  5. 1617 0
      openspec/admin-ui/package-lock.json
  6. 22 0
      openspec/admin-ui/package.json
  7. 20 0
      openspec/admin-ui/public/favicon-leaf.svg
  8. 26 0
      openspec/admin-ui/public/favicon-tech.svg
  9. 28 0
      openspec/admin-ui/public/favicon-traditional.svg
  10. 30 0
      openspec/admin-ui/public/favicon.svg
  11. BIN
      openspec/admin-ui/public/healthy-back.png
  12. 6 0
      openspec/admin-ui/src/App.vue
  13. 53 0
      openspec/admin-ui/src/api/http.js
  14. 267 0
      openspec/admin-ui/src/config/resources.js
  15. 244 0
      openspec/admin-ui/src/layouts/AdminLayout.vue
  16. 9 0
      openspec/admin-ui/src/main.js
  17. 58 0
      openspec/admin-ui/src/router/index.js
  18. 43 0
      openspec/admin-ui/src/style.css
  19. 254 0
      openspec/admin-ui/src/views/AdminUsersView.vue
  20. 104 0
      openspec/admin-ui/src/views/Home.vue
  21. 775 0
      openspec/admin-ui/src/views/LocalizationPreviewView.vue
  22. 120 0
      openspec/admin-ui/src/views/Login.vue
  23. 86 0
      openspec/admin-ui/src/views/OperationLogsView.vue
  24. 273 0
      openspec/admin-ui/src/views/resource/CrudView.vue
  25. 17 0
      openspec/admin-ui/vite.config.js
  26. 105 0
      openspec/pom.xml
  27. 211 0
      openspec/scripts/generate_seed_sql.py
  28. 17 0
      openspec/src/main/java/com/aijiuyi/admin/AdminApplication.java
  29. 32 0
      openspec/src/main/java/com/aijiuyi/admin/common/ApiResponse.java
  30. 22 0
      openspec/src/main/java/com/aijiuyi/admin/common/BusinessException.java
  31. 54 0
      openspec/src/main/java/com/aijiuyi/admin/common/GlobalExceptionHandler.java
  32. 33 0
      openspec/src/main/java/com/aijiuyi/admin/common/PageResult.java
  33. 43 0
      openspec/src/main/java/com/aijiuyi/admin/config/MybatisPlusConfig.java
  34. 33 0
      openspec/src/main/java/com/aijiuyi/admin/config/OpenApiConfig.java
  35. 117 0
      openspec/src/main/java/com/aijiuyi/admin/config/SecurityConfig.java
  36. 16 0
      openspec/src/main/java/com/aijiuyi/admin/dto/CreateAdminRequest.java
  37. 19 0
      openspec/src/main/java/com/aijiuyi/admin/dto/LocalizationPreviewRequest.java
  38. 15 0
      openspec/src/main/java/com/aijiuyi/admin/dto/LoginRequest.java
  39. 18 0
      openspec/src/main/java/com/aijiuyi/admin/dto/LoginResponse.java
  40. 13 0
      openspec/src/main/java/com/aijiuyi/admin/dto/UpdateAdminPasswordRequest.java
  41. 24 0
      openspec/src/main/java/com/aijiuyi/admin/entity/Account.java
  42. 37 0
      openspec/src/main/java/com/aijiuyi/admin/entity/Acupoint.java
  43. 15 0
      openspec/src/main/java/com/aijiuyi/admin/entity/AdminRole.java
  44. 20 0
      openspec/src/main/java/com/aijiuyi/admin/entity/AdminUser.java
  45. 16 0
      openspec/src/main/java/com/aijiuyi/admin/entity/AlgorithmParameterSet.java
  46. 26 0
      openspec/src/main/java/com/aijiuyi/admin/entity/AlgorithmVersionRecord.java
  47. 30 0
      openspec/src/main/java/com/aijiuyi/admin/entity/BaseEntity.java
  48. 15 0
      openspec/src/main/java/com/aijiuyi/admin/entity/BodyRegion.java
  49. 28 0
      openspec/src/main/java/com/aijiuyi/admin/entity/DeviceModel.java
  50. 21 0
      openspec/src/main/java/com/aijiuyi/admin/entity/Efficacy.java
  51. 26 0
      openspec/src/main/java/com/aijiuyi/admin/entity/EfficacyVersion.java
  52. 27 0
      openspec/src/main/java/com/aijiuyi/admin/entity/EndUser.java
  53. 20 0
      openspec/src/main/java/com/aijiuyi/admin/entity/MoxaSessionRecord.java
  54. 30 0
      openspec/src/main/java/com/aijiuyi/admin/entity/OperationLog.java
  55. 15 0
      openspec/src/main/java/com/aijiuyi/admin/entity/Symptom.java
  56. 16 0
      openspec/src/main/java/com/aijiuyi/admin/entity/Technique.java
  57. 15 0
      openspec/src/main/java/com/aijiuyi/admin/entity/TechniqueComboRule.java
  58. 15 0
      openspec/src/main/java/com/aijiuyi/admin/entity/UserFingerprint.java
  59. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/AccountMapper.java
  60. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/AcupointMapper.java
  61. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/AdminRoleMapper.java
  62. 24 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/AdminUserMapper.java
  63. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/AlgorithmParameterSetMapper.java
  64. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/AlgorithmVersionRecordMapper.java
  65. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/BodyRegionMapper.java
  66. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/DeviceModelMapper.java
  67. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/EfficacyMapper.java
  68. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/EfficacyVersionMapper.java
  69. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/EndUserMapper.java
  70. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/MoxaSessionRecordMapper.java
  71. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/OperationLogMapper.java
  72. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/SymptomMapper.java
  73. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/TechniqueComboRuleMapper.java
  74. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/TechniqueMapper.java
  75. 10 0
      openspec/src/main/java/com/aijiuyi/admin/mapper/UserFingerprintMapper.java
  76. 7 0
      openspec/src/main/java/com/aijiuyi/admin/security/AdminDetailsService.java
  77. 31 0
      openspec/src/main/java/com/aijiuyi/admin/security/AdminDetailsServiceImpl.java
  78. 63 0
      openspec/src/main/java/com/aijiuyi/admin/security/AdminUserDetails.java
  79. 55 0
      openspec/src/main/java/com/aijiuyi/admin/security/JwtAuthenticationFilter.java
  80. 70 0
      openspec/src/main/java/com/aijiuyi/admin/security/JwtTokenProvider.java
  81. 61 0
      openspec/src/main/java/com/aijiuyi/admin/security/OperationLogAspect.java
  82. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/AccountService.java
  83. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/AcupointService.java
  84. 12 0
      openspec/src/main/java/com/aijiuyi/admin/service/AdminUserService.java
  85. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/AlgoParamService.java
  86. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/AlgoVerService.java
  87. 10 0
      openspec/src/main/java/com/aijiuyi/admin/service/AuthService.java
  88. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/BodyRegionService.java
  89. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/ComboRuleService.java
  90. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/DeviceModelService.java
  91. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/EfficacyService.java
  92. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/EfficacyVerService.java
  93. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/EndUserService.java
  94. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/FingerprintService.java
  95. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/MoxaSessionService.java
  96. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/OpLogService.java
  97. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/RoleService.java
  98. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/SymptomService.java
  99. 8 0
      openspec/src/main/java/com/aijiuyi/admin/service/TechniqueService.java
  100. 11 0
      openspec/src/main/java/com/aijiuyi/admin/service/algorithm/AcupointLocService.java

+ 22 - 0
.gitignore

@@ -0,0 +1,22 @@
+# Java / Maven
+target/
+*.class
+*.jar
+*.war
+*.ear
+
+# IDE
+.idea/
+*.iml
+.classpath
+.project
+.settings/
+.vscode/
+
+# Node.js
+node_modules/
+dist/
+
+# OS
+.DS_Store
+Thumbs.db

+ 6 - 0
openspec/.gitignore

@@ -0,0 +1,6 @@
+/target/
+/.idea/
+*.iml
+.classpath
+.project
+.settings/

+ 4 - 0
openspec/admin-ui/.gitignore

@@ -0,0 +1,4 @@
+node_modules
+dist
+.DS_Store
+*.local

+ 13 - 0
openspec/admin-ui/index.html

@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <link rel="icon" type="image/svg+xml" href="/favicon-leaf.svg" />
+    <title>艾灸后台管理</title>
+  </head>
+  <body>
+    <div id="app"></div>
+    <script type="module" src="/src/main.js"></script>
+  </body>
+</html>

+ 1617 - 0
openspec/admin-ui/package-lock.json

@@ -0,0 +1,1617 @@
+{
+  "name": "aijiuyi-admin-ui",
+  "version": "0.1.0",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {
+    "": {
+      "name": "aijiuyi-admin-ui",
+      "version": "0.1.0",
+      "dependencies": {
+        "axios": "^1.6.8",
+        "element-plus": "^2.6.3",
+        "vue": "^3.4.21",
+        "vue-router": "^4.3.0"
+      },
+      "devDependencies": {
+        "@vitejs/plugin-vue": "^5.0.4",
+        "vite": "^5.2.8",
+        "vite-plugin-mkcert": "^1.17.10"
+      }
+    },
+    "node_modules/@babel/helper-string-parser": {
+      "version": "7.27.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
+      "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-validator-identifier": {
+      "version": "7.28.5",
+      "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
+      "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/parser": {
+      "version": "7.29.2",
+      "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz",
+      "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",
+      "dependencies": {
+        "@babel/types": "^7.29.0"
+      },
+      "bin": {
+        "parser": "bin/babel-parser.js"
+      },
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/@babel/types": {
+      "version": "7.29.0",
+      "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
+      "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
+      "dependencies": {
+        "@babel/helper-string-parser": "^7.27.1",
+        "@babel/helper-validator-identifier": "^7.28.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@ctrl/tinycolor": {
+      "version": "4.2.0",
+      "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-4.2.0.tgz",
+      "integrity": "sha512-kzyuwOAQnXJNLS9PSyrk0CWk35nWJW/zl/6KvnTBMFK65gm7U1/Z5BqjxeapjZCIhQcM/DsrEmcbRwDyXyXK4A==",
+      "engines": {
+        "node": ">=14"
+      }
+    },
+    "node_modules/@element-plus/icons-vue": {
+      "version": "2.3.2",
+      "resolved": "https://registry.npmjs.org/@element-plus/icons-vue/-/icons-vue-2.3.2.tgz",
+      "integrity": "sha512-OzIuTaIfC8QXEPmJvB4Y4kw34rSXdCJzxcD1kFStBvr8bK6X1zQAYDo0CNMjojnfTqRQCJ0I7prlErcoRiET2A==",
+      "peerDependencies": {
+        "vue": "^3.2.0"
+      }
+    },
+    "node_modules/@esbuild/aix-ppc64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
+      "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
+      "cpu": [
+        "ppc64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "aix"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/android-arm": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
+      "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
+      "cpu": [
+        "arm"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "android"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/android-arm64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
+      "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "android"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/android-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
+      "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "android"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/darwin-arm64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
+      "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "darwin"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/darwin-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
+      "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "darwin"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/freebsd-arm64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
+      "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "freebsd"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/freebsd-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
+      "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "freebsd"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-arm": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
+      "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
+      "cpu": [
+        "arm"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-arm64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
+      "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-ia32": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
+      "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
+      "cpu": [
+        "ia32"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-loong64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
+      "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
+      "cpu": [
+        "loong64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-mips64el": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
+      "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
+      "cpu": [
+        "mips64el"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-ppc64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
+      "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
+      "cpu": [
+        "ppc64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-riscv64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
+      "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
+      "cpu": [
+        "riscv64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-s390x": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
+      "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
+      "cpu": [
+        "s390x"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/linux-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
+      "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/netbsd-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
+      "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "netbsd"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/openbsd-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
+      "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "openbsd"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/sunos-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
+      "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "sunos"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/win32-arm64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
+      "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "win32"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/win32-ia32": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
+      "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
+      "cpu": [
+        "ia32"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "win32"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@esbuild/win32-x64": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
+      "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "win32"
+      ],
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@floating-ui/core": {
+      "version": "1.7.5",
+      "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz",
+      "integrity": "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==",
+      "dependencies": {
+        "@floating-ui/utils": "^0.2.11"
+      }
+    },
+    "node_modules/@floating-ui/dom": {
+      "version": "1.7.6",
+      "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz",
+      "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==",
+      "dependencies": {
+        "@floating-ui/core": "^1.7.5",
+        "@floating-ui/utils": "^0.2.11"
+      }
+    },
+    "node_modules/@floating-ui/utils": {
+      "version": "0.2.11",
+      "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz",
+      "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg=="
+    },
+    "node_modules/@jridgewell/sourcemap-codec": {
+      "version": "1.5.5",
+      "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+      "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="
+    },
+    "node_modules/@popperjs/core": {
+      "name": "@sxzz/popperjs-es",
+      "version": "2.11.8",
+      "resolved": "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.8.tgz",
+      "integrity": "sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ=="
+    },
+    "node_modules/@rollup/rollup-android-arm-eabi": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.0.tgz",
+      "integrity": "sha512-WOhNW9K8bR3kf4zLxbfg6Pxu2ybOUbB2AjMDHSQx86LIF4rH4Ft7vmMwNt0loO0eonglSNy4cpD3MKXXKQu0/A==",
+      "cpu": [
+        "arm"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "android"
+      ]
+    },
+    "node_modules/@rollup/rollup-android-arm64": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.0.tgz",
+      "integrity": "sha512-u6JHLll5QKRvjciE78bQXDmqRqNs5M/3GVqZeMwvmjaNODJih/WIrJlFVEihvV0MiYFmd+ZyPr9wxOVbPAG2Iw==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "android"
+      ]
+    },
+    "node_modules/@rollup/rollup-darwin-arm64": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.0.tgz",
+      "integrity": "sha512-qEF7CsKKzSRc20Ciu2Zw1wRrBz4g56F7r/vRwY430UPp/nt1x21Q/fpJ9N5l47WWvJlkNCPJz3QRVw008fi7yA==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "darwin"
+      ]
+    },
+    "node_modules/@rollup/rollup-darwin-x64": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.0.tgz",
+      "integrity": "sha512-WADYozJ4QCnXCH4wPB+3FuGmDPoFseVCUrANmA5LWwGmC6FL14BWC7pcq+FstOZv3baGX65tZ378uT6WG8ynTw==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "darwin"
+      ]
+    },
+    "node_modules/@rollup/rollup-freebsd-arm64": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.0.tgz",
+      "integrity": "sha512-6b8wGHJlDrGeSE3aH5mGNHBjA0TTkxdoNHik5EkvPHCt351XnigA4pS7Wsj/Eo9Y8RBU6f35cjN9SYmCFBtzxw==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "freebsd"
+      ]
+    },
+    "node_modules/@rollup/rollup-freebsd-x64": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.0.tgz",
+      "integrity": "sha512-h25Ga0t4jaylMB8M/JKAyrvvfxGRjnPQIR8lnCayyzEjEOx2EJIlIiMbhpWxDRKGKF8jbNH01NnN663dH638mA==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "freebsd"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.0.tgz",
+      "integrity": "sha512-RzeBwv0B3qtVBWtcuABtSuCzToo2IEAIQrcyB/b2zMvBWVbjo8bZDjACUpnaafaxhTw2W+imQbP2BD1usasK4g==",
+      "cpu": [
+        "arm"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.0.tgz",
+      "integrity": "sha512-Sf7zusNI2CIU1HLzuu9Tc5YGAHEZs5Lu7N1ssJG4Tkw6e0MEsN7NdjUDDfGNHy2IU+ENyWT+L2obgWiguWibWQ==",
+      "cpu": [
+        "arm"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-arm64-gnu": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.0.tgz",
+      "integrity": "sha512-DX2x7CMcrJzsE91q7/O02IJQ5/aLkVtYFryqCjduJhUfGKG6yJV8hxaw8pZa93lLEpPTP/ohdN4wFz7yp/ry9A==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-arm64-musl": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.0.tgz",
+      "integrity": "sha512-09EL+yFVbJZlhcQfShpswwRZ0Rg+z/CsSELFCnPt3iK+iqwGsI4zht3secj5vLEs957QvFFXnzAT0FFPIxSrkQ==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-loong64-gnu": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.0.tgz",
+      "integrity": "sha512-i9IcCMPr3EXm8EQg5jnja0Zyc1iFxJjZWlb4wr7U2Wx/GrddOuEafxRdMPRYVaXjgbhvqalp6np07hN1w9kAKw==",
+      "cpu": [
+        "loong64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-loong64-musl": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.0.tgz",
+      "integrity": "sha512-DGzdJK9kyJ+B78MCkWeGnpXJ91tK/iKA6HwHxF4TAlPIY7GXEvMe8hBFRgdrR9Ly4qebR/7gfUs9y2IoaVEyog==",
+      "cpu": [
+        "loong64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.0.tgz",
+      "integrity": "sha512-RwpnLsqC8qbS8z1H1AxBA1H6qknR4YpPR9w2XX0vo2Sz10miu57PkNcnHVaZkbqyw/kUWfKMI73jhmfi9BRMUQ==",
+      "cpu": [
+        "ppc64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-ppc64-musl": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.0.tgz",
+      "integrity": "sha512-Z8pPf54Ly3aqtdWC3G4rFigZgNvd+qJlOE52fmko3KST9SoGfAdSRCwyoyG05q1HrrAblLbk1/PSIV+80/pxLg==",
+      "cpu": [
+        "ppc64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.0.tgz",
+      "integrity": "sha512-3a3qQustp3COCGvnP4SvrMHnPQ9d1vzCakQVRTliaz8cIp/wULGjiGpbcqrkv0WrHTEp8bQD/B3HBjzujVWLOA==",
+      "cpu": [
+        "riscv64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-riscv64-musl": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.0.tgz",
+      "integrity": "sha512-pjZDsVH/1VsghMJ2/kAaxt6dL0psT6ZexQVrijczOf+PeP2BUqTHYejk3l6TlPRydggINOeNRhvpLa0AYpCWSQ==",
+      "cpu": [
+        "riscv64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-s390x-gnu": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.0.tgz",
+      "integrity": "sha512-3ObQs0BhvPgiUVZrN7gqCSvmFuMWvWvsjG5ayJ3Lraqv+2KhOsp+pUbigqbeWqueGIsnn+09HBw27rJ+gYK4VQ==",
+      "cpu": [
+        "s390x"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-x64-gnu": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.0.tgz",
+      "integrity": "sha512-EtylprDtQPdS5rXvAayrNDYoJhIz1/vzN2fEubo3yLE7tfAw+948dO0g4M0vkTVFhKojnF+n6C8bDNe+gDRdTg==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-linux-x64-musl": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.0.tgz",
+      "integrity": "sha512-k09oiRCi/bHU9UVFqD17r3eJR9bn03TyKraCrlz5ULFJGdJGi7VOmm9jl44vOJvRJ6P7WuBi/s2A97LxxHGIdw==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "linux"
+      ]
+    },
+    "node_modules/@rollup/rollup-openbsd-x64": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.0.tgz",
+      "integrity": "sha512-1o/0/pIhozoSaDJoDcec+IVLbnRtQmHwPV730+AOD29lHEEo4F5BEUB24H0OBdhbBBDwIOSuf7vgg0Ywxdfiiw==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "openbsd"
+      ]
+    },
+    "node_modules/@rollup/rollup-openharmony-arm64": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.0.tgz",
+      "integrity": "sha512-pESDkos/PDzYwtyzB5p/UoNU/8fJo68vcXM9ZW2V0kjYayj1KaaUfi1NmTUTUpMn4UhU4gTuK8gIaFO4UGuMbA==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "openharmony"
+      ]
+    },
+    "node_modules/@rollup/rollup-win32-arm64-msvc": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.0.tgz",
+      "integrity": "sha512-hj1wFStD7B1YBeYmvY+lWXZ7ey73YGPcViMShYikqKT1GtstIKQAtfUI6yrzPjAy/O7pO0VLXGmUVWXQMaYgTQ==",
+      "cpu": [
+        "arm64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "win32"
+      ]
+    },
+    "node_modules/@rollup/rollup-win32-ia32-msvc": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.0.tgz",
+      "integrity": "sha512-SyaIPFoxmUPlNDq5EHkTbiKzmSEmq/gOYFI/3HHJ8iS/v1mbugVa7dXUzcJGQfoytp9DJFLhHH4U3/eTy2Bq4w==",
+      "cpu": [
+        "ia32"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "win32"
+      ]
+    },
+    "node_modules/@rollup/rollup-win32-x64-gnu": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.0.tgz",
+      "integrity": "sha512-RdcryEfzZr+lAr5kRm2ucN9aVlCCa2QNq4hXelZxb8GG0NJSazq44Z3PCCc8wISRuCVnGs0lQJVX5Vp6fKA+IA==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "win32"
+      ]
+    },
+    "node_modules/@rollup/rollup-win32-x64-msvc": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.0.tgz",
+      "integrity": "sha512-PrsWNQ8BuE00O3Xsx3ALh2Df8fAj9+cvvX9AIA6o4KpATR98c9mud4XtDWVvsEuyia5U4tVSTKygawyJkjm60w==",
+      "cpu": [
+        "x64"
+      ],
+      "dev": true,
+      "optional": true,
+      "os": [
+        "win32"
+      ]
+    },
+    "node_modules/@types/estree": {
+      "version": "1.0.8",
+      "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+      "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+      "dev": true
+    },
+    "node_modules/@types/lodash": {
+      "version": "4.17.24",
+      "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz",
+      "integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ=="
+    },
+    "node_modules/@types/lodash-es": {
+      "version": "4.17.12",
+      "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz",
+      "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==",
+      "dependencies": {
+        "@types/lodash": "*"
+      }
+    },
+    "node_modules/@types/web-bluetooth": {
+      "version": "0.0.20",
+      "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz",
+      "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow=="
+    },
+    "node_modules/@vitejs/plugin-vue": {
+      "version": "5.2.4",
+      "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz",
+      "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==",
+      "dev": true,
+      "engines": {
+        "node": "^18.0.0 || >=20.0.0"
+      },
+      "peerDependencies": {
+        "vite": "^5.0.0 || ^6.0.0",
+        "vue": "^3.2.25"
+      }
+    },
+    "node_modules/@vue/compiler-core": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.30.tgz",
+      "integrity": "sha512-s3DfdZkcu/qExZ+td75015ljzHc6vE+30cFMGRPROYjqkroYI5NV2X1yAMX9UeyBNWB9MxCfPcsjpLS11nzkkw==",
+      "dependencies": {
+        "@babel/parser": "^7.29.0",
+        "@vue/shared": "3.5.30",
+        "entities": "^7.0.1",
+        "estree-walker": "^2.0.2",
+        "source-map-js": "^1.2.1"
+      }
+    },
+    "node_modules/@vue/compiler-dom": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.30.tgz",
+      "integrity": "sha512-eCFYESUEVYHhiMuK4SQTldO3RYxyMR/UQL4KdGD1Yrkfdx4m/HYuZ9jSfPdA+nWJY34VWndiYdW/wZXyiPEB9g==",
+      "dependencies": {
+        "@vue/compiler-core": "3.5.30",
+        "@vue/shared": "3.5.30"
+      }
+    },
+    "node_modules/@vue/compiler-sfc": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.30.tgz",
+      "integrity": "sha512-LqmFPDn89dtU9vI3wHJnwaV6GfTRD87AjWpTWpyrdVOObVtjIuSeZr181z5C4PmVx/V3j2p+0f7edFKGRMpQ5A==",
+      "dependencies": {
+        "@babel/parser": "^7.29.0",
+        "@vue/compiler-core": "3.5.30",
+        "@vue/compiler-dom": "3.5.30",
+        "@vue/compiler-ssr": "3.5.30",
+        "@vue/shared": "3.5.30",
+        "estree-walker": "^2.0.2",
+        "magic-string": "^0.30.21",
+        "postcss": "^8.5.8",
+        "source-map-js": "^1.2.1"
+      }
+    },
+    "node_modules/@vue/compiler-ssr": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.30.tgz",
+      "integrity": "sha512-NsYK6OMTnx109PSL2IAyf62JP6EUdk4Dmj6AkWcJGBvN0dQoMYtVekAmdqgTtWQgEJo+Okstbf/1p7qZr5H+bA==",
+      "dependencies": {
+        "@vue/compiler-dom": "3.5.30",
+        "@vue/shared": "3.5.30"
+      }
+    },
+    "node_modules/@vue/devtools-api": {
+      "version": "6.6.4",
+      "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz",
+      "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g=="
+    },
+    "node_modules/@vue/reactivity": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.30.tgz",
+      "integrity": "sha512-179YNgKATuwj9gB+66snskRDOitDiuOZqkYia7mHKJaidOMo/WJxHKF8DuGc4V4XbYTJANlfEKb0yxTQotnx4Q==",
+      "dependencies": {
+        "@vue/shared": "3.5.30"
+      }
+    },
+    "node_modules/@vue/runtime-core": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.30.tgz",
+      "integrity": "sha512-e0Z+8PQsUTdwV8TtEsLzUM7SzC7lQwYKePydb7K2ZnmS6jjND+WJXkmmfh/swYzRyfP1EY3fpdesyYoymCzYfg==",
+      "dependencies": {
+        "@vue/reactivity": "3.5.30",
+        "@vue/shared": "3.5.30"
+      }
+    },
+    "node_modules/@vue/runtime-dom": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.30.tgz",
+      "integrity": "sha512-2UIGakjU4WSQ0T4iwDEW0W7vQj6n7AFn7taqZ9Cvm0Q/RA2FFOziLESrDL4GmtI1wV3jXg5nMoJSYO66egDUBw==",
+      "dependencies": {
+        "@vue/reactivity": "3.5.30",
+        "@vue/runtime-core": "3.5.30",
+        "@vue/shared": "3.5.30",
+        "csstype": "^3.2.3"
+      }
+    },
+    "node_modules/@vue/server-renderer": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.30.tgz",
+      "integrity": "sha512-v+R34icapydRwbZRD0sXwtHqrQJv38JuMB4JxbOxd8NEpGLny7cncMp53W9UH/zo4j8eDHjQ1dEJXwzFQknjtQ==",
+      "dependencies": {
+        "@vue/compiler-ssr": "3.5.30",
+        "@vue/shared": "3.5.30"
+      },
+      "peerDependencies": {
+        "vue": "3.5.30"
+      }
+    },
+    "node_modules/@vue/shared": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.30.tgz",
+      "integrity": "sha512-YXgQ7JjaO18NeK2K9VTbDHaFy62WrObMa6XERNfNOkAhD1F1oDSf3ZJ7K6GqabZ0BvSDHajp8qfS5Sa2I9n8uQ=="
+    },
+    "node_modules/@vueuse/core": {
+      "version": "12.0.0",
+      "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-12.0.0.tgz",
+      "integrity": "sha512-C12RukhXiJCbx4MGhjmd/gH52TjJsc3G0E0kQj/kb19H3Nt6n1CA4DRWuTdWWcaFRdlTe0npWDS942mvacvNBw==",
+      "dependencies": {
+        "@types/web-bluetooth": "^0.0.20",
+        "@vueuse/metadata": "12.0.0",
+        "@vueuse/shared": "12.0.0",
+        "vue": "^3.5.13"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/antfu"
+      }
+    },
+    "node_modules/@vueuse/metadata": {
+      "version": "12.0.0",
+      "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-12.0.0.tgz",
+      "integrity": "sha512-Yzimd1D3sjxTDOlF05HekU5aSGdKjxhuhRFHA7gDWLn57PRbBIh+SF5NmjhJ0WRgF3my7T8LBucyxdFJjIfRJQ==",
+      "funding": {
+        "url": "https://github.com/sponsors/antfu"
+      }
+    },
+    "node_modules/@vueuse/shared": {
+      "version": "12.0.0",
+      "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-12.0.0.tgz",
+      "integrity": "sha512-3i6qtcq2PIio5i/vVYidkkcgvmTjCqrf26u+Fd4LhnbBmIT6FN8y6q/GJERp8lfcB9zVEfjdV0Br0443qZuJpw==",
+      "dependencies": {
+        "vue": "^3.5.13"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/antfu"
+      }
+    },
+    "node_modules/async-validator": {
+      "version": "4.2.5",
+      "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz",
+      "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg=="
+    },
+    "node_modules/asynckit": {
+      "version": "0.4.0",
+      "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+      "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
+    },
+    "node_modules/axios": {
+      "version": "1.13.6",
+      "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.6.tgz",
+      "integrity": "sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==",
+      "dependencies": {
+        "follow-redirects": "^1.15.11",
+        "form-data": "^4.0.5",
+        "proxy-from-env": "^1.1.0"
+      }
+    },
+    "node_modules/call-bind-apply-helpers": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+      "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+      "dependencies": {
+        "es-errors": "^1.3.0",
+        "function-bind": "^1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/combined-stream": {
+      "version": "1.0.8",
+      "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+      "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+      "dependencies": {
+        "delayed-stream": "~1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/csstype": {
+      "version": "3.2.3",
+      "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+      "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="
+    },
+    "node_modules/dayjs": {
+      "version": "1.11.20",
+      "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz",
+      "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ=="
+    },
+    "node_modules/debug": {
+      "version": "4.4.3",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+      "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ms": "^2.1.3"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/delayed-stream": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+      "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+      "engines": {
+        "node": ">=0.4.0"
+      }
+    },
+    "node_modules/dunder-proto": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+      "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+      "dependencies": {
+        "call-bind-apply-helpers": "^1.0.1",
+        "es-errors": "^1.3.0",
+        "gopd": "^1.2.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/element-plus": {
+      "version": "2.13.6",
+      "resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.13.6.tgz",
+      "integrity": "sha512-XHgwXr8Fjz6i+6BaqFhAbae/dJbG7bBAAlHrY3pWL7dpj+JcqcOyKYt4Oy5KP86FQwS1k4uIZDjCx2FyUR5lDg==",
+      "dependencies": {
+        "@ctrl/tinycolor": "^4.2.0",
+        "@element-plus/icons-vue": "^2.3.2",
+        "@floating-ui/dom": "^1.0.1",
+        "@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7",
+        "@types/lodash": "^4.17.20",
+        "@types/lodash-es": "^4.17.12",
+        "@vueuse/core": "12.0.0",
+        "async-validator": "^4.2.5",
+        "dayjs": "^1.11.19",
+        "lodash": "^4.17.23",
+        "lodash-es": "^4.17.23",
+        "lodash-unified": "^1.0.3",
+        "memoize-one": "^6.0.0",
+        "normalize-wheel-es": "^1.2.0",
+        "vue-component-type-helpers": "^3.2.4"
+      },
+      "peerDependencies": {
+        "vue": "^3.3.0"
+      }
+    },
+    "node_modules/entities": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
+      "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
+      "engines": {
+        "node": ">=0.12"
+      },
+      "funding": {
+        "url": "https://github.com/fb55/entities?sponsor=1"
+      }
+    },
+    "node_modules/es-define-property": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+      "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es-errors": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+      "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es-object-atoms": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+      "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+      "dependencies": {
+        "es-errors": "^1.3.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es-set-tostringtag": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+      "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+      "dependencies": {
+        "es-errors": "^1.3.0",
+        "get-intrinsic": "^1.2.6",
+        "has-tostringtag": "^1.0.2",
+        "hasown": "^2.0.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/esbuild": {
+      "version": "0.21.5",
+      "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
+      "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
+      "dev": true,
+      "hasInstallScript": true,
+      "bin": {
+        "esbuild": "bin/esbuild"
+      },
+      "engines": {
+        "node": ">=12"
+      },
+      "optionalDependencies": {
+        "@esbuild/aix-ppc64": "0.21.5",
+        "@esbuild/android-arm": "0.21.5",
+        "@esbuild/android-arm64": "0.21.5",
+        "@esbuild/android-x64": "0.21.5",
+        "@esbuild/darwin-arm64": "0.21.5",
+        "@esbuild/darwin-x64": "0.21.5",
+        "@esbuild/freebsd-arm64": "0.21.5",
+        "@esbuild/freebsd-x64": "0.21.5",
+        "@esbuild/linux-arm": "0.21.5",
+        "@esbuild/linux-arm64": "0.21.5",
+        "@esbuild/linux-ia32": "0.21.5",
+        "@esbuild/linux-loong64": "0.21.5",
+        "@esbuild/linux-mips64el": "0.21.5",
+        "@esbuild/linux-ppc64": "0.21.5",
+        "@esbuild/linux-riscv64": "0.21.5",
+        "@esbuild/linux-s390x": "0.21.5",
+        "@esbuild/linux-x64": "0.21.5",
+        "@esbuild/netbsd-x64": "0.21.5",
+        "@esbuild/openbsd-x64": "0.21.5",
+        "@esbuild/sunos-x64": "0.21.5",
+        "@esbuild/win32-arm64": "0.21.5",
+        "@esbuild/win32-ia32": "0.21.5",
+        "@esbuild/win32-x64": "0.21.5"
+      }
+    },
+    "node_modules/estree-walker": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
+      "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
+    },
+    "node_modules/follow-redirects": {
+      "version": "1.15.11",
+      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
+      "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
+      "funding": [
+        {
+          "type": "individual",
+          "url": "https://github.com/sponsors/RubenVerborgh"
+        }
+      ],
+      "engines": {
+        "node": ">=4.0"
+      },
+      "peerDependenciesMeta": {
+        "debug": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/form-data": {
+      "version": "4.0.5",
+      "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
+      "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
+      "dependencies": {
+        "asynckit": "^0.4.0",
+        "combined-stream": "^1.0.8",
+        "es-set-tostringtag": "^2.1.0",
+        "hasown": "^2.0.2",
+        "mime-types": "^2.1.12"
+      },
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/fsevents": {
+      "version": "2.3.3",
+      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+      "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "os": [
+        "darwin"
+      ],
+      "engines": {
+        "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+      }
+    },
+    "node_modules/function-bind": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+      "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/get-intrinsic": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+      "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+      "dependencies": {
+        "call-bind-apply-helpers": "^1.0.2",
+        "es-define-property": "^1.0.1",
+        "es-errors": "^1.3.0",
+        "es-object-atoms": "^1.1.1",
+        "function-bind": "^1.1.2",
+        "get-proto": "^1.0.1",
+        "gopd": "^1.2.0",
+        "has-symbols": "^1.1.0",
+        "hasown": "^2.0.2",
+        "math-intrinsics": "^1.1.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/get-proto": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+      "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+      "dependencies": {
+        "dunder-proto": "^1.0.1",
+        "es-object-atoms": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/gopd": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+      "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-symbols": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+      "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-tostringtag": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+      "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+      "dependencies": {
+        "has-symbols": "^1.0.3"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/hasown": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+      "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+      "dependencies": {
+        "function-bind": "^1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/lodash": {
+      "version": "4.17.23",
+      "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",
+      "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w=="
+    },
+    "node_modules/lodash-es": {
+      "version": "4.17.23",
+      "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz",
+      "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg=="
+    },
+    "node_modules/lodash-unified": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/lodash-unified/-/lodash-unified-1.0.3.tgz",
+      "integrity": "sha512-WK9qSozxXOD7ZJQlpSqOT+om2ZfcT4yO+03FuzAHD0wF6S0l0090LRPDx3vhTTLZ8cFKpBn+IOcVXK6qOcIlfQ==",
+      "peerDependencies": {
+        "@types/lodash-es": "*",
+        "lodash": "*",
+        "lodash-es": "*"
+      }
+    },
+    "node_modules/magic-string": {
+      "version": "0.30.21",
+      "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+      "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+      "dependencies": {
+        "@jridgewell/sourcemap-codec": "^1.5.5"
+      }
+    },
+    "node_modules/math-intrinsics": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+      "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/memoize-one": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz",
+      "integrity": "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw=="
+    },
+    "node_modules/mime-db": {
+      "version": "1.52.0",
+      "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+      "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/mime-types": {
+      "version": "2.1.35",
+      "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+      "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+      "dependencies": {
+        "mime-db": "1.52.0"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/ms": {
+      "version": "2.1.3",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/nanoid": {
+      "version": "3.3.11",
+      "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+      "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ],
+      "bin": {
+        "nanoid": "bin/nanoid.cjs"
+      },
+      "engines": {
+        "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+      }
+    },
+    "node_modules/normalize-wheel-es": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/normalize-wheel-es/-/normalize-wheel-es-1.2.0.tgz",
+      "integrity": "sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw=="
+    },
+    "node_modules/picocolors": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+      "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
+    },
+    "node_modules/postcss": {
+      "version": "8.5.8",
+      "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
+      "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
+      "funding": [
+        {
+          "type": "opencollective",
+          "url": "https://opencollective.com/postcss/"
+        },
+        {
+          "type": "tidelift",
+          "url": "https://tidelift.com/funding/github/npm/postcss"
+        },
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ],
+      "dependencies": {
+        "nanoid": "^3.3.11",
+        "picocolors": "^1.1.1",
+        "source-map-js": "^1.2.1"
+      },
+      "engines": {
+        "node": "^10 || ^12 || >=14"
+      }
+    },
+    "node_modules/proxy-from-env": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
+      "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
+    },
+    "node_modules/rollup": {
+      "version": "4.60.0",
+      "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.0.tgz",
+      "integrity": "sha512-yqjxruMGBQJ2gG4HtjZtAfXArHomazDHoFwFFmZZl0r7Pdo7qCIXKqKHZc8yeoMgzJJ+pO6pEEHa+V7uzWlrAQ==",
+      "dev": true,
+      "dependencies": {
+        "@types/estree": "1.0.8"
+      },
+      "bin": {
+        "rollup": "dist/bin/rollup"
+      },
+      "engines": {
+        "node": ">=18.0.0",
+        "npm": ">=8.0.0"
+      },
+      "optionalDependencies": {
+        "@rollup/rollup-android-arm-eabi": "4.60.0",
+        "@rollup/rollup-android-arm64": "4.60.0",
+        "@rollup/rollup-darwin-arm64": "4.60.0",
+        "@rollup/rollup-darwin-x64": "4.60.0",
+        "@rollup/rollup-freebsd-arm64": "4.60.0",
+        "@rollup/rollup-freebsd-x64": "4.60.0",
+        "@rollup/rollup-linux-arm-gnueabihf": "4.60.0",
+        "@rollup/rollup-linux-arm-musleabihf": "4.60.0",
+        "@rollup/rollup-linux-arm64-gnu": "4.60.0",
+        "@rollup/rollup-linux-arm64-musl": "4.60.0",
+        "@rollup/rollup-linux-loong64-gnu": "4.60.0",
+        "@rollup/rollup-linux-loong64-musl": "4.60.0",
+        "@rollup/rollup-linux-ppc64-gnu": "4.60.0",
+        "@rollup/rollup-linux-ppc64-musl": "4.60.0",
+        "@rollup/rollup-linux-riscv64-gnu": "4.60.0",
+        "@rollup/rollup-linux-riscv64-musl": "4.60.0",
+        "@rollup/rollup-linux-s390x-gnu": "4.60.0",
+        "@rollup/rollup-linux-x64-gnu": "4.60.0",
+        "@rollup/rollup-linux-x64-musl": "4.60.0",
+        "@rollup/rollup-openbsd-x64": "4.60.0",
+        "@rollup/rollup-openharmony-arm64": "4.60.0",
+        "@rollup/rollup-win32-arm64-msvc": "4.60.0",
+        "@rollup/rollup-win32-ia32-msvc": "4.60.0",
+        "@rollup/rollup-win32-x64-gnu": "4.60.0",
+        "@rollup/rollup-win32-x64-msvc": "4.60.0",
+        "fsevents": "~2.3.2"
+      }
+    },
+    "node_modules/source-map-js": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+      "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/vite": {
+      "version": "5.4.21",
+      "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
+      "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
+      "dev": true,
+      "dependencies": {
+        "esbuild": "^0.21.3",
+        "postcss": "^8.4.43",
+        "rollup": "^4.20.0"
+      },
+      "bin": {
+        "vite": "bin/vite.js"
+      },
+      "engines": {
+        "node": "^18.0.0 || >=20.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/vitejs/vite?sponsor=1"
+      },
+      "optionalDependencies": {
+        "fsevents": "~2.3.3"
+      },
+      "peerDependencies": {
+        "@types/node": "^18.0.0 || >=20.0.0",
+        "less": "*",
+        "lightningcss": "^1.21.0",
+        "sass": "*",
+        "sass-embedded": "*",
+        "stylus": "*",
+        "sugarss": "*",
+        "terser": "^5.4.0"
+      },
+      "peerDependenciesMeta": {
+        "@types/node": {
+          "optional": true
+        },
+        "less": {
+          "optional": true
+        },
+        "lightningcss": {
+          "optional": true
+        },
+        "sass": {
+          "optional": true
+        },
+        "sass-embedded": {
+          "optional": true
+        },
+        "stylus": {
+          "optional": true
+        },
+        "sugarss": {
+          "optional": true
+        },
+        "terser": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/vite-plugin-mkcert": {
+      "version": "1.17.10",
+      "resolved": "https://registry.npmjs.org/vite-plugin-mkcert/-/vite-plugin-mkcert-1.17.10.tgz",
+      "integrity": "sha512-703hecAoGZYgNrkY76OIbo0M9j0tfGIIM6n7c0sYvhaczQMPwD0nFi+bS44d8kwdbCtV7885FYBWnTzhsaC7QQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "axios": "^1.13.5",
+        "debug": "^4.4.3",
+        "picocolors": "^1.1.1"
+      },
+      "engines": {
+        "node": ">=v16.7.0"
+      },
+      "peerDependencies": {
+        "vite": ">=3"
+      }
+    },
+    "node_modules/vue": {
+      "version": "3.5.30",
+      "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.30.tgz",
+      "integrity": "sha512-hTHLc6VNZyzzEH/l7PFGjpcTvUgiaPK5mdLkbjrTeWSRcEfxFrv56g/XckIYlE9ckuobsdwqd5mk2g1sBkMewg==",
+      "dependencies": {
+        "@vue/compiler-dom": "3.5.30",
+        "@vue/compiler-sfc": "3.5.30",
+        "@vue/runtime-dom": "3.5.30",
+        "@vue/server-renderer": "3.5.30",
+        "@vue/shared": "3.5.30"
+      },
+      "peerDependencies": {
+        "typescript": "*"
+      },
+      "peerDependenciesMeta": {
+        "typescript": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/vue-component-type-helpers": {
+      "version": "3.2.6",
+      "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.2.6.tgz",
+      "integrity": "sha512-O02tnvIfOQVmnvoWwuSydwRoHjZVt8UEBR+2p4rT35p8GAy5VTlWP8o5qXfJR/GWCN0nVZoYWsVUvx2jwgdBmQ=="
+    },
+    "node_modules/vue-router": {
+      "version": "4.6.4",
+      "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz",
+      "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==",
+      "dependencies": {
+        "@vue/devtools-api": "^6.6.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/posva"
+      },
+      "peerDependencies": {
+        "vue": "^3.5.0"
+      }
+    }
+  }
+}

+ 22 - 0
openspec/admin-ui/package.json

@@ -0,0 +1,22 @@
+{
+  "name": "aijiuyi-admin-ui",
+  "private": true,
+  "version": "0.1.0",
+  "type": "module",
+  "scripts": {
+    "dev": "vite",
+    "build": "vite build",
+    "preview": "vite preview"
+  },
+  "dependencies": {
+    "axios": "^1.6.8",
+    "element-plus": "^2.6.3",
+    "vue": "^3.4.21",
+    "vue-router": "^4.3.0"
+  },
+  "devDependencies": {
+    "@vitejs/plugin-vue": "^5.0.4",
+    "vite": "^5.2.8",
+    "vite-plugin-mkcert": "^1.17.10"
+  }
+}

+ 20 - 0
openspec/admin-ui/public/favicon-leaf.svg

@@ -0,0 +1,20 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+  <defs>
+    <linearGradient id="leafGrad" x1="0" y1="1" x2="1" y2="0">
+      <stop offset="0%" stop-color="#10b981"/>
+      <stop offset="100%" stop-color="#34d399"/>
+    </linearGradient>
+    <linearGradient id="flameGrad2" x1="0" y1="1" x2="0.5" y2="0">
+      <stop offset="0%" stop-color="#f59e0b"/>
+      <stop offset="100%" stop-color="#fbbf24"/>
+    </linearGradient>
+  </defs>
+  <!-- Background circle -->
+  <circle cx="32" cy="32" r="30" fill="#ecfdf5"/>
+  <!-- Leaf shape (Mugwort) wrapping the flame -->
+  <path d="M22 50 C12 40 16 26 26 20 C24 30 28 38 34 44 C36 46 36 50 32 50 C28 50 25 50 22 50 Z" fill="url(#leafGrad)"/>
+  <path d="M22 50 C26 50 32 50 36 48 C46 42 48 30 42 22 C40 32 34 38 28 42 Z" fill="url(#leafGrad)" opacity="0.8"/>
+  <!-- Central flame (Moxa burning) -->
+  <path d="M32 16 C38 24 40 30 36 36 C32 42 28 42 26 36 C24 30 26 24 32 16 Z" fill="url(#flameGrad2)"/>
+  <circle cx="32" cy="34" r="3" fill="#fff" opacity="0.8"/>
+</svg>

+ 26 - 0
openspec/admin-ui/public/favicon-tech.svg

@@ -0,0 +1,26 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+  <defs>
+    <linearGradient id="techGrad" x1="0" y1="0" x2="1" y2="1">
+      <stop offset="0%" stop-color="#059669"/>
+      <stop offset="100%" stop-color="#0f766e"/>
+    </linearGradient>
+    <radialGradient id="emberGlow" cx="0.5" cy="0.5" r="0.5">
+      <stop offset="0%" stop-color="#fb923c"/>
+      <stop offset="40%" stop-color="#f59e0b"/>
+      <stop offset="100%" stop-color="#ea580c" stop-opacity="0"/>
+    </radialGradient>
+  </defs>
+  <!-- Rounded hexagon / tech shield background -->
+  <path d="M32 4 L56 18 L56 46 L32 60 L8 46 L8 18 Z" fill="#f0fdfa"/>
+  <path d="M32 8 L52 20 L52 44 L32 56 L12 44 L12 20 Z" fill="url(#techGrad)" opacity="0.1"/>
+  <!-- Modern cylindrical moxa representation -->
+  <rect x="24" y="28" width="16" height="20" rx="4" fill="url(#techGrad)"/>
+  <rect x="24" y="26" width="16" height="6" rx="3" fill="#10b981"/>
+  <!-- Glowing ember at the top (Acupoint/Heat) -->
+  <circle cx="32" cy="22" r="14" fill="url(#emberGlow)"/>
+  <circle cx="32" cy="22" r="6" fill="#fef08a"/>
+  <!-- Tech circuit line connecting to the point (acupuncture meridian) -->
+  <path d="M32 48 L32 54" stroke="#059669" stroke-width="2" stroke-linecap="round"/>
+  <path d="M20 38 L16 38" stroke="#059669" stroke-width="2" stroke-linecap="round"/>
+  <path d="M44 38 L48 38" stroke="#059669" stroke-width="2" stroke-linecap="round"/>
+</svg>

+ 28 - 0
openspec/admin-ui/public/favicon-traditional.svg

@@ -0,0 +1,28 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+  <defs>
+    <linearGradient id="yinGrad" x1="0" y1="0" x2="1" y2="1">
+      <stop offset="0%" stop-color="#14b8a6"/>
+      <stop offset="100%" stop-color="#047857"/>
+    </linearGradient>
+    <linearGradient id="fireGrad" x1="0" y1="1" x2="0" y2="0">
+      <stop offset="0%" stop-color="#ef4444"/>
+      <stop offset="50%" stop-color="#f97316"/>
+      <stop offset="100%" stop-color="#fcd34d"/>
+    </linearGradient>
+  </defs>
+  <!-- Outer ring -->
+  <circle cx="32" cy="32" r="30" fill="none" stroke="url(#yinGrad)" stroke-width="4"/>
+  <circle cx="32" cy="32" r="26" fill="#f8fafc"/>
+  
+  <!-- Traditional Wave / Smoke pattern -->
+  <path d="M6 32 C16 20 20 44 32 32 C44 20 48 44 58 32 C58 46 46 58 32 58 C18 58 6 46 6 32 Z" fill="url(#yinGrad)" opacity="0.15"/>
+  
+  <!-- Abstract Acupoint & Moxa Fire -->
+  <circle cx="32" cy="40" r="8" fill="url(#yinGrad)"/>
+  <circle cx="32" cy="40" r="3" fill="#ffffff"/>
+  
+  <path d="M32 12 C36 18 42 24 38 32 C35 38 29 38 26 32 C22 24 28 18 32 12 Z" fill="url(#fireGrad)"/>
+  
+  <!-- Abstract Meridian Lines -->
+  <path d="M32 48 L32 56 M24 40 L16 40 M40 40 L48 40" stroke="url(#yinGrad)" stroke-width="2" stroke-linecap="round" opacity="0.6"/>
+</svg>

+ 30 - 0
openspec/admin-ui/public/favicon.svg

@@ -0,0 +1,30 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+  <defs>
+    <linearGradient id="cone" x1="0" y1="0" x2="1" y2="1">
+      <stop offset="0%" stop-color="#2a9d8f"/>
+      <stop offset="100%" stop-color="#1a6b5f"/>
+    </linearGradient>
+    <linearGradient id="flame" x1="0.5" y1="1" x2="0.5" y2="0">
+      <stop offset="0%" stop-color="#e76f51"/>
+      <stop offset="50%" stop-color="#f4a261"/>
+      <stop offset="100%" stop-color="#ffd166"/>
+    </linearGradient>
+    <linearGradient id="glow" x1="0.5" y1="1" x2="0.5" y2="0">
+      <stop offset="0%" stop-color="#e76f51" stop-opacity="0.4"/>
+      <stop offset="100%" stop-color="#ffd166" stop-opacity="0"/>
+    </linearGradient>
+  </defs>
+  <!-- Circular background -->
+  <circle cx="32" cy="32" r="30" fill="#f0f7f5"/>
+  <!-- Moxa cone body -->
+  <path d="M32 52 L18 28 Q32 24 46 28 Z" fill="url(#cone)" stroke="#1a6b5f" stroke-width="0.5"/>
+  <!-- Cone texture line -->
+  <path d="M28 38 Q32 36 36 38" fill="none" stroke="#228176" stroke-width="1" opacity="0.5"/>
+  <path d="M26 42 Q32 40 38 42" fill="none" stroke="#228176" stroke-width="1" opacity="0.4"/>
+  <!-- Glow around flame -->
+  <ellipse cx="32" cy="22" rx="8" ry="10" fill="url(#glow)"/>
+  <!-- Main flame -->
+  <path d="M32 10 C36 16 40 20 38 25 C36 28 34 28 32 28 C30 28 28 28 26 25 C24 20 28 16 32 10Z" fill="url(#flame)"/>
+  <!-- Inner flame highlight -->
+  <path d="M32 16 C34 20 36 22 35 24 C34 26 33 26 32 26 C31 26 30 26 29 24 C28 22 30 20 32 16Z" fill="#ffd166" opacity="0.7"/>
+</svg>

BIN
openspec/admin-ui/public/healthy-back.png


+ 6 - 0
openspec/admin-ui/src/App.vue

@@ -0,0 +1,6 @@
+<template>
+  <router-view />
+</template>
+
+<script setup>
+</script>

+ 53 - 0
openspec/admin-ui/src/api/http.js

@@ -0,0 +1,53 @@
+import axios from 'axios'
+import { ElMessage } from 'element-plus'
+import router from '../router'
+
+const http = axios.create({
+  baseURL: '/api',
+  timeout: 60000,
+})
+
+http.interceptors.request.use((config) => {
+  const token = localStorage.getItem('admin_token')
+  if (token) {
+    config.headers.Authorization = `Bearer ${token}`
+  }
+  return config
+})
+
+http.interceptors.response.use(
+  (res) => {
+    const body = res.data
+    if (body && typeof body.code === 'number') {
+      if (body.code !== 0) {
+        ElMessage.error(body.message || '请求失败')
+        return Promise.reject(new Error(body.message || '业务错误'))
+      }
+      res.data = body.data
+      return res
+    }
+    return res
+  },
+  (err) => {
+    const status = err.response?.status
+    const data = err.response?.data
+    const apiMsg = data && typeof data.message === 'string' ? data.message : null
+    if (status === 401 || status === 403) {
+      const onLogin = router.currentRoute.value.name === 'login'
+      if (!onLogin) {
+        localStorage.removeItem('admin_token')
+        localStorage.removeItem('admin_username')
+        localStorage.removeItem('admin_roles')
+        ElMessage.error(apiMsg || '登录已失效,请重新登录')
+        router.push({ name: 'login' })
+      } else if (status === 401) {
+        ElMessage.error(apiMsg || '用户名或密码错误')
+      }
+    } else {
+      ElMessage.error(apiMsg || err.message || '网络错误')
+    }
+    return Promise.reject(err)
+  }
+)
+
+export default http

+ 267 - 0
openspec/admin-ui/src/config/resources.js

@@ -0,0 +1,267 @@
+/**
+ * 与 BaseMpController 风格一致的资源:GET 分页、GET/:id、POST、PUT/:id、DELETE/:id
+ * apiPath 不含 /api 前缀(http 已 baseURL /api)
+ */
+export const RESOURCE_MAP = {
+  symptoms: {
+    title: '症状字典',
+    apiPath: '/v1/symptoms',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'code', label: '编码', width: 100 },
+      { prop: 'name', label: '名称', minWidth: 160 },
+      { prop: 'createTime', label: '创建时间', width: 170 },
+    ],
+    formFields: [
+      { prop: 'code', label: '编码', type: 'input', required: true },
+      { prop: 'name', label: '名称', type: 'input', required: true },
+    ],
+  },
+  'body-regions': {
+    title: '身体部位与分区',
+    apiPath: '/v1/body-regions',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'bodyPart', label: '身体部位', width: 120 },
+      { prop: 'regionPartition', label: '部位分区', minWidth: 140 },
+      { prop: 'createTime', label: '创建时间', width: 170 },
+    ],
+    formFields: [
+      { prop: 'bodyPart', label: '身体部位', type: 'input' },
+      { prop: 'regionPartition', label: '部位分区', type: 'input' },
+    ],
+  },
+  acupoints: {
+    title: '标准穴位',
+    apiPath: '/v1/acupoints',
+    chairProductFilter: true,
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'code', label: '编号', width: 120 },
+      { prop: 'name', label: '名称', width: 100 },
+      { prop: 'meridian', label: '经络', minWidth: 140 },
+      { prop: 'chairProduct', label: '艾灸椅', width: 88 },
+      { prop: 'serialNo', label: '序号', width: 72 },
+    ],
+    formFields: [
+      { prop: 'serialNo', label: '序号', type: 'input' },
+      { prop: 'code', label: '编号', type: 'input', required: true },
+      { prop: 'name', label: '名称', type: 'input', required: true },
+      { prop: 'sideType', label: '单/双穴', type: 'input' },
+      { prop: 'meridian', label: '经络', type: 'input' },
+      { prop: 'bodyRegion', label: '身体部位', type: 'input' },
+      { prop: 'regionPartition', label: '部位分区', type: 'input' },
+      { prop: 'locationText', label: '定位描述', type: 'textarea' },
+      { prop: 'relativePositionText', label: '相对位置', type: 'textarea' },
+      { prop: 'indications', label: '主治', type: 'textarea' },
+      { prop: 'symptomCoverage', label: '症状覆盖', type: 'textarea' },
+      { prop: 'acupointMethod', label: '取穴说明', type: 'textarea' },
+      { prop: 'chairProduct', label: '艾灸椅产品(0/1)', type: 'number' },
+      { prop: 'remark', label: '备注', type: 'input' },
+      { prop: 'baseCoordX', label: '基准X', type: 'input' },
+      { prop: 'baseCoordY', label: '基准Y', type: 'input' },
+      { prop: 'baseCoordZ', label: '基准Z', type: 'input' },
+      { prop: 'heightAdaptFormula', label: '身高适配公式', type: 'input' },
+      { prop: 'trajectoryJson', label: '轨迹 JSON', type: 'textarea' },
+      { prop: 'groupTag', label: '分组标签', type: 'input' },
+    ],
+  },
+  efficacies: {
+    title: '功效',
+    apiPath: '/v1/efficacies',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'name', label: '名称', minWidth: 160 },
+      { prop: 'status', label: '状态', width: 100 },
+      { prop: 'currentVersion', label: '版本', width: 120 },
+    ],
+    formFields: [
+      { prop: 'name', label: '功效名称', type: 'input', required: true },
+      { prop: 'summary', label: '简介', type: 'textarea' },
+      { prop: 'iconUrl', label: '图标 URL', type: 'input' },
+      { prop: 'applicableCrowd', label: '适用人群', type: 'textarea' },
+      { prop: 'descriptionText', label: '说明', type: 'textarea' },
+      { prop: 'status', label: '状态', type: 'input' },
+      { prop: 'currentVersion', label: '当前版本号', type: 'input' },
+      { prop: 'prescriptionJson', label: '灸方 JSON', type: 'textarea' },
+    ],
+  },
+  techniques: {
+    title: '手法',
+    apiPath: '/v1/techniques',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'code', label: '编码', width: 120 },
+      { prop: 'name', label: '名称', minWidth: 140 },
+    ],
+    formFields: [
+      { prop: 'code', label: '编码', type: 'input', required: true },
+      { prop: 'name', label: '名称', type: 'input', required: true },
+      { prop: 'paramsJson', label: '参数 JSON', type: 'textarea' },
+    ],
+  },
+  'technique-combo-rules': {
+    title: '手法组合规则',
+    apiPath: '/v1/technique-combo-rules',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'name', label: '名称', minWidth: 160 },
+    ],
+    formFields: [
+      { prop: 'name', label: '规则名称', type: 'input', required: true },
+      { prop: 'logicJson', label: '逻辑 JSON', type: 'textarea' },
+    ],
+  },
+  'device-models': {
+    title: '设备型号',
+    apiPath: '/v1/device-models',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'code', label: '编码', width: 140 },
+      { prop: 'name', label: '名称', minWidth: 140 },
+    ],
+    formFields: [
+      { prop: 'code', label: '编码', type: 'input', required: true },
+      { prop: 'name', label: '名称', type: 'input', required: true },
+      { prop: 'strokeRangeX', label: '行程X', type: 'input' },
+      { prop: 'strokeRangeY', label: '行程Y', type: 'input' },
+      { prop: 'strokeRangeZ', label: '行程Z', type: 'input' },
+      { prop: 'originOffsetX', label: '原点偏移X', type: 'input' },
+      { prop: 'originOffsetY', label: '原点偏移Y', type: 'input' },
+      { prop: 'originOffsetZ', label: '原点偏移Z', type: 'input' },
+      { prop: 'axisDirectionJson', label: '轴向 JSON', type: 'textarea' },
+      { prop: 'safetyDistance', label: '安全距离', type: 'input' },
+      { prop: 'standardHeightCm', label: '标准人身高cm', type: 'input' },
+      { prop: 'standardWeightKg', label: '标准人体重kg', type: 'input' },
+      { prop: 'standardFingerCunCm', label: '标准人指寸cm', type: 'input' },
+    ],
+  },
+  'algorithm-params': {
+    title: '算法参数集',
+    apiPath: '/v1/algorithm/params',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'deviceModelId', label: '设备型号ID', width: 120 },
+      { prop: 'name', label: '名称', minWidth: 140 },
+    ],
+    formFields: [
+      { prop: 'deviceModelId', label: '设备型号ID', type: 'number', required: true },
+      { prop: 'name', label: '名称', type: 'input' },
+      { prop: 'paramsJson', label: '参数 JSON', type: 'textarea', required: true },
+    ],
+  },
+  'efficacy-versions': {
+    title: '功效历史版本',
+    apiPath: '/v1/efficacy-versions',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'efficacyId', label: '功效ID', width: 100 },
+      { prop: 'versionNo', label: '版本号', width: 120 },
+      { prop: 'createdAt', label: '创建时间', width: 170 },
+    ],
+    formFields: [
+      { prop: 'efficacyId', label: '功效ID', type: 'number', required: true },
+      { prop: 'versionNo', label: '版本号', type: 'input', required: true },
+      { prop: 'snapshotJson', label: '快照 JSON', type: 'textarea', required: true },
+    ],
+  },
+  'algorithm-versions': {
+    title: '算法版本记录',
+    apiPath: '/v1/algorithm/versions',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'versionLabel', label: '版本标签', width: 140 },
+      { prop: 'createdAt', label: '创建时间', width: 170 },
+    ],
+    formFields: [
+      { prop: 'versionLabel', label: '版本标签', type: 'input', required: true },
+      { prop: 'snapshotJson', label: '快照 JSON', type: 'textarea', required: true },
+      { prop: 'changeNote', label: '变更说明', type: 'textarea' },
+    ],
+  },
+  'end-users': {
+    title: 'C端用户档案',
+    apiPath: '/v1/end-users',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'accountId', label: '账号ID', width: 100 },
+      { prop: 'displayName', label: '显示名', width: 120 },
+      { prop: 'heightCm', label: '身高', width: 80 },
+      { prop: 'shoulderWidthCm', label: '肩宽', width: 80 },
+      { prop: 'spineLengthCm', label: '脊柱长', width: 80 },
+      { prop: 'fingerCunCm', label: '指寸', width: 72 },
+    ],
+    formFields: [
+      { prop: 'accountId', label: '账号ID', type: 'number', required: true },
+      { prop: 'displayName', label: '显示名', type: 'input' },
+      { prop: 'gender', label: '性别', type: 'input' },
+      { prop: 'age', label: '年龄', type: 'number' },
+      { prop: 'heightCm', label: '身高cm', type: 'input' },
+      { prop: 'weightKg', label: '体重kg', type: 'input' },
+      { prop: 'shoulderWidthCm', label: '肩宽cm', type: 'input', required: true },
+      { prop: 'spineLengthCm', label: '脊柱长度cm', type: 'input', required: true },
+      { prop: 'fingerCunCm', label: '指寸cm', type: 'input' },
+    ],
+  },
+  accounts: {
+    title: 'C端账号',
+    apiPath: '/v1/accounts',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'phone', label: '手机号', width: 140 },
+      { prop: 'status', label: '状态', width: 100 },
+    ],
+    formFields: [
+      { prop: 'phone', label: '手机号', type: 'input', required: true },
+      { prop: 'passwordHash', label: '密码哈希(可选)', type: 'input' },
+      { prop: 'status', label: '状态', type: 'input' },
+    ],
+  },
+  'user-fingerprints': {
+    title: '用户指纹',
+    apiPath: '/v1/user-fingerprints',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'endUserId', label: '用户ID', width: 100 },
+      { prop: 'fingerprintId', label: '指纹标识', minWidth: 160 },
+    ],
+    formFields: [
+      { prop: 'endUserId', label: '用户ID', type: 'number', required: true },
+      { prop: 'fingerprintId', label: '指纹标识', type: 'input', required: true },
+    ],
+  },
+  'moxa-records': {
+    title: '艾灸会话记录',
+    apiPath: '/v1/moxa-records',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'endUserId', label: '用户ID', width: 100 },
+      { prop: 'deviceId', label: '设备', width: 120 },
+      { prop: 'startedAt', label: '开始', width: 170 },
+    ],
+    formFields: [
+      { prop: 'endUserId', label: '用户ID', type: 'number', required: true },
+      { prop: 'deviceId', label: '设备标识', type: 'input' },
+      { prop: 'startedAt', label: '开始时间', type: 'input' },
+      { prop: 'endedAt', label: '结束时间', type: 'input' },
+      { prop: 'remark', label: '备注', type: 'textarea' },
+    ],
+  },
+  'admin-roles': {
+    title: '后台角色',
+    apiPath: '/v1/admin/roles',
+    columns: [
+      { prop: 'id', label: 'ID', width: 72 },
+      { prop: 'code', label: '编码', width: 140 },
+      { prop: 'name', label: '名称', minWidth: 120 },
+    ],
+    formFields: [
+      { prop: 'code', label: '角色编码', type: 'input', required: true },
+      { prop: 'name', label: '显示名', type: 'input', required: true },
+    ],
+  },
+}
+
+export function getResourceConfig(key) {
+  return RESOURCE_MAP[key]
+}

+ 244 - 0
openspec/admin-ui/src/layouts/AdminLayout.vue

@@ -0,0 +1,244 @@
+<template>
+  <el-container class="layout">
+    <el-aside width="240px" class="aside">
+      <div class="brand">
+        <img src="/favicon-leaf.svg" alt="logo" class="brand-logo" />
+        艾灸管理后台
+      </div>
+      <el-menu
+        class="sidebar-menu"
+        :default-active="active"
+        router
+        unique-opened
+      >
+        <el-menu-item index="/home">首页</el-menu-item>
+        <el-sub-menu index="dict">
+          <template #title>基础数据</template>
+          <el-menu-item v-for="m in menuDict" :key="m.path" :index="m.path">{{ m.title }}</el-menu-item>
+        </el-sub-menu>
+        <el-sub-menu index="biz">
+          <template #title>业务配置</template>
+          <el-menu-item v-for="m in menuBiz" :key="m.path" :index="m.path">{{ m.title }}</el-menu-item>
+        </el-sub-menu>
+        <el-sub-menu index="user">
+          <template #title>用户与设备</template>
+          <el-menu-item v-for="m in menuUser" :key="m.path" :index="m.path">{{ m.title }}</el-menu-item>
+        </el-sub-menu>
+        <el-menu-item index="/admin-users">后台账号</el-menu-item>
+        <el-menu-item index="/operation-logs">操作日志</el-menu-item>
+        <el-menu-item index="/localization">穴位定位预览</el-menu-item>
+      </el-menu>
+    </el-aside>
+    <el-container class="content-wrapper">
+      <el-header class="header">
+        <span class="title">{{ pageTitle }}</span>
+        <div class="right">
+          <div class="user-info">
+            <div class="user-avatar">{{ username.charAt(0).toUpperCase() }}</div>
+            <span class="user">{{ username }}</span>
+          </div>
+          <el-button link type="primary" @click="logout" style="margin-left: 12px;">退出登录</el-button>
+        </div>
+      </el-header>
+      <el-main class="main">
+        <router-view />
+      </el-main>
+    </el-container>
+  </el-container>
+</template>
+
+<script setup>
+import { computed } from 'vue'
+import { useRoute, useRouter } from 'vue-router'
+import { getResourceConfig } from '../config/resources'
+
+const route = useRoute()
+const router = useRouter()
+
+const active = computed(() => route.path)
+const username = computed(() => localStorage.getItem('admin_username') || 'A')
+
+const pageTitle = computed(() => {
+  if (route.name === 'crud') {
+    const c = getResourceConfig(route.params.resource)
+    return c?.title || '资源管理'
+  }
+  return route.meta?.title || '后台管理'
+})
+
+const menuDict = [
+  { path: '/crud/symptoms', title: '症状字典' },
+  { path: '/crud/body-regions', title: '身体部位' },
+  { path: '/crud/acupoints', title: '标准穴位' },
+]
+
+const menuBiz = [
+  { path: '/crud/efficacies', title: '功效' },
+  { path: '/crud/techniques', title: '手法' },
+  { path: '/crud/technique-combo-rules', title: '手法组合' },
+  { path: '/crud/device-models', title: '设备型号' },
+  { path: '/crud/algorithm-params', title: '算法参数集' },
+  { path: '/crud/efficacy-versions', title: '功效版本' },
+  { path: '/crud/algorithm-versions', title: '算法版本' },
+]
+
+const menuUser = [
+  { path: '/crud/accounts', title: 'C端账号' },
+  { path: '/crud/end-users', title: 'C端用户' },
+  { path: '/crud/user-fingerprints', title: '指纹' },
+  { path: '/crud/moxa-records', title: '艾灸记录' },
+  { path: '/crud/admin-roles', title: '后台角色' },
+]
+
+function logout() {
+  localStorage.removeItem('admin_token')
+  localStorage.removeItem('admin_username')
+  localStorage.removeItem('admin_roles')
+  router.push({ name: 'login' })
+}
+</script>
+
+<style scoped>
+.layout {
+  height: 100%;
+}
+.aside {
+  background: #ffffff;
+  border-right: 1px solid #f1f5f9;
+  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
+  z-index: 10;
+  display: flex;
+  flex-direction: column;
+}
+.brand {
+  height: 60px;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  gap: 8px;
+  color: #10b981;
+  font-size: 18px;
+  font-weight: 700;
+  letter-spacing: 0.05em;
+  border-bottom: 1px solid #f1f5f9;
+}
+.brand-logo {
+  width: 28px;
+  height: 28px;
+  flex-shrink: 0;
+}
+.sidebar-menu {
+  border-right: none;
+  flex: 1;
+  padding: 12px 0;
+  overflow-x: hidden;
+}
+.content-wrapper {
+  background: #f4f7f6;
+  display: flex;
+  flex-direction: column;
+}
+.header {
+  height: 60px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  background: #ffffff;
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
+  z-index: 9;
+  padding: 0 24px;
+}
+.title {
+  font-size: 16px;
+  font-weight: 600;
+  color: #334155;
+}
+.right {
+  display: flex;
+  align-items: center;
+}
+.user-info {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+}
+.user-avatar {
+  width: 32px;
+  height: 32px;
+  border-radius: 50%;
+  background: #ecfdf5;
+  color: #10b981;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  font-weight: 600;
+  font-size: 14px;
+}
+.user {
+  color: #475569;
+  font-size: 14px;
+  font-weight: 500;
+}
+.main {
+  background: transparent;
+  padding: 24px;
+}
+
+/* 一级菜单 */
+.sidebar-menu :deep(.el-menu-item) {
+  height: 44px;
+  line-height: 44px;
+  margin: 4px 12px;
+  border-radius: 8px;
+  color: #475569;
+  font-weight: 500;
+}
+
+.sidebar-menu :deep(.el-menu-item:hover) {
+  background-color: #f8fafc;
+  color: #10b981;
+}
+
+.sidebar-menu :deep(.el-menu-item.is-active) {
+  background-color: #ecfdf5;
+  color: #10b981;
+  font-weight: 600;
+}
+
+/* 一级分组标题 */
+.sidebar-menu :deep(.el-sub-menu__title) {
+  height: 44px;
+  line-height: 44px;
+  margin: 4px 12px;
+  border-radius: 8px;
+  color: #475569;
+  font-weight: 500;
+}
+.sidebar-menu :deep(.el-sub-menu__title:hover) {
+  background-color: #f8fafc;
+  color: #10b981;
+}
+
+/* 二级菜单 */
+.sidebar-menu :deep(.el-menu--inline) {
+  background-color: transparent;
+}
+.sidebar-menu :deep(.el-menu--inline .el-menu-item) {
+  height: 40px;
+  line-height: 40px;
+  margin: 4px 12px 4px 32px;
+  border-radius: 8px;
+  color: #64748b;
+  font-size: 13px;
+  font-weight: 400;
+}
+.sidebar-menu :deep(.el-menu--inline .el-menu-item:hover) {
+  background-color: #f8fafc;
+  color: #10b981;
+}
+.sidebar-menu :deep(.el-menu--inline .el-menu-item.is-active) {
+  background-color: #ecfdf5;
+  color: #10b981;
+  font-weight: 500;
+}
+</style>

+ 9 - 0
openspec/admin-ui/src/main.js

@@ -0,0 +1,9 @@
+import { createApp } from 'vue'
+import ElementPlus from 'element-plus'
+import 'element-plus/dist/index.css'
+import zhCn from 'element-plus/es/locale/lang/zh-cn'
+import App from './App.vue'
+import router from './router'
+import './style.css'
+
+createApp(App).use(router).use(ElementPlus, { locale: zhCn }).mount('#app')

+ 58 - 0
openspec/admin-ui/src/router/index.js

@@ -0,0 +1,58 @@
+import { createRouter, createWebHistory } from 'vue-router'
+import AdminLayout from '../layouts/AdminLayout.vue'
+
+const routes = [
+  {
+    path: '/login',
+    name: 'login',
+    component: () => import('../views/Login.vue'),
+    meta: { public: true },
+  },
+  {
+    path: '/',
+    component: AdminLayout,
+    redirect: '/home',
+    children: [
+      { path: 'home', name: 'home', component: () => import('../views/Home.vue'), meta: { title: '首页' } },
+      {
+        path: 'crud/:resource',
+        name: 'crud',
+        component: () => import('../views/resource/CrudView.vue'),
+        meta: { title: '资源' },
+      },
+      {
+        path: 'admin-users',
+        name: 'admin-users',
+        component: () => import('../views/AdminUsersView.vue'),
+        meta: { title: '后台账号' },
+      },
+      {
+        path: 'operation-logs',
+        name: 'operation-logs',
+        component: () => import('../views/OperationLogsView.vue'),
+        meta: { title: '操作日志' },
+      },
+      {
+        path: 'localization',
+        name: 'localization',
+        component: () => import('../views/LocalizationPreviewView.vue'),
+        meta: { title: '穴位定位预览' },
+      },
+    ],
+  },
+]
+
+const router = createRouter({
+  history: createWebHistory(),
+  routes,
+})
+
+router.beforeEach((to) => {
+  if (to.meta.public) return true
+  if (!localStorage.getItem('admin_token')) {
+    return { name: 'login', query: { redirect: to.fullPath } }
+  }
+  return true
+})
+
+export default router

+ 43 - 0
openspec/admin-ui/src/style.css

@@ -0,0 +1,43 @@
+* {
+  box-sizing: border-box;
+}
+
+:root {
+  /* Element Plus Theme Variables - Nature Green */
+  --el-color-primary: #10b981;
+  --el-color-primary-light-3: #4ade80;
+  --el-color-primary-light-5: #86efac;
+  --el-color-primary-light-7: #bbf7d0;
+  --el-color-primary-light-8: #dcfce7;
+  --el-color-primary-light-9: #f0fdf4;
+  --el-color-primary-dark-2: #059669;
+
+  /* Global Border Radius */
+  --el-border-radius-base: 8px;
+  --el-border-radius-small: 6px;
+  --el-border-radius-round: 20px;
+  --el-border-radius-circle: 100%;
+  
+  /* Global Box Shadow */
+  --el-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
+  --el-box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.03);
+  
+  /* Text Colors */
+  --el-text-color-primary: #334155;
+  --el-text-color-regular: #475569;
+  --el-text-color-secondary: #64748b;
+  
+  /* Card */
+  --el-card-border-radius: 12px;
+  --el-card-padding: 24px;
+}
+
+html,
+body,
+#app {
+  margin: 0;
+  height: 100%;
+  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
+  background-color: #f4f7f6;
+  color: var(--el-text-color-primary);
+}

+ 254 - 0
openspec/admin-ui/src/views/AdminUsersView.vue

@@ -0,0 +1,254 @@
+<template>
+  <el-card shadow="never" class="modern-card">
+    <div class="toolbar">
+      <el-button v-if="canManage" type="primary" @click="openCreate" class="btn-create">新建管理员</el-button>
+    </div>
+    <el-table :data="rows" class="modern-table" v-loading="loading" style="width: 100%">
+      <el-table-column prop="id" label="ID" width="72" />
+      <el-table-column prop="username" label="用户名" width="140" />
+      <el-table-column prop="displayName" label="显示名" min-width="120" />
+      <el-table-column prop="status" label="状态" width="100" />
+      <el-table-column prop="createTime" label="创建时间" width="170" />
+      <el-table-column label="操作" width="220" fixed="right">
+        <template #default="{ row }">
+          <el-button v-if="canManage" link type="primary" @click="openEdit(row)">编辑</el-button>
+          <el-button v-if="isSuper" link type="warning" @click="openPwd(row)">改密</el-button>
+          <el-button v-if="isSuper" link type="danger" @click="remove(row)">删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    <el-pagination
+      class="pager"
+      background
+      layout="total, prev, pager, next"
+      :total="total"
+      v-model:current-page="page.current"
+      :page-size="page.size"
+      @current-change="fetchList"
+    />
+
+    <el-dialog v-model="createVisible" title="新建管理员" width="480px" destroy-on-close>
+      <el-form ref="createRef" :model="createForm" :rules="createRules" label-width="88px">
+        <el-form-item label="用户名" prop="username">
+          <el-input v-model="createForm.username" />
+        </el-form-item>
+        <el-form-item label="密码" prop="password">
+          <el-input v-model="createForm.password" type="password" show-password />
+        </el-form-item>
+        <el-form-item label="显示名" prop="displayName">
+          <el-input v-model="createForm.displayName" />
+        </el-form-item>
+      </el-form>
+      <template #footer>
+        <el-button @click="createVisible = false">取消</el-button>
+        <el-button type="primary" :loading="saving" @click="submitCreate">创建</el-button>
+      </template>
+    </el-dialog>
+
+    <el-dialog v-model="editVisible" title="编辑管理员" width="480px" destroy-on-close>
+      <el-form ref="editRef" :model="editForm" label-width="88px">
+        <el-form-item label="用户名">
+          <el-input v-model="editForm.username" disabled />
+        </el-form-item>
+        <el-form-item label="显示名">
+          <el-input v-model="editForm.displayName" />
+        </el-form-item>
+        <el-form-item label="状态">
+          <el-input v-model="editForm.status" placeholder="ACTIVE" />
+        </el-form-item>
+      </el-form>
+      <template #footer>
+        <el-button @click="editVisible = false">取消</el-button>
+        <el-button type="primary" :loading="saving" @click="submitEdit">保存</el-button>
+      </template>
+    </el-dialog>
+
+    <el-dialog v-model="pwdVisible" title="重置密码(仅超级管理员)" width="440px" destroy-on-close>
+      <el-form ref="pwdRef" :model="pwdForm" :rules="pwdRules" label-width="100px">
+        <el-form-item label="新密码" prop="newPassword">
+          <el-input v-model="pwdForm.newPassword" type="password" show-password />
+        </el-form-item>
+      </el-form>
+      <template #footer>
+        <el-button @click="pwdVisible = false">取消</el-button>
+        <el-button type="primary" :loading="saving" @click="submitPwd">保存</el-button>
+      </template>
+    </el-dialog>
+  </el-card>
+</template>
+
+<script setup>
+import { computed, reactive, ref } from 'vue'
+import { ElMessageBox } from 'element-plus'
+import http from '../api/http'
+
+const roles = computed(() => {
+  try {
+    return JSON.parse(localStorage.getItem('admin_roles') || '[]')
+  } catch {
+    return []
+  }
+})
+const isSuper = computed(() => roles.value.includes('SUPER_ADMIN'))
+const canManage = computed(() => roles.value.some((r) => r === 'SUPER_ADMIN' || r === 'ADMIN'))
+
+const rows = ref([])
+const total = ref(0)
+const loading = ref(false)
+const page = reactive({ current: 1, size: 10 })
+
+const createVisible = ref(false)
+const createRef = ref()
+const createForm = reactive({ username: '', password: '', displayName: '' })
+const createRules = {
+  username: [{ required: true, message: '必填', trigger: 'blur' }],
+  password: [{ required: true, message: '必填', trigger: 'blur' }],
+}
+
+const editVisible = ref(false)
+const editRef = ref()
+const editForm = reactive({ id: null, username: '', displayName: '', status: '' })
+
+const pwdVisible = ref(false)
+const pwdRef = ref()
+const pwdForm = reactive({ userId: null, newPassword: '' })
+const pwdRules = {
+  newPassword: [{ required: true, message: '必填', trigger: 'blur' }],
+}
+
+const saving = ref(false)
+
+async function fetchList() {
+  loading.value = true
+  try {
+    const res = await http.get('/v1/admin/users', {
+      params: { current: page.current, size: page.size },
+    })
+    const pr = res.data || {}
+    rows.value = pr.records || []
+    total.value = pr.total || 0
+  } finally {
+    loading.value = false
+  }
+}
+
+fetchList()
+
+function openCreate() {
+  createForm.username = ''
+  createForm.password = ''
+  createForm.displayName = ''
+  createVisible.value = true
+}
+
+async function submitCreate() {
+  await createRef.value?.validate()
+  saving.value = true
+  try {
+    await http.post('/v1/admin/users', { ...createForm })
+    createVisible.value = false
+    await fetchList()
+  } finally {
+    saving.value = false
+  }
+}
+
+async function openEdit(row) {
+  const res = await http.get(`/v1/admin/users/${row.id}`)
+  const u = res.data
+  editForm.id = u.id
+  editForm.username = u.username
+  editForm.displayName = u.displayName || ''
+  editForm.status = u.status || 'ACTIVE'
+  editVisible.value = true
+}
+
+async function submitEdit() {
+  saving.value = true
+  try {
+    await http.put(`/v1/admin/users/${editForm.id}`, {
+      id: editForm.id,
+      username: editForm.username,
+      displayName: editForm.displayName,
+      status: editForm.status,
+    })
+    editVisible.value = false
+    await fetchList()
+  } finally {
+    saving.value = false
+  }
+}
+
+function openPwd(row) {
+  pwdForm.userId = row.id
+  pwdForm.newPassword = ''
+  pwdVisible.value = true
+}
+
+async function submitPwd() {
+  await pwdRef.value?.validate()
+  saving.value = true
+  try {
+    await http.put(`/v1/admin/users/${pwdForm.userId}/password`, {
+      newPassword: pwdForm.newPassword,
+    })
+    pwdVisible.value = false
+  } finally {
+    saving.value = false
+  }
+}
+
+async function remove(row) {
+  await ElMessageBox.confirm(`删除管理员 ${row.username}?`, '确认', { type: 'warning' })
+  await http.delete(`/v1/admin/users/${row.id}`)
+  await fetchList()
+}
+</script>
+
+<style scoped>
+.modern-card {
+  min-height: 400px;
+  border: none;
+  border-radius: 12px;
+  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
+  padding: 4px;
+}
+.toolbar {
+  margin-bottom: 20px;
+  padding: 0 4px;
+}
+.btn-create {
+  border-radius: 6px;
+  padding: 8px 20px;
+  font-weight: 500;
+  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
+}
+.pager {
+  margin-top: 24px;
+  justify-content: flex-end;
+  padding-right: 4px;
+}
+
+/* Modern Table Overrides */
+.modern-table {
+  border-radius: 8px;
+  overflow: hidden;
+}
+.modern-table :deep(.el-table__inner-wrapper::before) {
+  display: none;
+}
+.modern-table :deep(th.el-table__cell) {
+  background-color: #f8fafc;
+  color: #475569;
+  font-weight: 600;
+  border-bottom: 1px solid #e2e8f0;
+  padding: 12px 0;
+}
+.modern-table :deep(td.el-table__cell) {
+  border-bottom: 1px solid #f1f5f9;
+  padding: 12px 0;
+}
+.modern-table :deep(.el-table__row:hover > td.el-table__cell) {
+  background-color: #f8fafc;
+}
+</style>

+ 104 - 0
openspec/admin-ui/src/views/Home.vue

@@ -0,0 +1,104 @@
+<template>
+  <div class="home">
+    <el-card class="welcome-card" shadow="never">
+      <div class="welcome-header">
+        <div class="welcome-avatar">{{ username.charAt(0).toUpperCase() }}</div>
+        <div>
+          <h2>欢迎回来,{{ username }}</h2>
+          <p class="role-text">当前角色:<el-tag size="small" type="success" effect="light" round>{{ rolesText }}</el-tag></p>
+        </div>
+      </div>
+      <el-divider />
+      <div class="welcome-links">
+        <p class="muted">
+          <span class="icon">🔗</span> 后端 API 文档:
+          <el-link type="primary" href="/swagger-ui.html" target="_blank" class="font-medium">Swagger UI</el-link>
+          <span class="sub-muted">(需后端 8888,若单独开前端请直接访问后端地址)</span>
+        </p>
+        <p class="muted">
+          <span class="icon">💡</span> 提示:左侧菜单进入各模块的增删改查;穴位列表支持筛选「艾灸椅产品穴位」。
+        </p>
+      </div>
+    </el-card>
+  </div>
+</template>
+
+<script setup>
+import { computed } from 'vue'
+
+const username = computed(() => localStorage.getItem('admin_username') || '-')
+const rolesText = computed(() => {
+  try {
+    const r = JSON.parse(localStorage.getItem('admin_roles') || '[]')
+    return Array.isArray(r) && r.length ? r.join(', ') : '无'
+  } catch {
+    return '-'
+  }
+})
+</script>
+
+<style scoped>
+.home {
+  max-width: 960px;
+}
+.welcome-card {
+  border: none;
+  border-radius: 12px;
+  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
+  padding: 8px;
+}
+.welcome-header {
+  display: flex;
+  align-items: center;
+  gap: 20px;
+  padding: 8px 0;
+}
+.welcome-avatar {
+  width: 64px;
+  height: 64px;
+  border-radius: 16px;
+  background: linear-gradient(135deg, #34d399, #10b981);
+  color: white;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  font-size: 28px;
+  font-weight: bold;
+  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
+}
+.welcome-header h2 {
+  margin: 0 0 8px 0;
+  font-size: 20px;
+  color: #0f172a;
+  font-weight: 600;
+}
+.role-text {
+  margin: 0;
+  color: #64748b;
+  font-size: 14px;
+  display: flex;
+  align-items: center;
+  gap: 8px;
+}
+.welcome-links p {
+  display: flex;
+  align-items: center;
+  margin: 16px 0;
+}
+.icon {
+  margin-right: 8px;
+  font-size: 16px;
+}
+.muted {
+  color: #475569;
+  font-size: 14px;
+}
+.sub-muted {
+  color: #94a3b8;
+  font-size: 13px;
+  margin-left: 4px;
+}
+.font-medium {
+  font-weight: 500;
+}
+</style>

+ 775 - 0
openspec/admin-ui/src/views/LocalizationPreviewView.vue

@@ -0,0 +1,775 @@
+<template>
+  <el-card shadow="never" class="modern-card">
+    <div class="preview-main">
+    <div class="preview-form-col">
+    <el-form :model="form" label-width="120px" class="form" :rules="formRules" ref="formRef">
+      <el-form-item label="穴位">
+        <el-select
+          v-model="selectedCodes"
+          multiple
+          filterable
+          collapse-tags
+          collapse-tags-tooltip
+          placeholder="下拉选择穴位(含编号),可多选"
+          style="width: 100%"
+          :loading="optionsLoading"
+        >
+          <el-option
+            v-for="opt in acupointOptions"
+            :key="opt.code"
+            :label="opt.label"
+            :value="opt.code"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="设备型号编码">
+        <el-input v-model="form.deviceModelCode" placeholder="可选,如 CHAIR-DEFAULT" />
+      </el-form-item>
+
+      <el-divider>用户体态</el-divider>
+
+      <el-form-item label="用户 ID">
+        <el-select
+          v-model="form.user.userId"
+          filterable
+          clearable
+          placeholder="可选,选择后自动填充"
+          style="width: 100%"
+          :loading="usersLoading"
+          @change="onUserSelect"
+        >
+          <el-option
+            v-for="u in userOptions"
+            :key="u.id"
+            :label="`${u.displayName || '未命名'} (ID: ${u.id})`"
+            :value="u.id"
+          />
+        </el-select>
+      </el-form-item>
+
+      <el-form-item label="肩宽 cm" prop="shoulderWidthCm" required>
+        <el-input v-model="form.user.shoulderWidthCm" placeholder="必填" />
+      </el-form-item>
+      <el-form-item label="脊柱长度 cm" prop="spineLengthCm" required>
+        <el-input v-model="form.user.spineLengthCm" placeholder="必填,C7-S4 实测距离" />
+      </el-form-item>
+      <el-form-item label="指寸 cm">
+        <el-input v-model="form.user.fingerCunCm" placeholder="可选,中指中节长度" />
+      </el-form-item>
+      <el-form-item label="身高 cm" :required="!form.user.fingerCunCm">
+        <el-input v-model="form.user.heightCm" :placeholder="form.user.fingerCunCm ? '可选' : '指寸未填时必填'" />
+      </el-form-item>
+      <el-form-item label="体重 kg" :required="!form.user.fingerCunCm">
+        <el-input v-model="form.user.weightKg" :placeholder="form.user.fingerCunCm ? '可选' : '指寸未填时必填'" />
+      </el-form-item>
+      <el-form-item label="性别">
+        <el-select v-model="form.user.gender" placeholder="可选" clearable style="width: 100%">
+          <el-option label="男" value="M" />
+          <el-option label="女" value="F" />
+        </el-select>
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" :loading="loading" @click="preview">调用预览</el-button>
+      </el-form-item>
+    </el-form>
+
+    <!-- 指寸摘要 -->
+    <div v-if="result && result.finalFingerCunMm" class="cun-summary">
+      <div class="cun-summary-title">指寸计算摘要</div>
+      <div class="cun-row" v-if="result.userFingerCunMm">
+        <span class="cun-label">方法一(用户输入)</span>
+        <span class="cun-val">{{ fmt(result.userFingerCunMm) }} mm</span>
+      </div>
+      <div class="cun-row">
+        <span class="cun-label">方法二(标准人换算)</span>
+        <span class="cun-val">{{ fmt(result.derivedFingerCunMm) }} mm</span>
+      </div>
+      <div class="cun-row cun-final">
+        <span class="cun-label">最终指寸</span>
+        <span class="cun-val">{{ fmt(result.finalFingerCunMm) }} mm</span>
+      </div>
+    </div>
+    </div>
+
+    <div class="preview-model-col">
+    <div class="model-section-title">穴位定位示意图(背部:与您面对患者后背时的左右一致)</div>
+    <div class="body-model-container">
+      <div class="body-canvas-wrap">
+        <svg viewBox="0 0 340 520" xmlns="http://www.w3.org/2000/svg" class="body-svg">
+        <defs>
+          <pattern id="loc-grid" width="24" height="24" patternUnits="userSpaceOnUse">
+            <path d="M 24 0 L 0 0 0 24" fill="none" stroke="rgba(99,102,241,0.06)" stroke-width="1" />
+          </pattern>
+          <radialGradient id="canvasWash" cx="50%" cy="18%" r="75%">
+            <stop offset="0%" stop-color="#f8fafc" />
+            <stop offset="55%" stop-color="#f1f5f9" />
+            <stop offset="100%" stop-color="#e8eef5" />
+          </radialGradient>
+          <linearGradient id="bodyGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+            <stop offset="0%" stop-color="#fdf8f5" />
+            <stop offset="35%" stop-color="#f5ebe3" />
+            <stop offset="100%" stop-color="#e8ddd4" />
+          </linearGradient>
+          <linearGradient id="bodyStrokeGrad" x1="0%" y1="0%" x2="0%" y2="100%">
+            <stop offset="0%" stop-color="#c9b8a8" />
+            <stop offset="100%" stop-color="#a8988a" />
+          </linearGradient>
+          <filter id="bodyShadow" x="-25%" y="-15%" width="150%" height="130%">
+            <feDropShadow dx="0" dy="8" stdDeviation="10" flood-color="#5c4a3d" flood-opacity="0.12" />
+          </filter>
+        </defs>
+
+        <rect width="100%" height="100%" fill="url(#canvasWash)" rx="14" />
+        <rect width="100%" height="100%" fill="url(#loc-grid)" rx="14" opacity="0.85" />
+
+        <line class="axis-line axis-v" x1="170" y1="12" x2="170" y2="508" />
+        <line class="axis-line axis-h" x1="12" y1="85" x2="328" y2="85" />
+
+        <g class="body-silhouette" filter="url(#bodyShadow)" stroke="url(#bodyStrokeGrad)" stroke-width="1.35" stroke-linejoin="round" stroke-linecap="round">
+          <path d="
+            M 170 18
+            C 158 18, 148 26, 146 42
+            C 144 54, 148 68, 152 78
+            C 154 84, 138 88, 118 94
+            C 98 102, 84 112, 76 124
+            C 70 138, 66 158, 64 182
+            C 62 210, 58 242, 54 268
+            C 50 288, 46 298, 52 304
+            C 58 310, 72 302, 82 282
+            C 92 258, 96 228, 100 198
+            C 104 172, 108 152, 112 158
+            C 116 168, 118 198, 120 232
+            C 124 278, 128 318, 130 348
+            C 132 388, 126 438, 120 472
+            C 116 492, 112 504, 124 508
+            C 138 512, 148 508, 152 486
+            C 158 448, 164 392, 170 368
+            C 176 392, 182 448, 188 486
+            C 192 508, 202 512, 216 508
+            C 228 504, 224 492, 220 472
+            C 214 438, 208 388, 210 348
+            C 212 318, 216 278, 220 232
+            C 222 198, 224 168, 228 158
+            C 232 152, 236 172, 240 198
+            C 244 228, 248 258, 258 282
+            C 268 302, 282 310, 288 304
+            C 294 298, 290 288, 286 268
+            C 282 242, 278 210, 276 182
+            C 274 158, 270 138, 264 124
+            C 256 112, 242 102, 222 94
+            C 202 88, 186 84, 188 78
+            C 192 68, 196 54, 194 42
+            C 192 26, 182 18, 170 18
+            Z" fill="url(#bodyGrad)" />
+
+          <path class="body-detail" d="M 128 102 C 118 108, 108 128, 114 158 C 118 172, 132 176, 138 162 C 144 142, 142 118, 128 102 Z" fill="none" stroke="rgba(92,74,61,0.2)" stroke-width="1.2" />
+          <path class="body-detail" d="M 212 102 C 222 108, 232 128, 226 158 C 222 172, 208 176, 202 162 C 196 142, 198 118, 212 102 Z" fill="none" stroke="rgba(92,74,61,0.2)" stroke-width="1.2" />
+          <path class="body-detail" d="M 128 312 C 148 338, 162 348, 170 342 C 178 348, 192 338, 212 312" fill="none" stroke="rgba(92,74,61,0.16)" stroke-width="1.2" />
+        </g>
+
+        <line class="spine-guide" x1="170" y1="75" x2="170" y2="330" />
+
+        <g class="c7-marker" transform="translate(170, 85)">
+          <circle class="c7-pulse" cx="0" cy="0" r="14" fill="none" stroke="#e85d5d" stroke-width="1" opacity="0.35" />
+          <circle cx="0" cy="0" r="5" fill="#fff" stroke="#e85d5d" stroke-width="2" />
+          <line x1="-11" y1="0" x2="-5" y2="0" stroke="#e85d5d" stroke-width="1.8" stroke-linecap="round" />
+          <line x1="5" y1="0" x2="11" y2="0" stroke="#e85d5d" stroke-width="1.8" stroke-linecap="round" />
+          <line x1="0" y1="-11" x2="0" y2="-5" stroke="#e85d5d" stroke-width="1.8" stroke-linecap="round" />
+          <line x1="0" y1="5" x2="0" y2="11" stroke="#e85d5d" stroke-width="1.8" stroke-linecap="round" />
+          <text x="15" y="4" class="c7-label">C7 大椎原点</text>
+        </g>
+
+        <text x="176" y="22" class="axis-label">↑ 头侧 (+Y)</text>
+        <text x="176" y="508" class="axis-label">↓ 尾侧 (-Y)</text>
+        <text x="14" y="78" class="axis-label">患者左 (−X)</text>
+        <text x="326" y="78" text-anchor="end" class="axis-label">患者右 (+X)</text>
+
+        <g v-for="(m, idx) in markers" :key="idx" class="acu-marker">
+          <circle :cx="m.x" :cy="m.y" r="10" :fill="m.color" opacity="0.22" />
+          <circle :cx="m.x" :cy="m.y" r="5.5" :fill="m.color" stroke="#fff" stroke-width="2" class="marker-dot" />
+          <text
+            :x="m.x" :y="m.y + 3.8"
+            text-anchor="middle"
+            class="marker-index"
+          >
+            {{ m.num }}
+            <title>{{ m.tip }}</title>
+          </text>
+          <text
+            :x="m.labelX" :y="m.y + 4"
+            :text-anchor="m.anchor"
+            class="marker-name"
+            :fill="m.color"
+          >
+            {{ m.name }}
+            <title>{{ m.tip }}</title>
+          </text>
+        </g>
+
+        <g v-if="!markers.length" class="empty-hint">
+          <rect x="48" y="228" width="244" height="52" rx="26" class="empty-hint-bg" />
+          <text x="170" y="252" text-anchor="middle" class="empty-hint-title">尚未定位</text>
+          <text x="170" y="268" text-anchor="middle" class="empty-hint-sub">点击「调用预览」在模型上标注穴位</text>
+        </g>
+      </svg>
+      </div>
+
+      <!-- 图例 -->
+      <div v-if="resultItems.length" class="marker-legend">
+        <div class="legend-title">穴位坐标对比</div>
+        <div class="legend-chips">
+          <span class="chip chip-ok"><i class="chip-dot" /> 通过</span>
+          <span class="chip chip-bad"><i class="chip-dot" /> 越界</span>
+          <span class="chip chip-muted"><i class="chip-dot" /> 其他</span>
+        </div>
+        <div class="legend-table-wrap">
+        <table class="legend-table">
+          <thead>
+            <tr>
+              <th>#</th>
+              <th>穴位</th>
+              <th v-if="hasDualMethod" colspan="2">方法一(用户指寸)</th>
+              <th colspan="2">方法二(标准换算)</th>
+              <th colspan="2">最终(均值)</th>
+              <th>状态</th>
+            </tr>
+            <tr class="sub-header">
+              <th></th>
+              <th></th>
+              <th v-if="hasDualMethod">X</th>
+              <th v-if="hasDualMethod">Y</th>
+              <th>X</th>
+              <th>Y</th>
+              <th>X</th>
+              <th>Y</th>
+              <th></th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr v-for="(item, idx) in resultItems" :key="idx">
+              <td>{{ idx + 1 }}</td>
+              <td>{{ item.acupointName || item.acupointCode }}{{ sideLabel(item.side) }}</td>
+              <td v-if="hasDualMethod" class="num">{{ fmt(item.method1BodyX) }}</td>
+              <td v-if="hasDualMethod" class="num">{{ fmt(item.method1BodyY) }}</td>
+              <td class="num">{{ fmt(item.method2BodyX) }}</td>
+              <td class="num">{{ fmt(item.method2BodyY) }}</td>
+              <td class="num final-col">{{ fmt(item.bodyX) }}</td>
+              <td class="num final-col">{{ fmt(item.bodyY) }}</td>
+              <td>
+                <span :style="{ color: statusColor(item.validationStatus) }">
+                  {{ statusText(item.validationStatus) }}
+                </span>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+        </div>
+      </div>
+    </div>
+    </div>
+    </div>
+
+    <el-divider>响应 data</el-divider>
+    <pre class="json">{{ resultText }}</pre>
+  </el-card>
+</template>
+
+<script setup>
+import { computed, onMounted, reactive, ref } from 'vue'
+import http from '../api/http'
+
+const selectedCodes = ref(['dumai-14'])
+const acupointOptions = ref([])
+const optionsLoading = ref(false)
+const userOptions = ref([])
+const usersLoading = ref(false)
+const formRef = ref(null)
+
+const form = reactive({
+  deviceModelCode: '',
+  user: {
+    userId: undefined,
+    heightCm: '',
+    weightKg: '',
+    shoulderWidthCm: '',
+    spineLengthCm: '',
+    fingerCunCm: '',
+    gender: '',
+  },
+})
+
+const formRules = {
+  shoulderWidthCm: [{ required: true, message: '肩宽为必填项', trigger: 'blur' }],
+  spineLengthCm: [{ required: true, message: '脊柱长度为必填项', trigger: 'blur' }],
+}
+
+const loading = ref(false)
+const result = ref(null)
+
+const resultText = computed(() => {
+  if (result.value == null) return '(暂无)'
+  try { return JSON.stringify(result.value, null, 2) }
+  catch { return String(result.value) }
+})
+
+const resultItems = computed(() => {
+  const items = result.value?.items
+  return Array.isArray(items) ? items : []
+})
+
+const hasDualMethod = computed(() => {
+  return resultItems.value.some((it) => it.method1BodyX != null)
+})
+
+// ── 坐标映射(人体 mm → SVG px) ──
+const SVG_C7_X = 170
+const SVG_C7_Y = 85
+const SCALE = 0.36
+
+function bodyToSvg(bodyX, bodyY) {
+  return {
+    x: SVG_C7_X + bodyX * SCALE,
+    y: SVG_C7_Y - bodyY * SCALE,
+  }
+}
+
+const markers = computed(() => {
+  return resultItems.value
+    .filter((it) => it.bodyX != null && it.bodyY != null)
+    .map((it, idx) => {
+      const { x, y } = bodyToSvg(Number(it.bodyX), Number(it.bodyY))
+      const ok = it.validationStatus === 'VALIDATION_OK'
+      const bad = it.validationStatus === 'OUT_OF_RANGE'
+      const color = ok ? '#2d9d5a' : bad ? '#e85d5d' : '#7a8494'
+      const onRight = x > SVG_C7_X
+      const name = (it.acupointName || it.acupointCode) + sideLabel(it.side)
+      return {
+        num: idx + 1,
+        x, y, color, name,
+        labelX: onRight ? x - 12 : x + 12,
+        anchor: onRight ? 'end' : 'start',
+        tip: `${it.acupointCode}${sideLabel(it.side)}  最终=(${it.bodyX}, ${it.bodyY})  device=(${it.deviceX}, ${it.deviceY})  ${it.validationStatus}`,
+      }
+    })
+})
+
+function sideLabel(side) {
+  if (!side || side === 'CENTER') return ''
+  return side === 'LEFT' ? '·左' : '·右'
+}
+
+function statusColor(s) {
+  if (s === 'VALIDATION_OK') return '#2d9d5a'
+  if (s === 'OUT_OF_RANGE') return '#e85d5d'
+  return '#7a8494'
+}
+
+function statusText(s) {
+  if (s === 'VALIDATION_OK') return '✓'
+  if (s === 'OUT_OF_RANGE') return '越界'
+  if (s === 'ACUPOINT_NOT_FOUND') return '未找到'
+  if (s === 'NO_COORDINATES') return '无坐标'
+  return s || '-'
+}
+
+function fmt(v) {
+  return v != null ? Number(v).toFixed(2) : '-'
+}
+
+// ── 用户下拉 ──
+async function loadUserOptions() {
+  usersLoading.value = true
+  try {
+    const res = await http.get('/v1/end-users/options')
+    userOptions.value = Array.isArray(res.data) ? res.data : []
+  } catch {
+    userOptions.value = []
+  } finally {
+    usersLoading.value = false
+  }
+}
+
+function onUserSelect(userId) {
+  if (!userId) {
+    form.user.heightCm = ''
+    form.user.weightKg = ''
+    form.user.shoulderWidthCm = ''
+    form.user.spineLengthCm = ''
+    form.user.fingerCunCm = ''
+    form.user.gender = ''
+    return
+  }
+  const u = userOptions.value.find((x) => x.id === userId)
+  if (!u) return
+  form.user.heightCm = u.heightCm ?? ''
+  form.user.weightKg = u.weightKg ?? ''
+  form.user.shoulderWidthCm = u.shoulderWidthCm ?? ''
+  form.user.spineLengthCm = u.spineLengthCm ?? ''
+  form.user.fingerCunCm = u.fingerCunCm ?? ''
+  form.user.gender = u.gender ?? ''
+}
+
+// ── 穴位下拉 ──
+async function loadAcupointOptions() {
+  optionsLoading.value = true
+  try {
+    const res = await http.get('/v1/acupoints', { params: { current: 1, size: 5000 } })
+    const records = res.data?.records ?? []
+    acupointOptions.value = records
+      .filter((a) => a.code)
+      .map((a) => ({ code: a.code, label: `${a.name || '(未命名)'} · ${a.code}` }))
+      .sort((a, b) => a.code.localeCompare(b.code, 'zh-Hans-CN'))
+  } catch {
+    acupointOptions.value = []
+  } finally {
+    optionsLoading.value = false
+  }
+}
+
+onMounted(() => {
+  loadAcupointOptions()
+  loadUserOptions()
+})
+
+// ── 调用预览 ──
+async function preview() {
+  const acupointCodes = [...selectedCodes.value].filter(Boolean)
+  if (!acupointCodes.length) {
+    result.value = { error: '请至少选择一个穴位' }
+    return
+  }
+
+  if (!form.user.shoulderWidthCm) {
+    result.value = { error: '肩宽为必填项' }
+    return
+  }
+  if (!form.user.spineLengthCm) {
+    result.value = { error: '脊柱长度为必填项' }
+    return
+  }
+  if (!form.user.fingerCunCm && (!form.user.heightCm || !form.user.weightKg)) {
+    result.value = { error: '未填写指寸值时,身高和体重为必填项' }
+    return
+  }
+
+  loading.value = true
+  try {
+    const user = {}
+    if (form.user.userId != null && form.user.userId !== '') user.userId = form.user.userId
+    if (form.user.heightCm !== '') user.heightCm = form.user.heightCm
+    if (form.user.weightKg !== '') user.weightKg = form.user.weightKg
+    if (form.user.shoulderWidthCm !== '') user.shoulderWidthCm = form.user.shoulderWidthCm
+    if (form.user.spineLengthCm !== '') user.spineLengthCm = form.user.spineLengthCm
+    if (form.user.fingerCunCm !== '') user.fingerCunCm = form.user.fingerCunCm
+    if (form.user.gender !== '') user.gender = form.user.gender
+    const body = {
+      acupointCodes,
+      deviceModelCode: form.deviceModelCode || undefined,
+      user: Object.keys(user).length ? user : undefined,
+    }
+    const res = await http.post('/preview', body)
+    result.value = res.data
+  } catch (e) {
+    result.value = { error: e.message }
+  } finally {
+    loading.value = false
+  }
+}
+</script>
+
+<style scoped>
+.modern-card {
+  border: none;
+  border-radius: 12px;
+  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
+}
+.preview-main {
+  display: flex;
+  flex-wrap: wrap;
+  align-items: flex-start;
+  gap: 28px 36px;
+}
+
+.preview-form-col {
+  flex: 1 1 320px;
+  min-width: 260px;
+  max-width: 640px;
+}
+
+.preview-model-col {
+  flex: 0 1 auto;
+  min-width: 280px;
+  max-width: 100%;
+  display: flex;
+  flex-direction: column;
+  gap: 14px;
+  position: sticky;
+  top: 12px;
+  align-self: flex-start;
+}
+
+.model-section-title {
+  margin: 0;
+  padding-bottom: 10px;
+  font-size: 14px;
+  font-weight: 600;
+  color: var(--el-text-color-primary);
+  border-bottom: 1px solid var(--el-border-color-lighter);
+  letter-spacing: 0.02em;
+}
+
+.form {
+  max-width: none;
+}
+.json {
+  background: #1e1e1e;
+  color: #d4d4d4;
+  padding: 16px;
+  border-radius: 8px;
+  overflow: auto;
+  max-height: 480px;
+  font-size: 13px;
+  line-height: 1.5;
+}
+
+/* ── 指寸摘要 ── */
+.cun-summary {
+  margin-top: 16px;
+  padding: 14px 18px;
+  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
+  border: 1px solid #bbf7d0;
+  border-radius: 10px;
+}
+.cun-summary-title {
+  font-size: 13px;
+  font-weight: 700;
+  color: #166534;
+  margin-bottom: 8px;
+}
+.cun-row {
+  display: flex;
+  justify-content: space-between;
+  font-size: 13px;
+  padding: 3px 0;
+  color: #334155;
+}
+.cun-label { color: #64748b; }
+.cun-val { font-family: ui-monospace, monospace; font-weight: 600; }
+.cun-final {
+  border-top: 1px dashed #86efac;
+  padding-top: 6px;
+  margin-top: 4px;
+  font-weight: 700;
+}
+.cun-final .cun-label { color: #166534; }
+
+/* ── 人体模型区域 ── */
+.body-model-container {
+  display: flex;
+  gap: 28px;
+  align-items: flex-start;
+  flex-wrap: wrap;
+}
+
+.body-canvas-wrap {
+  padding: 4px;
+  background: linear-gradient(145deg, #fff 0%, #f4f6f9 100%);
+  border-radius: 18px;
+  box-shadow:
+    0 1px 2px rgba(15, 23, 42, 0.04),
+    0 12px 40px -12px rgba(15, 23, 42, 0.12);
+  border: 1px solid rgba(255, 255, 255, 0.8);
+}
+
+.body-svg {
+  display: block;
+  width: 320px;
+  min-width: 260px;
+  max-width: 100%;
+  border-radius: 14px;
+  vertical-align: top;
+}
+
+.body-svg :deep(.axis-line) {
+  stroke: rgba(148, 163, 184, 0.45);
+  stroke-width: 1;
+}
+.body-svg :deep(.axis-v) {
+  stroke-dasharray: 4 6;
+}
+.body-svg :deep(.axis-h) {
+  stroke-dasharray: 5 5;
+}
+.body-svg :deep(.axis-label) {
+  font-size: 10px;
+  fill: #94a3b8;
+  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
+  letter-spacing: 0.02em;
+}
+.body-svg :deep(.spine-guide) {
+  stroke: rgba(99, 102, 241, 0.38);
+  stroke-width: 2;
+  stroke-dasharray: 8 6;
+  stroke-linecap: round;
+  animation: spine-dash 24s linear infinite;
+}
+@keyframes spine-dash {
+  to {
+    stroke-dashoffset: -420;
+  }
+}
+.body-svg :deep(.c7-label) {
+  font-size: 11px;
+  fill: #c24141;
+  font-weight: 700;
+  font-family: system-ui, -apple-system, sans-serif;
+}
+.body-svg :deep(.c7-pulse) {
+  transform-box: fill-box;
+  transform-origin: center;
+  animation: c7-pulse 2.2s ease-out infinite;
+}
+@keyframes c7-pulse {
+  0% {
+    transform: scale(0.55);
+    opacity: 0.55;
+  }
+  100% {
+    transform: scale(1.35);
+    opacity: 0;
+  }
+}
+.body-svg :deep(.marker-index) {
+  font-size: 8px;
+  font-weight: 800;
+  fill: #fff;
+  font-family: system-ui, sans-serif;
+  pointer-events: none;
+}
+.body-svg :deep(.marker-name) {
+  font-size: 10px;
+  font-weight: 700;
+  font-family: system-ui, sans-serif;
+  paint-order: stroke fill;
+  stroke: rgba(255, 255, 255, 0.92);
+  stroke-width: 3px;
+  stroke-linejoin: round;
+}
+.body-svg :deep(.empty-hint-bg) {
+  fill: rgba(255, 255, 255, 0.72);
+  stroke: rgba(148, 163, 184, 0.35);
+  stroke-width: 1;
+  filter: drop-shadow(0 4px 20px rgba(15, 23, 42, 0.08));
+}
+.body-svg :deep(.empty-hint-title) {
+  font-size: 13px;
+  fill: #475569;
+  font-weight: 600;
+  font-family: system-ui, sans-serif;
+}
+.body-svg :deep(.empty-hint-sub) {
+  font-size: 11px;
+  fill: #94a3b8;
+  font-family: system-ui, sans-serif;
+}
+
+.marker-legend {
+  flex: 1;
+  min-width: 280px;
+  max-width: 620px;
+  padding: 16px 18px;
+  background: linear-gradient(180deg, #fafbfc 0%, #fff 40%);
+  border-radius: 14px;
+  border: 1px solid #eef0f4;
+  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
+}
+.legend-title {
+  font-size: 14px;
+  font-weight: 700;
+  color: #1e293b;
+  margin-bottom: 10px;
+  letter-spacing: 0.02em;
+}
+.legend-chips {
+  display: flex;
+  flex-wrap: wrap;
+  gap: 8px;
+  margin-bottom: 14px;
+}
+.chip {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
+  font-size: 12px;
+  color: #64748b;
+  padding: 4px 10px;
+  border-radius: 999px;
+  background: #f1f5f9;
+  border: 1px solid #e2e8f0;
+}
+.chip-dot {
+  width: 8px;
+  height: 8px;
+  border-radius: 50%;
+  display: inline-block;
+}
+.chip-ok .chip-dot {
+  background: #2d9d5a;
+  box-shadow: 0 0 0 2px rgba(45, 157, 90, 0.2);
+}
+.chip-bad .chip-dot {
+  background: #e85d5d;
+  box-shadow: 0 0 0 2px rgba(232, 93, 93, 0.2);
+}
+.chip-muted .chip-dot {
+  background: #7a8494;
+}
+
+.legend-table-wrap {
+  overflow-x: auto;
+}
+.legend-table {
+  width: 100%;
+  border-collapse: separate;
+  border-spacing: 0;
+  font-size: 12px;
+  border-radius: 10px;
+  overflow: hidden;
+  border: 1px solid #eef0f4;
+  white-space: nowrap;
+}
+.legend-table th,
+.legend-table td {
+  padding: 7px 8px;
+  text-align: left;
+  border-bottom: 1px solid #f1f5f9;
+}
+.legend-table tr:last-child td {
+  border-bottom: none;
+}
+.legend-table th {
+  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
+  font-weight: 600;
+  color: #475569;
+  font-size: 11px;
+}
+.legend-table .sub-header th {
+  font-size: 10px;
+  font-weight: 500;
+  color: #94a3b8;
+  padding: 2px 8px;
+}
+.legend-table tbody tr:hover td {
+  background: #f8fafc;
+}
+.legend-table td.num {
+  text-align: right;
+  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
+  font-size: 11px;
+  color: #334155;
+}
+.legend-table td.final-col {
+  font-weight: 700;
+  color: #166534;
+}
+</style>

+ 120 - 0
openspec/admin-ui/src/views/Login.vue

@@ -0,0 +1,120 @@
+<template>
+  <div class="login-page">
+    <div class="login-container">
+      <div class="login-header">
+        <h2>艾灸 PC 后台</h2>
+        <p>欢迎回来,请登录您的账号</p>
+      </div>
+      <el-card class="login-card" :body-style="{ padding: '32px' }">
+        <el-form :model="form" :rules="rules" ref="formRef" label-width="0" size="large" @submit.prevent>
+          <el-form-item prop="username">
+            <el-input v-model="form.username" placeholder="用户名" autocomplete="username" />
+          </el-form-item>
+          <el-form-item prop="password">
+            <el-input v-model="form.password" type="password" placeholder="密码" show-password autocomplete="current-password" />
+          </el-form-item>
+          <el-form-item>
+            <el-button type="primary" :loading="loading" class="login-btn" @click="submit">登 录</el-button>
+          </el-form-item>
+        </el-form>
+        <p class="hint">默认账号见后端 db/migration 种子 SQL(一般为 admin / admin)</p>
+      </el-card>
+    </div>
+  </div>
+</template>
+
+<script setup>
+import { reactive, ref } from 'vue'
+import { useRoute, useRouter } from 'vue-router'
+import http from '../api/http'
+
+const router = useRouter()
+const route = useRoute()
+const formRef = ref()
+const loading = ref(false)
+const form = reactive({
+  username: '',
+  password: '',
+})
+const rules = {
+  username: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
+  password: [{ required: true, message: '请输入密码', trigger: 'blur' }],
+}
+
+async function submit() {
+  await formRef.value?.validate()
+  loading.value = true
+  try {
+    const res = await http.post('/v1/auth/login', {
+      username: form.username,
+      password: form.password,
+    })
+    const data = res.data
+    localStorage.setItem('admin_token', data.token)
+    localStorage.setItem('admin_username', data.username)
+    localStorage.setItem('admin_roles', JSON.stringify(data.roles || []))
+    const redirect = route.query.redirect || '/home'
+    router.replace(typeof redirect === 'string' ? redirect : '/home')
+  } finally {
+    loading.value = false
+  }
+}
+</script>
+
+<style scoped>
+.login-page {
+  min-height: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  background: #f0fdf4;
+  background-image: radial-gradient(circle at 50% 0%, #dcfce7 0%, transparent 50%),
+                    radial-gradient(circle at 0% 50%, #e0f2fe 0%, transparent 50%);
+}
+.login-container {
+  width: 400px;
+  max-width: 92vw;
+}
+.login-header {
+  text-align: center;
+  margin-bottom: 24px;
+}
+.login-header h2 {
+  margin: 0;
+  font-size: 28px;
+  color: #0f172a;
+  font-weight: 600;
+  letter-spacing: 1px;
+}
+.login-header p {
+  margin: 8px 0 0;
+  font-size: 14px;
+  color: #64748b;
+}
+.login-card {
+  border: none;
+  border-radius: 16px;
+  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
+  background: rgba(255, 255, 255, 0.9);
+  backdrop-filter: blur(10px);
+}
+.login-btn {
+  width: 100%;
+  height: 44px;
+  font-size: 16px;
+  font-weight: 500;
+  border-radius: 8px;
+  margin-top: 8px;
+  transition: all 0.3s ease;
+}
+.login-btn:hover {
+  transform: translateY(-1px);
+  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
+}
+.hint {
+  margin: 16px 0 0;
+  font-size: 12px;
+  color: #94a3b8;
+  text-align: center;
+}
+</style>

+ 86 - 0
openspec/admin-ui/src/views/OperationLogsView.vue

@@ -0,0 +1,86 @@
+<template>
+  <el-card shadow="never" class="modern-card">
+    <el-table :data="rows" class="modern-table" v-loading="loading" style="width: 100%">
+      <el-table-column prop="id" label="ID" width="72" />
+      <el-table-column prop="username" label="操作人" width="120" />
+      <el-table-column prop="action" label="动作" min-width="200" show-overflow-tooltip />
+      <el-table-column prop="resourceType" label="资源" width="120" />
+      <el-table-column prop="resourceId" label="资源ID" width="100" />
+      <el-table-column prop="ip" label="IP" width="130" />
+      <el-table-column prop="createTime" label="时间" width="170" />
+    </el-table>
+    <el-pagination
+      class="pager"
+      background
+      layout="total, prev, pager, next"
+      :total="total"
+      v-model:current-page="page.current"
+      :page-size="page.size"
+      @current-change="fetchList"
+    />
+  </el-card>
+</template>
+
+<script setup>
+import { reactive, ref } from 'vue'
+import http from '../api/http'
+
+const rows = ref([])
+const total = ref(0)
+const loading = ref(false)
+const page = reactive({ current: 1, size: 20 })
+
+async function fetchList() {
+  loading.value = true
+  try {
+    const res = await http.get('/v1/operation-logs', {
+      params: { current: page.current, size: page.size },
+    })
+    const pr = res.data || {}
+    rows.value = pr.records || []
+    total.value = pr.total || 0
+  } finally {
+    loading.value = false
+  }
+}
+
+fetchList()
+</script>
+
+<style scoped>
+.modern-card {
+  min-height: 400px;
+  border: none;
+  border-radius: 12px;
+  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
+  padding: 4px;
+}
+.pager {
+  margin-top: 24px;
+  justify-content: flex-end;
+  padding-right: 4px;
+}
+
+/* Modern Table Overrides */
+.modern-table {
+  border-radius: 8px;
+  overflow: hidden;
+}
+.modern-table :deep(.el-table__inner-wrapper::before) {
+  display: none;
+}
+.modern-table :deep(th.el-table__cell) {
+  background-color: #f8fafc;
+  color: #475569;
+  font-weight: 600;
+  border-bottom: 1px solid #e2e8f0;
+  padding: 12px 0;
+}
+.modern-table :deep(td.el-table__cell) {
+  border-bottom: 1px solid #f1f5f9;
+  padding: 12px 0;
+}
+.modern-table :deep(.el-table__row:hover > td.el-table__cell) {
+  background-color: #f8fafc;
+}
+</style>

+ 273 - 0
openspec/admin-ui/src/views/resource/CrudView.vue

@@ -0,0 +1,273 @@
+<template>
+  <el-card v-if="cfg" shadow="never" class="crud-card">
+    <div class="toolbar">
+      <el-button type="primary" @click="openCreate" class="btn-create">新建数据</el-button>
+      <div v-if="cfg.chairProductFilter" class="filter">
+        <span>艾灸椅穴位:</span>
+        <el-select v-model="chairFilter" clearable placeholder="全部" style="width: 120px" @change="onFilterChange">
+          <el-option label="是" :value="true" />
+          <el-option label="否" :value="false" />
+        </el-select>
+      </div>
+    </div>
+    <el-table :data="rows" class="modern-table" v-loading="loading" style="width: 100%">
+      <el-table-column
+        v-for="col in cfg.columns"
+        :key="col.prop"
+        :prop="col.prop"
+        :label="col.label"
+        :width="col.width"
+        :min-width="col.minWidth"
+        :formatter="col.prop === 'chairProduct' ? formatChair : undefined"
+      />
+      <el-table-column label="操作" width="160" fixed="right">
+        <template #default="{ row }">
+          <el-button link type="primary" @click="openEdit(row)">编辑</el-button>
+          <el-button link type="danger" @click="remove(row)">删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    <el-pagination
+      class="pager"
+      background
+      layout="total, prev, pager, next, sizes"
+      :total="total"
+      v-model:current-page="page.current"
+      v-model:page-size="page.size"
+      :page-sizes="[10, 20, 50]"
+      @current-change="fetchList"
+      @size-change="fetchList"
+    />
+    <el-dialog v-model="dialogVisible" :title="dialogTitle" width="640px" destroy-on-close @closed="onDialogClose">
+      <el-form ref="formRef" :model="form" :rules="formRules" label-width="120px" class="edit-form">
+        <el-form-item
+          v-for="f in cfg.formFields"
+          :key="f.prop"
+          :label="f.label"
+          :prop="f.prop"
+        >
+          <el-input v-if="f.type === 'input'" v-model="form[f.prop]" />
+          <el-input v-else-if="f.type === 'textarea'" v-model="form[f.prop]" type="textarea" :rows="4" />
+          <el-input-number v-else-if="f.type === 'number'" v-model="form[f.prop]" :controls="true" style="width: 100%" />
+        </el-form-item>
+      </el-form>
+      <template #footer>
+        <el-button @click="dialogVisible = false">取消</el-button>
+        <el-button type="primary" :loading="saving" @click="save">保存</el-button>
+      </template>
+    </el-dialog>
+  </el-card>
+  <el-empty v-else description="未知资源路径" />
+</template>
+
+<script setup>
+import { computed, reactive, ref, watch } from 'vue'
+
+function formatChair(row) {
+  return row.chairProduct === 1 ? '是' : '否'
+}
+import { useRoute } from 'vue-router'
+import { ElMessageBox } from 'element-plus'
+import http from '../../api/http'
+import { getResourceConfig } from '../../config/resources'
+
+const route = useRoute()
+const key = computed(() => route.params.resource)
+const cfg = computed(() => getResourceConfig(key.value))
+
+const rows = ref([])
+const total = ref(0)
+const loading = ref(false)
+const page = reactive({ current: 1, size: 10 })
+const chairFilter = ref(undefined)
+
+const dialogVisible = ref(false)
+const dialogMode = ref('create')
+const dialogTitle = computed(() => (dialogMode.value === 'create' ? '新建' : '编辑'))
+const saving = ref(false)
+const formRef = ref()
+const form = reactive({})
+const detailBackup = ref(null)
+
+const formRules = computed(() => {
+  const r = {}
+  if (!cfg.value) return r
+  for (const f of cfg.value.formFields) {
+    if (f.required) {
+      r[f.prop] = [{ required: true, message: `请填写${f.label}`, trigger: 'blur' }]
+    }
+  }
+  return r
+})
+
+function emptyForm() {
+  for (const k of Object.keys(form)) delete form[k]
+  if (!cfg.value) return
+  for (const f of cfg.value.formFields) {
+    form[f.prop] = f.type === 'number' ? undefined : ''
+  }
+}
+
+function onFilterChange() {
+  page.current = 1
+  fetchList()
+}
+
+async function fetchList() {
+  if (!cfg.value) return
+  loading.value = true
+  try {
+    const params = { current: page.current, size: page.size }
+    if (cfg.value.chairProductFilter && chairFilter.value !== undefined && chairFilter.value !== null) {
+      params.chairProduct = chairFilter.value
+    }
+    const res = await http.get(cfg.value.apiPath, { params })
+    const pr = res.data || {}
+    rows.value = pr.records || []
+    total.value = pr.total || 0
+  } finally {
+    loading.value = false
+  }
+}
+
+function openCreate() {
+  dialogMode.value = 'create'
+  detailBackup.value = null
+  emptyForm()
+  dialogVisible.value = true
+}
+
+async function openEdit(row) {
+  dialogMode.value = 'edit'
+  const res = await http.get(`${cfg.value.apiPath}/${row.id}`)
+  const d = res.data
+  detailBackup.value = d
+  emptyForm()
+  for (const f of cfg.value.formFields) {
+    let v = d[f.prop]
+    if (f.type === 'number' && v !== null && v !== undefined && v !== '') {
+      v = Number(v)
+    }
+    form[f.prop] = v ?? (f.type === 'number' ? undefined : '')
+  }
+  dialogVisible.value = true
+}
+
+function buildPayload() {
+  const payload = {}
+  for (const f of cfg.value.formFields) {
+    let v = form[f.prop]
+    if (f.type === 'number') {
+      payload[f.prop] = v === '' || v === undefined ? null : Number(v)
+    } else {
+      payload[f.prop] = v === '' ? null : v
+    }
+  }
+  if (dialogMode.value === 'edit' && detailBackup.value) {
+    return { ...detailBackup.value, ...payload }
+  }
+  return payload
+}
+
+async function save() {
+  await formRef.value?.validate()
+  saving.value = true
+  try {
+    if (dialogMode.value === 'create') {
+      await http.post(cfg.value.apiPath, buildPayload())
+    } else {
+      const id = detailBackup.value.id
+      await http.put(`${cfg.value.apiPath}/${id}`, buildPayload())
+    }
+    dialogVisible.value = false
+    await fetchList()
+  } finally {
+    saving.value = false
+  }
+}
+
+async function remove(row) {
+  await ElMessageBox.confirm(`确定删除 ID ${row.id}?`, '确认', { type: 'warning' })
+  await http.delete(`${cfg.value.apiPath}/${row.id}`)
+  await fetchList()
+}
+
+function onDialogClose() {
+  detailBackup.value = null
+}
+
+watch(
+  key,
+  () => {
+    chairFilter.value = undefined
+    page.current = 1
+    if (cfg.value) {
+      fetchList()
+    }
+  },
+  { immediate: true }
+)
+</script>
+
+<style scoped>
+.crud-card {
+  min-height: 400px;
+  border: none;
+  border-radius: 12px;
+  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
+  padding: 4px;
+}
+.toolbar {
+  display: flex;
+  align-items: center;
+  gap: 16px;
+  margin-bottom: 20px;
+  padding: 0 4px;
+}
+.btn-create {
+  border-radius: 6px;
+  padding: 8px 20px;
+  font-weight: 500;
+  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
+}
+.filter {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  font-size: 14px;
+  color: #475569;
+}
+.pager {
+  margin-top: 24px;
+  justify-content: flex-end;
+  padding-right: 4px;
+}
+.edit-form {
+  max-height: 60vh;
+  overflow-y: auto;
+  padding-right: 16px;
+}
+
+/* Modern Table Overrides */
+.modern-table {
+  border-radius: 8px;
+  overflow: hidden;
+}
+.modern-table :deep(.el-table__inner-wrapper::before) {
+  display: none;
+}
+.modern-table :deep(th.el-table__cell) {
+  background-color: #f8fafc;
+  color: #475569;
+  font-weight: 600;
+  border-bottom: 1px solid #e2e8f0;
+  padding: 12px 0;
+}
+.modern-table :deep(td.el-table__cell) {
+  border-bottom: 1px solid #f1f5f9;
+  padding: 12px 0;
+}
+.modern-table :deep(.el-table__row:hover > td.el-table__cell) {
+  background-color: #f8fafc;
+}
+</style>

+ 17 - 0
openspec/admin-ui/vite.config.js

@@ -0,0 +1,17 @@
+import { defineConfig } from 'vite'
+import vue from '@vitejs/plugin-vue'
+import mkcert from 'vite-plugin-mkcert'
+
+export default defineConfig({
+  plugins: [vue(), mkcert()],
+  server: {
+    port: 5173,
+    proxy: {
+      '/api': {
+        target: 'https://localhost:8888',
+        changeOrigin: true,
+        secure: false,
+      },
+    },
+  },
+})

+ 105 - 0
openspec/pom.xml

@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.7.18</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>com.aijiuyi</groupId>
+    <artifactId>aijiuyi-admin</artifactId>
+    <version>0.1.0-SNAPSHOT</version>
+    <name>aijiuyi-admin</name>
+    <description>PC admin API for acupoint / moxibustion backend</description>
+
+    <properties>
+        <java.version>1.8</java.version>
+        <mybatis-plus.version>3.5.5</mybatis-plus.version>
+        <springdoc.version>1.7.0</springdoc.version>
+        <jjwt.version>0.11.5</jjwt.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-security</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-validation</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-aop</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+            <version>${mybatis-plus.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.mysql</groupId>
+            <artifactId>mysql-connector-j</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springdoc</groupId>
+            <artifactId>springdoc-openapi-ui</artifactId>
+            <version>${springdoc.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>io.jsonwebtoken</groupId>
+            <artifactId>jjwt-api</artifactId>
+            <version>${jjwt.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>io.jsonwebtoken</groupId>
+            <artifactId>jjwt-impl</artifactId>
+            <version>${jjwt.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.jsonwebtoken</groupId>
+            <artifactId>jjwt-jackson</artifactId>
+            <version>${jjwt.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+            <optional>true</optional>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.security</groupId>
+            <artifactId>spring-security-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+</project>

+ 211 - 0
openspec/scripts/generate_seed_sql.py

@@ -0,0 +1,211 @@
+# -*- coding: utf-8 -*-
+"""
+从《智能穴位识别数据模型》xlsx 生成种子 SQL,并写回 V1__init.sql 中
+「-- >>> GENERATED_SEED_START」与「-- <<< GENERATED_SEED_END」之间的内容。
+
+读取工作表:
+  - 第 1 张:穴位数据模型(筛选「艾灸椅产品穴位」为「是」,且身体部位∈{背部,颈部},
+    部位分区∈{背部,骶区,颈后部,腰部};列名支持「身体部位」或「身体补位」)
+  - 第 2 张:症状模型 -> symptom
+  - 第 3 张:部位定位模型 -> body_region
+
+并追加:admin_role、admin_user(默认 admin/admin 的 BCrypt)、admin_user_role、device_model。
+需在环境中安装:pip install openpyxl
+"""
+import glob
+import os
+
+try:
+    import openpyxl
+except ImportError:
+    raise SystemExit("pip install openpyxl")
+
+BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+os.chdir(BASE)
+
+V1_SQL = os.path.join(BASE, "src", "main", "resources", "db", "migration", "V1__init.sql")
+START_TAG = "-- >>> GENERATED_SEED_START"
+END_TAG = "-- <<< GENERATED_SEED_END"
+
+
+def esc(s):
+    if s is None:
+        return "NULL"
+    s = str(s).replace("\\", "\\\\").replace("'", "''").replace("\r", " ").replace("\n", " ")
+    return "'" + s + "'"
+
+
+def main():
+    paths = glob.glob(os.path.join(BASE, "*数据模型*.xlsx"))
+    if not paths:
+        paths = glob.glob(os.path.join(BASE, "*.xlsx"))
+        paths = [p for p in paths if "数据模型" in os.path.basename(p) or "模型" in os.path.basename(p)]
+    if not paths:
+        raise SystemExit("No data model xlsx found")
+    path = paths[0]
+    wb = openpyxl.load_workbook(path, read_only=True, data_only=True)
+
+    lines = []
+    lines.append("SET FOREIGN_KEY_CHECKS = 0;")
+
+    # Symptoms sheet 2
+    ws_sym = wb[wb.sheetnames[1]]
+    rows_sym = list(ws_sym.iter_rows(values_only=True))
+    lines.append("")
+    lines.append("-- 症状字典(Excel「症状模型」)")
+    lines.append("INSERT IGNORE INTO symptom (code, name) VALUES ")
+    vals = []
+    for row in rows_sym[1:]:
+        if not row or row[0] is None:
+            continue
+        code = esc(str(row[0]).strip())
+        name = esc(str(row[1]).strip() if len(row) > 1 and row[1] is not None else "")
+        vals.append("({0}, {1})".format(code, name))
+    lines.append(",\n".join(vals) + ";")
+
+    # Body regions sheet 3
+    ws_br = wb[wb.sheetnames[2]]
+    rows_br = list(ws_br.iter_rows(values_only=True))
+    lines.append("")
+    lines.append("-- 身体部位与分区(Excel「部位定位模型」)")
+    lines.append("INSERT IGNORE INTO body_region (body_part, region_partition) VALUES ")
+    vals = []
+    for row in rows_br[1:]:
+        if row is None:
+            continue
+        bp = row[0]
+        rp = row[1]
+        if bp is None and rp is None:
+            continue
+        vals.append("({0}, {1})".format(esc(bp), esc(rp)))
+    lines.append(",\n".join(vals) + ";")
+
+    # Acupoints sheet 1
+    ws = wb[wb.sheetnames[0]]
+    header = next(ws.iter_rows(min_row=1, max_row=1, values_only=True))
+    h = list(header)
+
+    def col(*names):
+        for n in names:
+            if n in h:
+                return h.index(n)
+        raise SystemExit("Excel 表头缺少列: " + " / ".join(names))
+
+    idx_chair = col("艾灸椅产品穴位")
+    idx_body = col("身体部位", "身体补位")
+    cols = {
+        "serial_no": h.index("序号"),
+        "code": h.index("穴位编号"),
+        "name": h.index("穴位名称"),
+        "side_type": h.index("单/双穴"),
+        "meridian": h.index("所属经络"),
+        "body_region": idx_body,
+        "region_partition": h.index("部位分区"),
+        "location_text": h.index("穴位定位"),
+        "relative_position_text": h.index("相对位置"),
+        "indications": h.index("主管疾病"),
+        "symptom_coverage": h.index("产品症状覆盖"),
+        "acupoint_method": h.index("取穴"),
+        "remark": len(h) - 1,
+    }
+
+    allowed_body = {"背部", "颈部"}
+    allowed_partition = {"背部", "骶区", "颈后部", "腰部"}
+
+    lines.append("")
+    lines.append(
+        "-- 标准穴位:艾灸椅=是 ∧ 身体部位∈(背部,颈部) ∧ 部位分区∈(背部,骶区,颈后部,腰部)"
+    )
+    lines.append(
+        "INSERT IGNORE INTO acupoint (serial_no, code, name, side_type, meridian, body_region, region_partition, "
+        "location_text, relative_position_text, indications, symptom_coverage, acupoint_method, chair_product, remark) VALUES "
+    )
+    vals = []
+    for row in ws.iter_rows(min_row=2, values_only=True):
+        if not row or row[idx_chair] != "是":
+            continue
+        r = list(row) + [None] * 20
+
+        def g(key):
+            i = cols[key]
+            v = r[i] if i < len(r) else None
+            return v
+
+        br = g("body_region")
+        rp = g("region_partition")
+        if br is None or rp is None:
+            continue
+        brs = str(br).strip()
+        rps = str(rp).strip()
+        if brs not in allowed_body or rps not in allowed_partition:
+            continue
+
+        remark = r[cols["remark"]] if cols["remark"] < len(r) else None
+        vals.append(
+            "({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, 1, {12})".format(
+                esc(g("serial_no")),
+                esc(g("code")),
+                esc(g("name")),
+                esc(g("side_type")),
+                esc(g("meridian")),
+                esc(g("body_region")),
+                esc(g("region_partition")),
+                esc(g("location_text")),
+                esc(g("relative_position_text")),
+                esc(g("indications")),
+                esc(g("symptom_coverage")),
+                esc(g("acupoint_method")),
+                esc(remark),
+            )
+        )
+    lines.append(",\n".join(vals) + ";")
+
+    bcrypt_password = "$2b$10$yW9CwM2u/vqz4CGZsQXPyeiKYtsu4PbAj.vKstKoY4hbFT6I0LiNm"
+    lines.append("")
+    lines.append("-- 后台角色、默认管理员、默认设备(联调)")
+    lines.append(
+        "INSERT IGNORE INTO admin_role (code, name) VALUES "
+        "('SUPER_ADMIN', '超级管理员'), ('ADMIN', '管理员'), ('OPERATOR', '运营');"
+    )
+    lines.append(
+        "INSERT IGNORE INTO admin_user (username, password_hash, display_name, status) VALUES "
+        "('admin', '{0}', '系统管理员', 'ACTIVE');".format(bcrypt_password)
+    )
+    lines.append("INSERT IGNORE INTO admin_user_role (admin_user_id, admin_role_id) VALUES (1, 1);")
+    lines.append(
+        "INSERT IGNORE INTO device_model (code, name, stroke_range_x, stroke_range_y, stroke_range_z, "
+        "origin_offset_x, origin_offset_y, origin_offset_z, safety_distance) VALUES "
+        "('CHAIR-DEFAULT', '默认艾灸椅', 800, 600, 400, 0, 0, 0, 10);"
+    )
+    lines.append("-- INSERT IGNORE 不更新已存在的 admin 行:将管理员 admin 密码统一为明文 admin(BCrypt)")
+    lines.append(
+        "UPDATE admin_user SET password_hash = '{0}' WHERE username = 'admin' AND deleted = 0;".format(
+            bcrypt_password
+        )
+    )
+    lines.append("")
+    lines.append("SET FOREIGN_KEY_CHECKS = 1;")
+
+    with open(V1_SQL, encoding="utf-8") as f:
+        content = f.read()
+    clines = content.splitlines()
+    si = ei = None
+    for i, L in enumerate(clines):
+        if L.strip() == START_TAG:
+            si = i
+        elif si is not None and L.strip() == END_TAG:
+            ei = i
+            break
+    if si is None or ei is None or ei <= si:
+        raise SystemExit("{0} 中缺少 {1} / {2} 标记".format(V1_SQL, START_TAG, END_TAG))
+
+    new_clines = clines[: si + 1] + lines + clines[ei:]
+    with open(V1_SQL, "w", encoding="utf-8", newline="\n") as f:
+        f.write("\n".join(new_clines) + "\n")
+
+    print("Updated seed in", V1_SQL, "acupoints:", len(vals))
+    wb.close()
+
+
+if __name__ == "__main__":
+    main()

+ 17 - 0
openspec/src/main/java/com/aijiuyi/admin/AdminApplication.java

@@ -0,0 +1,17 @@
+package com.aijiuyi.admin;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * 艾灸 PC 后台应用入口:整合 Spring Boot、MyBatis-Plus、安全认证;库表由 resources/db/migration 下 SQL 手工维护或自行导入。
+ */
+@SpringBootApplication
+@MapperScan("com.aijiuyi.admin.mapper")
+public class AdminApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(AdminApplication.class, args);
+    }
+}

+ 32 - 0
openspec/src/main/java/com/aijiuyi/admin/common/ApiResponse.java

@@ -0,0 +1,32 @@
+package com.aijiuyi.admin.common;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * 统一 REST 响应体:code(0 成功)、message、data。
+ *
+ * @param <T> 业务数据类型
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class ApiResponse<T> {
+
+    private int code;
+    private String message;
+    private T data;
+
+    public static <T> ApiResponse<T> ok(T data) {
+        return new ApiResponse<>(0, "OK", data);
+    }
+
+    public static <T> ApiResponse<T> ok() {
+        return ok(null);
+    }
+
+    public static <T> ApiResponse<T> fail(int code, String message) {
+        return new ApiResponse<>(code, message, null);
+    }
+}

+ 22 - 0
openspec/src/main/java/com/aijiuyi/admin/common/BusinessException.java

@@ -0,0 +1,22 @@
+package com.aijiuyi.admin.common;
+
+/**
+ * 业务异常:携带业务错误码与提示信息,由 {@link GlobalExceptionHandler} 转为 {@link ApiResponse}。
+ */
+public class BusinessException extends RuntimeException {
+
+    private final int code;
+
+    public BusinessException(String message) {
+        this(400, message);
+    }
+
+    public BusinessException(int code, String message) {
+        super(message);
+        this.code = code;
+    }
+
+    public int getCode() {
+        return code;
+    }
+}

+ 54 - 0
openspec/src/main/java/com/aijiuyi/admin/common/GlobalExceptionHandler.java

@@ -0,0 +1,54 @@
+package com.aijiuyi.admin.common;
+
+import org.springframework.http.HttpStatus;
+import org.springframework.security.access.AccessDeniedException;
+import org.springframework.security.authentication.BadCredentialsException;
+import org.springframework.validation.BindException;
+import org.springframework.web.bind.MethodArgumentNotValidException;
+import org.springframework.web.bind.annotation.ExceptionHandler;
+import org.springframework.web.bind.annotation.ResponseStatus;
+import org.springframework.web.bind.annotation.RestControllerAdvice;
+
+/**
+ * 全局异常处理:业务异常、参数校验、认证与通用异常的统一 JSON 响应。
+ */
+@RestControllerAdvice
+public class GlobalExceptionHandler {
+
+    @ExceptionHandler(BusinessException.class)
+    @ResponseStatus(HttpStatus.OK)
+    public ApiResponse<Void> handleBusiness(BusinessException e) {
+        return ApiResponse.fail(e.getCode(), e.getMessage());
+    }
+
+    @ExceptionHandler({MethodArgumentNotValidException.class, BindException.class})
+    @ResponseStatus(HttpStatus.BAD_REQUEST)
+    public ApiResponse<Void> handleValidation(Exception e) {
+        String msg = e.getMessage();
+        if (e instanceof MethodArgumentNotValidException) {
+            MethodArgumentNotValidException ex = (MethodArgumentNotValidException) e;
+            if (ex.getBindingResult().getFieldError() != null) {
+                msg = ex.getBindingResult().getFieldError().getDefaultMessage();
+            }
+        }
+        return ApiResponse.fail(400, msg);
+    }
+
+    @ExceptionHandler(BadCredentialsException.class)
+    @ResponseStatus(HttpStatus.UNAUTHORIZED)
+    public ApiResponse<Void> handleBadCredentials(BadCredentialsException e) {
+        return ApiResponse.fail(401, "用户名或密码错误");
+    }
+
+    @ExceptionHandler(AccessDeniedException.class)
+    @ResponseStatus(HttpStatus.FORBIDDEN)
+    public ApiResponse<Void> handleDenied(AccessDeniedException e) {
+        return ApiResponse.fail(403, "无权限");
+    }
+
+    @ExceptionHandler(Exception.class)
+    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
+    public ApiResponse<Void> handleOther(Exception e) {
+        return ApiResponse.fail(500, e.getMessage() != null ? e.getMessage() : "服务器错误");
+    }
+}

+ 33 - 0
openspec/src/main/java/com/aijiuyi/admin/common/PageResult.java

@@ -0,0 +1,33 @@
+package com.aijiuyi.admin.common;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+/**
+ * 分页列表对外结构,与 MyBatis-Plus {@link com.baomidou.mybatisplus.core.metadata.IPage} 对齐。
+ *
+ * @param <T> 记录类型
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class PageResult<T> {
+
+    private List<T> records;
+    private long total;
+    private long current;
+    private long size;
+
+    public static <T> PageResult<T> of(IPage<T> page) {
+        return new PageResult<>(
+                page.getRecords(),
+                page.getTotal(),
+                page.getCurrent(),
+                page.getSize()
+        );
+    }
+}

+ 43 - 0
openspec/src/main/java/com/aijiuyi/admin/config/MybatisPlusConfig.java

@@ -0,0 +1,43 @@
+package com.aijiuyi.admin.config;
+
+import com.baomidou.mybatisplus.annotation.DbType;
+import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
+import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
+import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
+import org.apache.ibatis.reflection.MetaObject;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import java.time.LocalDateTime;
+
+/**
+ * MyBatis-Plus 全局配置:分页插件(MySQL)、插入/更新时自动填充 createTime、updateTime、createdAt。
+ */
+@Configuration
+public class MybatisPlusConfig {
+
+    @Bean
+    public MybatisPlusInterceptor mybatisPlusInterceptor() {
+        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
+        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
+        return interceptor;
+    }
+
+    @Bean
+    public MetaObjectHandler metaObjectHandler() {
+        return new MetaObjectHandler() {
+            @Override
+            public void insertFill(MetaObject metaObject) {
+                LocalDateTime now = LocalDateTime.now();
+                strictInsertFill(metaObject, "createTime", LocalDateTime.class, now);
+                strictInsertFill(metaObject, "updateTime", LocalDateTime.class, now);
+                strictInsertFill(metaObject, "createdAt", LocalDateTime.class, now);
+            }
+
+            @Override
+            public void updateFill(MetaObject metaObject) {
+                strictUpdateFill(metaObject, "updateTime", LocalDateTime.class, LocalDateTime.now());
+            }
+        };
+    }
+}

+ 33 - 0
openspec/src/main/java/com/aijiuyi/admin/config/OpenApiConfig.java

@@ -0,0 +1,33 @@
+package com.aijiuyi.admin.config;
+
+import io.swagger.v3.oas.models.Components;
+import io.swagger.v3.oas.models.OpenAPI;
+import io.swagger.v3.oas.models.info.Info;
+import io.swagger.v3.oas.models.security.SecurityRequirement;
+import io.swagger.v3.oas.models.security.SecurityScheme;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * OpenAPI 3 / Swagger UI 文档配置:API 说明与全局 Bearer JWT 安全方案。
+ */
+@Configuration
+public class OpenApiConfig {
+
+    @Bean
+    public OpenAPI openAPI() {
+        final String scheme = "bearerAuth";
+        return new OpenAPI()
+                .info(new Info()
+                        .title("艾灸 PC 后台 API")
+                        .description("功效库、穴位、手法、算法、用户、系统管理(JWT)")
+                        .version("0.1.0"))
+                .addSecurityItem(new SecurityRequirement().addList(scheme))
+                .components(new Components().addSecuritySchemes(scheme,
+                        new SecurityScheme()
+                                .name(scheme)
+                                .type(SecurityScheme.Type.HTTP)
+                                .scheme("bearer")
+                                .bearerFormat("JWT")));
+    }
+}

+ 117 - 0
openspec/src/main/java/com/aijiuyi/admin/config/SecurityConfig.java

@@ -0,0 +1,117 @@
+package com.aijiuyi.admin.config;
+
+import com.aijiuyi.admin.security.JwtAuthenticationFilter;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.MediaType;
+import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
+import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
+import org.springframework.security.config.http.SessionCreationPolicy;
+import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
+import org.springframework.security.crypto.password.PasswordEncoder;
+import org.springframework.security.web.AuthenticationEntryPoint;
+import org.springframework.security.web.SecurityFilterChain;
+import org.springframework.security.web.access.AccessDeniedHandler;
+import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
+import org.springframework.web.cors.CorsConfiguration;
+import org.springframework.web.cors.CorsConfigurationSource;
+import org.springframework.http.HttpHeaders;
+import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+/**
+ * Spring Security 配置:无状态 JWT、CORS、公开登录与 Swagger 路径,其余接口需认证。
+ */
+@Configuration
+@EnableWebSecurity
+@EnableGlobalMethodSecurity(prePostEnabled = true)
+public class SecurityConfig {
+
+    private final JwtAuthenticationFilter jwtAuthenticationFilter;
+
+    public SecurityConfig(JwtAuthenticationFilter jwtAuthenticationFilter) {
+        this.jwtAuthenticationFilter = jwtAuthenticationFilter;
+    }
+
+    @Bean
+    public PasswordEncoder passwordEncoder() {
+        return new BCryptPasswordEncoder();
+    }
+
+    @Bean
+    public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
+        http.csrf().disable()
+                .cors().configurationSource(corsConfigurationSource())
+                .and()
+                .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
+                .and()
+                .exceptionHandling()
+                    .authenticationEntryPoint(authenticationEntryPoint())
+                    .accessDeniedHandler(accessDeniedHandler())
+                .and()
+                .authorizeRequests()
+                .antMatchers("/", "/favicon.ico").permitAll()
+                .antMatchers("/api/v1/auth/login").permitAll()
+                .antMatchers(
+                        "/swagger-ui/**",
+                        "/swagger-ui.html",
+                        "/v3/api-docs/**",
+                        "/v3/api-docs",
+                        "/swagger-resources/**",
+                        "/webjars/**"
+                ).permitAll()
+                .antMatchers("/error").permitAll()
+                .anyRequest().authenticated()
+                .and()
+                .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);
+        return http.build();
+    }
+
+    @Bean
+    public AuthenticationEntryPoint authenticationEntryPoint() {
+        return (request, response, authException) -> {
+            response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
+            response.setContentType(MediaType.APPLICATION_JSON_VALUE);
+            response.setCharacterEncoding("UTF-8");
+            Map<String, Object> body = new LinkedHashMap<>();
+            body.put("code", 401);
+            body.put("message", "登录已失效,请重新登录");
+            body.put("data", null);
+            new ObjectMapper().writeValue(response.getOutputStream(), body);
+        };
+    }
+
+    @Bean
+    public AccessDeniedHandler accessDeniedHandler() {
+        return (request, response, accessDeniedException) -> {
+            response.setStatus(HttpServletResponse.SC_FORBIDDEN);
+            response.setContentType(MediaType.APPLICATION_JSON_VALUE);
+            response.setCharacterEncoding("UTF-8");
+            Map<String, Object> body = new LinkedHashMap<>();
+            body.put("code", 403);
+            body.put("message", "无权限");
+            body.put("data", null);
+            new ObjectMapper().writeValue(response.getOutputStream(), body);
+        };
+    }
+
+    @Bean
+    public CorsConfigurationSource corsConfigurationSource() {
+        CorsConfiguration cfg = new CorsConfiguration();
+        cfg.setAllowedOriginPatterns(Collections.singletonList("*"));
+        cfg.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
+        cfg.setAllowedHeaders(Collections.singletonList("*"));
+        cfg.setExposedHeaders(Collections.singletonList(HttpHeaders.AUTHORIZATION));
+        cfg.setAllowCredentials(false);
+        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
+        source.registerCorsConfiguration("/**", cfg);
+        return source;
+    }
+}

+ 16 - 0
openspec/src/main/java/com/aijiuyi/admin/dto/CreateAdminRequest.java

@@ -0,0 +1,16 @@
+package com.aijiuyi.admin.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+
+/** 新建后台管理员请求(明文密码仅用于传输,服务端 BCrypt 后落库)。 */
+@Data
+public class CreateAdminRequest {
+
+    @NotBlank
+    private String username;
+    @NotBlank
+    private String password;
+    private String displayName;
+}

+ 19 - 0
openspec/src/main/java/com/aijiuyi/admin/dto/LocalizationPreviewRequest.java

@@ -0,0 +1,19 @@
+package com.aijiuyi.admin.dto;
+
+import com.aijiuyi.admin.service.algorithm.UserAnthropometryInput;
+import lombok.Data;
+
+import javax.validation.Valid;
+import javax.validation.constraints.NotEmpty;
+import java.util.List;
+
+/** 穴位定位预览请求:用户体态 + 穴位编号列表 + 可选设备型号。 */
+@Data
+public class LocalizationPreviewRequest {
+
+    @Valid
+    private UserAnthropometryInput user;
+    @NotEmpty
+    private List<String> acupointCodes;
+    private String deviceModelCode;
+}

+ 15 - 0
openspec/src/main/java/com/aijiuyi/admin/dto/LoginRequest.java

@@ -0,0 +1,15 @@
+package com.aijiuyi.admin.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+
+/** 管理员登录请求体。 */
+@Data
+public class LoginRequest {
+
+    @NotBlank
+    private String username;
+    @NotBlank
+    private String password;
+}

+ 18 - 0
openspec/src/main/java/com/aijiuyi/admin/dto/LoginResponse.java

@@ -0,0 +1,18 @@
+package com.aijiuyi.admin.dto;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+/** 登录成功返回:JWT、用户名、角色编码列表。 */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class LoginResponse {
+
+    private String token;
+    private String username;
+    private List<String> roles;
+}

+ 13 - 0
openspec/src/main/java/com/aijiuyi/admin/dto/UpdateAdminPasswordRequest.java

@@ -0,0 +1,13 @@
+package com.aijiuyi.admin.dto;
+
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+
+/** 超级管理员重置他人密码请求体。 */
+@Data
+public class UpdateAdminPasswordRequest {
+
+    @NotBlank
+    private String newPassword;
+}

+ 24 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/Account.java

@@ -0,0 +1,24 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.time.LocalDateTime;
+
+/** C 端注册账号,映射表 account。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("account")
+public class Account extends BaseEntity {
+
+    private String phone;
+
+    @JsonIgnore
+    private String passwordHash;
+    private String status;
+    private LocalDateTime registeredAt;
+    private Integer boundDeviceCount;
+    private LocalDateTime lastLoginAt;
+}

+ 37 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/Acupoint.java

@@ -0,0 +1,37 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.math.BigDecimal;
+
+/**
+ * 标准穴位库(含艾灸椅产品标记、后台基准坐标与轨迹等扩展),映射表 acupoint。
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("acupoint")
+public class Acupoint extends BaseEntity {
+
+    private String serialNo;
+    private String code;
+    private String name;
+    private String sideType;
+    private String meridian;
+    private String bodyRegion;
+    private String regionPartition;
+    private String locationText;
+    private String relativePositionText;
+    private String indications;
+    private String symptomCoverage;
+    private String acupointMethod;
+    private Integer chairProduct;
+    private String remark;
+    private BigDecimal baseCoordX;
+    private BigDecimal baseCoordY;
+    private BigDecimal baseCoordZ;
+    private String heightAdaptFormula;
+    private String trajectoryJson;
+    private String groupTag;
+}

+ 15 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/AdminRole.java

@@ -0,0 +1,15 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 后台角色定义,映射表 admin_role。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("admin_role")
+public class AdminRole extends BaseEntity {
+
+    private String code;
+    private String name;
+}

+ 20 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/AdminUser.java

@@ -0,0 +1,20 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 后台管理员账号,映射表 admin_user(密码哈希序列化时忽略)。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("admin_user")
+public class AdminUser extends BaseEntity {
+
+    private String username;
+
+    @JsonIgnore
+    private String passwordHash;
+    private String displayName;
+    private String status;
+}

+ 16 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/AlgorithmParameterSet.java

@@ -0,0 +1,16 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 按设备型号的算法参数集,映射表 algorithm_parameter_set。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("algorithm_parameter_set")
+public class AlgorithmParameterSet extends BaseEntity {
+
+    private Long deviceModelId;
+    private String name;
+    private String paramsJson;
+}

+ 26 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/AlgorithmVersionRecord.java

@@ -0,0 +1,26 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+/** 算法参数版本历史记录,映射表 algorithm_version_record。 */
+@Data
+@TableName("algorithm_version_record")
+public class AlgorithmVersionRecord implements Serializable {
+
+    @TableId(type = IdType.AUTO)
+    private Long id;
+    private String versionLabel;
+    private String snapshotJson;
+    private String changeNote;
+
+    @TableField(fill = FieldFill.INSERT)
+    private LocalDateTime createdAt;
+}

+ 30 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/BaseEntity.java

@@ -0,0 +1,30 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+/**
+ * 带逻辑删除与审计时间的实体基类,对应表中 deleted、create_time、update_time。
+ */
+@Data
+public abstract class BaseEntity implements Serializable {
+
+    @TableId(type = IdType.AUTO)
+    private Long id;
+
+    @TableLogic
+    private Integer deleted;
+
+    @TableField(fill = FieldFill.INSERT)
+    private LocalDateTime createTime;
+
+    @TableField(fill = FieldFill.INSERT_UPDATE)
+    private LocalDateTime updateTime;
+}

+ 15 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/BodyRegion.java

@@ -0,0 +1,15 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 身体部位与分区,映射表 body_region。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("body_region")
+public class BodyRegion extends BaseEntity {
+
+    private String bodyPart;
+    private String regionPartition;
+}

+ 28 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/DeviceModel.java

@@ -0,0 +1,28 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.math.BigDecimal;
+
+/** 艾灸设备型号(行程、原点、安全距离等),映射表 device_model。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("device_model")
+public class DeviceModel extends BaseEntity {
+
+    private String code;
+    private String name;
+    private BigDecimal strokeRangeX;
+    private BigDecimal strokeRangeY;
+    private BigDecimal strokeRangeZ;
+    private BigDecimal originOffsetX;
+    private BigDecimal originOffsetY;
+    private BigDecimal originOffsetZ;
+    private String axisDirectionJson;
+    private BigDecimal safetyDistance;
+    private BigDecimal standardHeightCm;
+    private BigDecimal standardWeightKg;
+    private BigDecimal standardFingerCunCm;
+}

+ 21 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/Efficacy.java

@@ -0,0 +1,21 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 艾灸功效主表(含灸方 JSON),映射表 efficacy。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("efficacy")
+public class Efficacy extends BaseEntity {
+
+    private String name;
+    private String summary;
+    private String iconUrl;
+    private String applicableCrowd;
+    private String descriptionText;
+    private String status;
+    private String currentVersion;
+    private String prescriptionJson;
+}

+ 26 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/EfficacyVersion.java

@@ -0,0 +1,26 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+/** 功效历史版本快照,映射表 efficacy_version。 */
+@Data
+@TableName("efficacy_version")
+public class EfficacyVersion implements Serializable {
+
+    @TableId(type = IdType.AUTO)
+    private Long id;
+    private Long efficacyId;
+    private String versionNo;
+    private String snapshotJson;
+
+    @TableField(fill = FieldFill.INSERT)
+    private LocalDateTime createdAt;
+}

+ 27 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/EndUser.java

@@ -0,0 +1,27 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+
+/** C 端用户档案(身高、体重、肩宽等算法输入),映射表 end_user。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("end_user")
+public class EndUser extends BaseEntity {
+
+    private Long accountId;
+    private String displayName;
+    private String gender;
+    private Integer age;
+    private BigDecimal heightCm;
+    private BigDecimal weightKg;
+    private BigDecimal shoulderWidthCm;
+    private BigDecimal spineLengthCm;
+    private BigDecimal fingerCunCm;
+    private Integer fingerprintCount;
+    private LocalDateTime lastMoxaAt;
+}

+ 20 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/MoxaSessionRecord.java

@@ -0,0 +1,20 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.time.LocalDateTime;
+
+/** 艾灸会话/记录,映射表 moxa_session_record。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("moxa_session_record")
+public class MoxaSessionRecord extends BaseEntity {
+
+    private Long endUserId;
+    private String deviceId;
+    private LocalDateTime startedAt;
+    private LocalDateTime endedAt;
+    private String remark;
+}

+ 30 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/OperationLog.java

@@ -0,0 +1,30 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+/** 后台操作审计日志,映射表 operation_log。 */
+@Data
+@TableName("operation_log")
+public class OperationLog implements Serializable {
+
+    @TableId(type = IdType.AUTO)
+    private Long id;
+    private Long adminUserId;
+    private String username;
+    private String action;
+    private String resourceType;
+    private String resourceId;
+    private String detail;
+    private String ip;
+
+    @TableField(fill = FieldFill.INSERT)
+    private LocalDateTime createTime;
+}

+ 15 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/Symptom.java

@@ -0,0 +1,15 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 症状字典,映射表 symptom。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("symptom")
+public class Symptom extends BaseEntity {
+
+    private String code;
+    private String name;
+}

+ 16 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/Technique.java

@@ -0,0 +1,16 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 灸法/手法定义,映射表 technique。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("technique")
+public class Technique extends BaseEntity {
+
+    private String code;
+    private String name;
+    private String paramsJson;
+}

+ 15 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/TechniqueComboRule.java

@@ -0,0 +1,15 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 手法主辅组合规则,映射表 technique_combo_rule。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("technique_combo_rule")
+public class TechniqueComboRule extends BaseEntity {
+
+    private String name;
+    private String logicJson;
+}

+ 15 - 0
openspec/src/main/java/com/aijiuyi/admin/entity/UserFingerprint.java

@@ -0,0 +1,15 @@
+package com.aijiuyi.admin.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/** 用户指纹标识,映射表 user_fingerprint。 */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("user_fingerprint")
+public class UserFingerprint extends BaseEntity {
+
+    private Long endUserId;
+    private String fingerprintId;
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/AccountMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.Account;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** C 端账号表数据访问。 */
+@Mapper
+public interface AccountMapper extends BaseMapper<Account> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/AcupointMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.Acupoint;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 标准穴位表数据访问。 */
+@Mapper
+public interface AcupointMapper extends BaseMapper<Acupoint> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/AdminRoleMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.AdminRole;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 后台角色表数据访问。 */
+@Mapper
+public interface AdminRoleMapper extends BaseMapper<AdminRole> {
+}

+ 24 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/AdminUserMapper.java

@@ -0,0 +1,24 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.AdminUser;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+/**
+ * 后台管理员表数据访问;扩展按用户 ID 查询已授权角色编码列表。
+ */
+@Mapper
+public interface AdminUserMapper extends BaseMapper<AdminUser> {
+
+    /**
+     * 查询管理员已绑定的角色编码列表(用于 Spring Security 与 JWT 载荷)。
+     */
+    @Select("SELECT r.code FROM admin_role r "
+            + "INNER JOIN admin_user_role ur ON r.id = ur.admin_role_id "
+            + "WHERE ur.admin_user_id = #{userId} AND r.deleted = 0")
+    List<String> selectRoleCodesByUserId(@Param("userId") Long userId);
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/AlgorithmParameterSetMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.AlgorithmParameterSet;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 算法参数集表数据访问。 */
+@Mapper
+public interface AlgorithmParameterSetMapper extends BaseMapper<AlgorithmParameterSet> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/AlgorithmVersionRecordMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.AlgorithmVersionRecord;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 算法版本记录表数据访问。 */
+@Mapper
+public interface AlgorithmVersionRecordMapper extends BaseMapper<AlgorithmVersionRecord> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/BodyRegionMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.BodyRegion;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 身体部位表数据访问。 */
+@Mapper
+public interface BodyRegionMapper extends BaseMapper<BodyRegion> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/DeviceModelMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.DeviceModel;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 设备型号表数据访问。 */
+@Mapper
+public interface DeviceModelMapper extends BaseMapper<DeviceModel> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/EfficacyMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.Efficacy;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 功效主表数据访问。 */
+@Mapper
+public interface EfficacyMapper extends BaseMapper<Efficacy> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/EfficacyVersionMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.EfficacyVersion;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 功效版本表数据访问。 */
+@Mapper
+public interface EfficacyVersionMapper extends BaseMapper<EfficacyVersion> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/EndUserMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.EndUser;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** C 端用户表数据访问。 */
+@Mapper
+public interface EndUserMapper extends BaseMapper<EndUser> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/MoxaSessionRecordMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.MoxaSessionRecord;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 艾灸记录表数据访问。 */
+@Mapper
+public interface MoxaSessionRecordMapper extends BaseMapper<MoxaSessionRecord> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/OperationLogMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.OperationLog;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 操作日志表数据访问。 */
+@Mapper
+public interface OperationLogMapper extends BaseMapper<OperationLog> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/SymptomMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.Symptom;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 症状字典表数据访问。 */
+@Mapper
+public interface SymptomMapper extends BaseMapper<Symptom> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/TechniqueComboRuleMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.TechniqueComboRule;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 手法组合规则表数据访问。 */
+@Mapper
+public interface TechniqueComboRuleMapper extends BaseMapper<TechniqueComboRule> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/TechniqueMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.Technique;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 手法表数据访问。 */
+@Mapper
+public interface TechniqueMapper extends BaseMapper<Technique> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/mapper/UserFingerprintMapper.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.mapper;
+
+import com.aijiuyi.admin.entity.UserFingerprint;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/** 用户指纹表数据访问。 */
+@Mapper
+public interface UserFingerprintMapper extends BaseMapper<UserFingerprint> {
+}

+ 7 - 0
openspec/src/main/java/com/aijiuyi/admin/security/AdminDetailsService.java

@@ -0,0 +1,7 @@
+package com.aijiuyi.admin.security;
+
+import org.springframework.security.core.userdetails.UserDetailsService;
+
+/** 按用户名加载后台管理员及角色,供 JWT 与 Security 使用。 */
+public interface AdminDetailsService extends UserDetailsService {
+}

+ 31 - 0
openspec/src/main/java/com/aijiuyi/admin/security/AdminDetailsServiceImpl.java

@@ -0,0 +1,31 @@
+package com.aijiuyi.admin.security;
+
+import com.aijiuyi.admin.entity.AdminUser;
+import com.aijiuyi.admin.mapper.AdminUserMapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import org.springframework.security.core.userdetails.UserDetails;
+import org.springframework.security.core.userdetails.UsernameNotFoundException;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class AdminDetailsServiceImpl implements AdminDetailsService {
+
+    private final AdminUserMapper adminUserMapper;
+
+    public AdminDetailsServiceImpl(AdminUserMapper adminUserMapper) {
+        this.adminUserMapper = adminUserMapper;
+    }
+
+    @Override
+    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
+        AdminUser user = adminUserMapper.selectOne(Wrappers.<AdminUser>lambdaQuery()
+                .eq(AdminUser::getUsername, username));
+        if (user == null) {
+            throw new UsernameNotFoundException(username);
+        }
+        List<String> roles = adminUserMapper.selectRoleCodesByUserId(user.getId());
+        return new AdminUserDetails(user, roles);
+    }
+}

+ 63 - 0
openspec/src/main/java/com/aijiuyi/admin/security/AdminUserDetails.java

@@ -0,0 +1,63 @@
+package com.aijiuyi.admin.security;
+
+import com.aijiuyi.admin.entity.AdminUser;
+import lombok.Getter;
+import org.springframework.security.core.GrantedAuthority;
+import org.springframework.security.core.authority.SimpleGrantedAuthority;
+import org.springframework.security.core.userdetails.UserDetails;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ * Spring Security 用户详情:封装 {@link com.aijiuyi.admin.entity.AdminUser} 与角色(ROLE_ 前缀)。
+ */
+@Getter
+public class AdminUserDetails implements UserDetails {
+
+    private final AdminUser user;
+    private final List<GrantedAuthority> authorities;
+
+    public AdminUserDetails(AdminUser user, List<String> roleCodes) {
+        this.user = user;
+        this.authorities = roleCodes.stream()
+                .map(c -> new SimpleGrantedAuthority("ROLE_" + c))
+                .collect(Collectors.toList());
+    }
+
+    @Override
+    public Collection<? extends GrantedAuthority> getAuthorities() {
+        return authorities;
+    }
+
+    @Override
+    public String getPassword() {
+        return user.getPasswordHash();
+    }
+
+    @Override
+    public String getUsername() {
+        return user.getUsername();
+    }
+
+    @Override
+    public boolean isAccountNonExpired() {
+        return true;
+    }
+
+    @Override
+    public boolean isAccountNonLocked() {
+        return true;
+    }
+
+    @Override
+    public boolean isCredentialsNonExpired() {
+        return true;
+    }
+
+    @Override
+    public boolean isEnabled() {
+        return user.getStatus() != null && "ACTIVE".equalsIgnoreCase(user.getStatus());
+    }
+}

+ 55 - 0
openspec/src/main/java/com/aijiuyi/admin/security/JwtAuthenticationFilter.java

@@ -0,0 +1,55 @@
+package com.aijiuyi.admin.security;
+
+import io.jsonwebtoken.Claims;
+import org.springframework.http.HttpHeaders;
+import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
+import org.springframework.security.core.context.SecurityContextHolder;
+import org.springframework.security.core.userdetails.UserDetails;
+import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
+import org.springframework.stereotype.Component;
+import org.springframework.util.StringUtils;
+import org.springframework.web.filter.OncePerRequestFilter;
+
+import javax.servlet.FilterChain;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+
+/**
+ * 从 Authorization: Bearer 解析 JWT,加载 {@link AdminUserDetails} 并写入 SecurityContext。
+ */
+@Component
+public class JwtAuthenticationFilter extends OncePerRequestFilter {
+
+    private final JwtTokenProvider jwtTokenProvider;
+    private final AdminDetailsService adminDetailsService;
+
+    public JwtAuthenticationFilter(JwtTokenProvider jwtTokenProvider, AdminDetailsService adminDetailsService) {
+        this.jwtTokenProvider = jwtTokenProvider;
+        this.adminDetailsService = adminDetailsService;
+    }
+
+    @Override
+    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
+            throws ServletException, IOException {
+        String header = request.getHeader(HttpHeaders.AUTHORIZATION);
+        if (StringUtils.hasText(header) && header.startsWith("Bearer ")) {
+            String raw = header.substring(7);
+            try {
+                Claims claims = jwtTokenProvider.parse(raw);
+                String username = claims.getSubject();
+                if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {
+                    UserDetails details = adminDetailsService.loadUserByUsername(username);
+                    UsernamePasswordAuthenticationToken auth = new UsernamePasswordAuthenticationToken(
+                            details, null, details.getAuthorities());
+                    auth.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));
+                    SecurityContextHolder.getContext().setAuthentication(auth);
+                }
+            } catch (Exception ignored) {
+                SecurityContextHolder.clearContext();
+            }
+        }
+        filterChain.doFilter(request, response);
+    }
+}

+ 70 - 0
openspec/src/main/java/com/aijiuyi/admin/security/JwtTokenProvider.java

@@ -0,0 +1,70 @@
+package com.aijiuyi.admin.security;
+
+import io.jsonwebtoken.Claims;
+import io.jsonwebtoken.Jwts;
+import io.jsonwebtoken.SignatureAlgorithm;
+import io.jsonwebtoken.security.Keys;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.stereotype.Component;
+
+import javax.crypto.SecretKey;
+import java.nio.charset.StandardCharsets;
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * JWT 生成与解析:使用 HS256,密钥由配置 jwt.secret 经 SHA-256 派生为 32 字节。
+ */
+@Component
+public class JwtTokenProvider {
+
+    private final SecretKey key;
+    private final long expirationMs;
+
+    public JwtTokenProvider(
+            @Value("${jwt.secret}") String secret,
+            @Value("${jwt.expiration-ms:86400000}") long expirationMs) {
+        this.key = Keys.hmacShaKeyFor(sha256(secret));
+        this.expirationMs = expirationMs;
+    }
+
+    private static byte[] sha256(String secret) {
+        try {
+            MessageDigest md = MessageDigest.getInstance("SHA-256");
+            return md.digest(secret.getBytes(StandardCharsets.UTF_8));
+        } catch (NoSuchAlgorithmException e) {
+            throw new IllegalStateException(e);
+        }
+    }
+
+    /** 签发访问令牌,载荷含用户名、用户 ID、逗号分隔的角色编码。 */
+    public String createToken(String username, Long userId, List<String> roleCodes) {
+        Date now = new Date();
+        Date exp = new Date(now.getTime() + expirationMs);
+        String roles = roleCodes == null ? "" : String.join(",", roleCodes);
+        return Jwts.builder()
+                .setSubject(username)
+                .claim("uid", userId)
+                .claim("roles", roles)
+                .setIssuedAt(now)
+                .setExpiration(exp)
+                .signWith(key, SignatureAlgorithm.HS256)
+                .compact();
+    }
+
+    /** 解析并校验 JWT,异常由调用方处理。 */
+    public Claims parse(String token) {
+        return Jwts.parserBuilder()
+                .setSigningKey(key)
+                .build()
+                .parseClaimsJws(token)
+                .getBody();
+    }
+
+    /** 解析 token 并返回 JWT subject(用户名)。 */
+    public String getUsername(String token) {
+        return parse(token).getSubject();
+    }
+}

+ 61 - 0
openspec/src/main/java/com/aijiuyi/admin/security/OperationLogAspect.java

@@ -0,0 +1,61 @@
+package com.aijiuyi.admin.security;
+
+import com.aijiuyi.admin.entity.OperationLog;
+import com.aijiuyi.admin.service.OpLogService;
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.reflect.MethodSignature;
+import org.springframework.security.core.Authentication;
+import org.springframework.security.core.context.SecurityContextHolder;
+import org.springframework.stereotype.Component;
+import org.springframework.web.context.request.RequestContextHolder;
+import org.springframework.web.context.request.ServletRequestAttributes;
+
+import javax.servlet.http.HttpServletRequest;
+
+/**
+ * 记录后台写操作(POST/PUT/PATCH/DELETE)到 operation_log,失败不影响业务主流程。
+ */
+@Aspect
+@Component
+public class OperationLogAspect {
+
+    private final OpLogService opLogService;
+
+    public OperationLogAspect(OpLogService opLogService) {
+        this.opLogService = opLogService;
+    }
+
+    @Around("execution(* com.aijiuyi.admin.web..*Controller.*(..)) && !execution(* com.aijiuyi.admin.web.AuthController.*(..))")
+    public Object around(ProceedingJoinPoint pjp) throws Throwable {
+        ServletRequestAttributes attrs = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
+        if (attrs == null) {
+            return pjp.proceed();
+        }
+        HttpServletRequest request = attrs.getRequest();
+        String method = request.getMethod();
+        if (!("POST".equals(method) || "PUT".equals(method) || "PATCH".equals(method) || "DELETE".equals(method))) {
+            return pjp.proceed();
+        }
+        Object result = pjp.proceed();
+        try {
+            OperationLog log = new OperationLog();
+            log.setAction(method + " " + request.getRequestURI());
+            log.setResourceType(pjp.getTarget().getClass().getSimpleName());
+            MethodSignature sig = (MethodSignature) pjp.getSignature();
+            log.setDetail(sig.getMethod().getName());
+            log.setIp(request.getRemoteAddr());
+            Authentication auth = SecurityContextHolder.getContext().getAuthentication();
+            if (auth != null && auth.getPrincipal() instanceof AdminUserDetails) {
+                AdminUserDetails d = (AdminUserDetails) auth.getPrincipal();
+                log.setAdminUserId(d.getUser().getId());
+                log.setUsername(d.getUsername());
+            }
+            opLogService.save(log);
+        } catch (Exception ignored) {
+            // never break business flow
+        }
+        return result;
+    }
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/AccountService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.Account;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** C 端账号。 */
+public interface AccountService extends IService<Account> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/AcupointService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.Acupoint;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 标准穴位。 */
+public interface AcupointService extends IService<Acupoint> {
+}

+ 12 - 0
openspec/src/main/java/com/aijiuyi/admin/service/AdminUserService.java

@@ -0,0 +1,12 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.AdminUser;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 后台管理员:创建用户加密密码、修改密码等。 */
+public interface AdminUserService extends IService<AdminUser> {
+
+    void createWithEncodedPassword(AdminUser user, String rawPassword);
+
+    void updatePassword(Long id, String rawPassword);
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/AlgoParamService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.AlgorithmParameterSet;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 算法参数集。 */
+public interface AlgoParamService extends IService<AlgorithmParameterSet> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/AlgoVerService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.AlgorithmVersionRecord;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 算法版本记录。 */
+public interface AlgoVerService extends IService<AlgorithmVersionRecord> {
+}

+ 10 - 0
openspec/src/main/java/com/aijiuyi/admin/service/AuthService.java

@@ -0,0 +1,10 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.dto.LoginRequest;
+import com.aijiuyi.admin.dto.LoginResponse;
+
+/** 管理员认证:校验用户名密码并签发 JWT。 */
+public interface AuthService {
+
+    LoginResponse login(LoginRequest request);
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/BodyRegionService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.BodyRegion;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 身体部位分区。 */
+public interface BodyRegionService extends IService<BodyRegion> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/ComboRuleService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.TechniqueComboRule;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 手法组合规则。 */
+public interface ComboRuleService extends IService<TechniqueComboRule> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/DeviceModelService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.DeviceModel;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 设备型号。 */
+public interface DeviceModelService extends IService<DeviceModel> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/EfficacyService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.Efficacy;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 艾灸功效。 */
+public interface EfficacyService extends IService<Efficacy> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/EfficacyVerService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.EfficacyVersion;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 功效版本快照。 */
+public interface EfficacyVerService extends IService<EfficacyVersion> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/EndUserService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.EndUser;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** C 端用户档案。 */
+public interface EndUserService extends IService<EndUser> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/FingerprintService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.UserFingerprint;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 用户指纹。 */
+public interface FingerprintService extends IService<UserFingerprint> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/MoxaSessionService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.MoxaSessionRecord;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 艾灸会话记录。 */
+public interface MoxaSessionService extends IService<MoxaSessionRecord> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/OpLogService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.OperationLog;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 操作日志。 */
+public interface OpLogService extends IService<OperationLog> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/RoleService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.AdminRole;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 后台角色。 */
+public interface RoleService extends IService<AdminRole> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/SymptomService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.Symptom;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 症状字典。 */
+public interface SymptomService extends IService<Symptom> {
+}

+ 8 - 0
openspec/src/main/java/com/aijiuyi/admin/service/TechniqueService.java

@@ -0,0 +1,8 @@
+package com.aijiuyi.admin.service;
+
+import com.aijiuyi.admin.entity.Technique;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/** 灸法手法。 */
+public interface TechniqueService extends IService<Technique> {
+}

+ 11 - 0
openspec/src/main/java/com/aijiuyi/admin/service/algorithm/AcupointLocService.java

@@ -0,0 +1,11 @@
+package com.aijiuyi.admin.service.algorithm;
+
+import java.util.List;
+
+/**
+ * 穴位定位:接收人体测量与穴位列表,输出设备坐标(当前为占位实现,可替换为真实七步算法)。
+ */
+public interface AcupointLocService {
+
+    LocalizationResult localize(UserAnthropometryInput input, List<String> acupointCodes, String deviceModelCode);
+}

Некоторые файлы не были показаны из-за большого количества измененных файлов