No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-16 16:40:32 +08:00
.idea 调整 2026-09-16 16:40:32 +08:00
src/main 调整 2026-09-16 16:40:32 +08:00
target 调整 2026-09-16 16:40:32 +08:00
pom.xml init 2026-09-16 11:27:10 +08:00
README.md init 2026-09-16 11:27:10 +08:00

hermes_chat_uniapp_api

小程序 BFF:YAML 平台用户 + Hermes Dashboard 代登/代理。无数据库、无能碳业务。

启动

cd hermes_chat_uniapp_api
mvn spring-boot:run
# http://127.0.0.1:8088/api/health

鉴权流程

  1. POST /api/auth/login:校验 app.users;未注册 → 用户未注册,请先注册
  2. 通过后按 hermes.* 代登 Dashboard,校验 /api/auth/me
  3. 返回平台 token(内存会话,带 Hermes Cookie)
  4. 后续请求头:Authorization: Bearer <token>

主要接口

方法 路径 说明
POST /api/auth/login 平台登录 + Hermes 校验
POST /api/auth/logout 退出
GET /api/auth/me 平台用户
GET /api/hermes/profiles profile 列表
POST /api/hermes/ws-handoff wsUrl + ticket(会话/聊天走 TUI WS)
POST /api/hermes/audio/transcribe 语音转写代理
GET /api/hermes/files/download?path= 文件下载代理

会话列表 / 发消息 / 流式:小程序连 ws-handoff 返回的 WSS,RPC 同 SPA(session.list / session.create / chat.send 等)。