docs:添加API文档跳转链接

- 在WebSocket OpenAPI文档中添加测试页面跳转链接
- 在聊天控制器中添加quickLinks对象
- 支持带参数的跳转,识别来源页面
- 完善API文档的导航体验
This commit is contained in:
moyin
2026-01-09 17:59:35 +08:00
parent ca21982857
commit ef04786207
2 changed files with 15 additions and 7 deletions

View File

@@ -364,6 +364,11 @@ export class ChatController {
'chat_render', // 接收到聊天消息
'error', // 通用错误
],
quickLinks: {
testPage: '/websocket-test?from=chat-api',
apiDocs: '/api-docs',
connectionInfo: '/websocket-api/connection-info'
},
authRequired: true,
tokenType: 'JWT',
tokenFormat: {