This commit is contained in:
V-LiuShuang
2026-09-01 13:56:21 +08:00
parent 560cd88572
commit cb22feda71
+13 -5
View File
@@ -4,7 +4,7 @@
## 提交用户点赞/取消赞/写评论 ## 提交用户点赞/取消赞/写评论
- 请求地址:/mcp/metrics - 请求地址:/mcp/metrics/append
- 请求方式:POST - 请求方式:POST
### 请求参数 ### 请求参数
@@ -20,7 +20,7 @@
### 请求示例 ### 请求示例
```bash ```bash
curl -X POST {gateway}/mcp/metrics \ curl -X POST {gateway}/mcp/metrics/append \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"tag": "agent", "tag": "agent",
@@ -62,7 +62,7 @@ curl -X POST {gateway}/mcp/metrics \
## 查询用户点赞/取消赞/写评论 ## 查询用户点赞/取消赞/写评论
- 请求地址:/mcp/metrics - 请求地址:/mcp/metrics/detail
- 请求方式:POST - 请求方式:POST
### 请求参数 ### 请求参数
@@ -77,8 +77,16 @@ curl -X POST {gateway}/mcp/metrics \
### 请求示例 ### 请求示例
```bash ```bash
curl -X GET '{gateway}/mcp/metrics?tag={tag}&resourceId={resourceId}' \ curl -X GET '{gateway}/mcp/metrics/detail' \
-H "Content-Type: application/json" -H "Content-Type: application/json" \
-d '{
"tag": "agent",
"resourceId": "123456",
"comment": {
"pageNum": 1,
"pageSize": 25
}
}'
``` ```
### 响应参数 ### 响应参数