mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
* 模板 GET 入口迁回 AgentTemplateController #3395 根因:AgentController 已存在 GET /agent/template/templateList,AgentTemplateController 缺显式 GET,于是路由虽通却跨 controller 暴露模板数据,且职责错位。修复:删 AgentController.templateList,同名 @GetMapping(无 path)落到 AgentTemplateController,权限 normal、orderByAsc sort、复用现有 service.list。验证:spring-boot 启动期无 Ambiguous;/agent/template、/page、/{id} 三路由均被 Shiro 一致拦截,权限/路径正确。 * 补 P2 注释说明 normal 权限反直觉是有意保留 #3395 在 getAgentTemplates 上方加 2 行注释,说明单独 normal 权限是为保持原行为契约(普通用户也能查可用模板),与类级 superAdmin 故意分离;非疏忽。无逻辑变更。 * 去除未使用引用 --------- Co-authored-by: Sakura-RanChen <1908198662@qq.com> |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||
| README.md | ||
本文档是开发类文档,如需部署小智服务端,点击这里查看部署教程
项目介绍
manager-api 该项目基于SpringBoot框架开发。
开发使用代码编辑器,导入项目时,选择manager-api文件夹作为项目目录
开发环境
JDK 21 Maven 3.8+ MySQL 8.0+ Redis 5.0+ Vue 3.x