feat(auth): 角色映射按平台字典(1-7)校准,并移除资源库模块对接
build / build-push (push) Successful in 52s

- 角色字典实测校准(采样 200+ 账号 currentRole/roles):
  1 老师 / 2 校领导 / 3 学生 / 4 家长 / 5 局领导 / 6 工作号 / 7 管理员
  → agent.roles: student=[3] teacher=[1,6] parent=[4] admin=[2,5,7]
  (旧默认 student=[1]/teacher=[2,3]/admin=[4..7] 系臆测,导致老师账号被显示为学生)
- 新增家长身份 AgentRole.PARENT;活动报名/取消改由 STUDENT_OR_PARENT 放行
- 当前身份识别增加 roleName 关键词兜底,避免识别不出就降级为访客
- 移除资源库对接:删除 ResourceTools 及注册/编排/agent.modules/module-landing
- 测试 48/48 通过
This commit is contained in:
lijing
2026-10-12 16:10:39 +08:00
parent 57766c8bba
commit 67e55f1875
11 changed files with 265 additions and 135 deletions
+5 -2
View File
@@ -239,7 +239,6 @@ agent:
dormnotice: http://base.yunhaixingtong.com/dormnotice
familyactivity: http://base.yunhaixingtong.com/familyactivity
coursehomework: http://base.yunhaixingtong.com/coursehomework
resourcelibrary: http://base.yunhaixingtong.com/resourcelibrary
profession: http://base.yunhaixingtong.com/profession
```
@@ -372,6 +371,7 @@ HTTP 状态都是 **200**,但响应体固定是:
> `http://base.yunhaixingtong.com/resourcelibrary`,实测该路径 **404**;
> 前端 `ResourceLibraryFront/.env.dev` 里资源库真实主机是 `https://base.bestsch.com/BschZyk`。
> 需与资源库团队确认正确的 base(含 context)后再改。
> **★ 2026-10-12 处理**:该模块(`ResourceTools` 及配置)已整体移除,**尚未接通**,待部署位置确认后再接回。
### 11.6 复核补记(2026-10-10 19:0x)——「请假可以了、其他模块没接通」
@@ -422,9 +422,12 @@ HTTP 状态都是 **200**,但响应体固定是:
| dormnotice | 宿舍通知箱 | `/par/notices` |
| familyactivity | 活动广场 | `/par/activities` |
| coursehomework | 今日作业 | `/stu/today` |
| resourcelibrary | 资源管理 | `/resource` |
| profession | 发展首页 | `/home` |
> ★ 2026-10-12:`resourcelibrary`(资源库)已**按用户要求暂时移除**(该模块前端在 base 域 **404**、真实主机疑为
> `https://base.bestsch.com/BschZyk`,尚未接通)——已从 `ResourceTools`、`agent.modules`、
> `agent.module-landing` 与前端 `MODULE_*` 表中一并去掉;待其部署位置确认后再接回。
运维可在 `application.yml` 用 `agent.module-landing.<模块>=<路由>` 覆盖;
工具自身声明(`write(...)` / `readAt(...)`)优先级更高。