a
This commit is contained in:
1 parent
61bcd12601
commit
839d375350
2 files changed
+52
-1
No files matched your search
@@ -471,6 +471,58 @@ curl -X POST {gateway}/harness/user/input -H "Content-Type: application/json" -d
|
|||||||
|
|
||||||
### 失败示例
|
### 失败示例
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"code": 500,
|
||||||
|
"msg": "参数[sessionId]不能为空"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 重写用户输入
|
||||||
|
|
||||||
|
- 请求地址:{gateway}/harness/user/input/rewrite
|
||||||
|
- 请求方式:PUT
|
||||||
|
|
||||||
|
### 请求参数
|
||||||
|
|
||||||
|
| 参数名称 | 是否必传 | 类型 | 描述 |
|
||||||
|
|:-----|:-----|:-----|:-----|
|
||||||
|
| sessionId | 是 | Long | 会话ID |
|
||||||
|
| username | 是 | String | 用户名 |
|
||||||
|
| userId | 是 | Long | 用户ID |
|
||||||
|
| userInput | 是 | String | 用户输入的内容 |
|
||||||
|
|
||||||
|
### 请求示例
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X PUT {gateway}/harness/user/input/rewrite -H "Content-Type: application/json" -d '{
|
||||||
|
"sessionId": 1872639000000000001,
|
||||||
|
"username": "zhangsan",
|
||||||
|
"userId": 1001,
|
||||||
|
"userInput": "帮我查看代码中的空指针异常"
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
### 响应参数
|
||||||
|
|
||||||
|
| 参数名称 | 类型 | 描述 |
|
||||||
|
|:-----|:-----|:-----|
|
||||||
|
| code | Number | 返回码(200=成功) |
|
||||||
|
| msg | String | 提示信息 |
|
||||||
|
| data | String | 重写后的用户输入内容 |
|
||||||
|
|
||||||
|
### 成功示例
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"code": 200,
|
||||||
|
"msg": "操作成功",
|
||||||
|
"data": "帮我查看代码中的空指针异常\n\n变量表提示信息:..."
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 失败示例
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"code": 500,
|
"code": 500,
|
||||||
|
|||||||
Reference in new issue
Block a user