feat: 增加 SafeW 已监控群列表接口
通过 getUpdates 将群写入 Redis,供创建/编辑渠道时选择 chat_id,避免前端重复传递 token。
This commit is contained in:
@@ -277,6 +277,22 @@ curl -X POST 'http://localhost:8080/api/v1/channels' \
|
||||
}'
|
||||
```
|
||||
|
||||
### 列出 SafeW 群(创建渠道时)
|
||||
|
||||
```bash
|
||||
curl -X POST 'http://localhost:8080/api/v1/channels/safew/chats' \
|
||||
-H 'Authorization: Bearer admin-sk-change-me' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"token":"<bot token>","q":"测试AI"}'
|
||||
```
|
||||
|
||||
### 列出 SafeW 群(已有渠道)
|
||||
|
||||
```bash
|
||||
curl -X GET 'http://localhost:8080/api/v1/channels/1/chats?q=' \
|
||||
-H 'Authorization: Bearer admin-sk-change-me'
|
||||
```
|
||||
|
||||
### 列出 Channel
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user