Commit db017d32 by zhiyu

添加无匹配例句aigc自动拓展文档

parent 7f14f606
# 无匹配例句aigc自动拓展
# 无匹配例句aigc自动拓展
## 上传excel文件
- ### 请求
- 请求方式
Method: `POST`
Path: `/work/import/examples`
- 请求参数
| 参数名 | 参数类型 | 描述 | 必须 |
| ------------- | -------- | ------------------- | ---- |
| multipartFile | txt文件 | 文件 | Y |
| id | integer | 作品id | Y |
- 请求示例
```
curl -X post 'http://tx-gz18.heyqiwu.cn:48089/work/import/examples?id=787' --form 'file=@"{{your_file_path}}"'
```
- ### 响应
**响应参数示例**
```
{"code":1,"msg":"成功","data":null}
```
## 获取拓展进度
- ### 请求
- **请求方式**
Request Method: `GET`
Path: `/work/import/examples/percent`
- **请求参数**
| 参数名 | 参数类型 | 描述 | 必须 |
|-----| -------- | ------ | ---- |
| id | Long | 作品id | Y |
- **请求示例**
```
http://tx-gz18.heyqiwu.cn:48089/work/import/examples/percent?id=787
```
- ### 响应参数
**响应参数示例**
- success:
```
{
"code": 1,
"data": {
"progress": 100,
"status": 1
},
"msg": "成功"
}
```
- failure:
```
{
"code": 12003,
"msg": "生成失败,请确保导入文件没被修改"
}
```
## 取消拓展
- ### 请求
- **请求方式**
Method: `POST`
Path: `/work/import/examples/cancel`
Header: `Content-Type: application/json`
- **请求参数**
| 参数名 | 参数类型 | 描述 | 必须 |
| ------------- | -------- | ------------------- | ---- |
| id | integer | 作品id | Y |
- **请求示例**
```
curl -X 'http://tx-gz18.heyqiwu.cn:48089/work/import/examples/cancel' \
-H 'Content-Type: application/json' -d '{"id": 787}'
```
- ### 响应
**响应参数示例**
```
{"code":1,"msg":"成功","data":null}
```
## 更新system prompt
- ### 请求
- 请求方式
Method: `PUT`
Path: `/api/juben/work/prompt/system`
Header: `Content-Type: text/plain`
- 请求示例
```
curl -X PUT 'https://tx-gz18.heyqiwu.cn/api/juben/work/prompt/system?auth=qw_sys_prompt' \
-H 'Content-Type: text/plain' -d '{{your_prompt}}'
```
- ### 响应
响应参数示例
```
OK
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment