Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李进峰
jiaoyou_doc
Commits
db017d32
Commit
db017d32
authored
Dec 22, 2023
by
zhiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加无匹配例句aigc自动拓展文档
parent
7f14f606
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
126 additions
and
0 deletions
+126
-0
无匹配例句aigc自动拓展.md
dramaeditor/无匹配例句aigc自动拓展.md
+126
-0
No files found.
dramaeditor/无匹配例句aigc自动拓展.md
0 → 100644
View file @
db017d32
# 无匹配例句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
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment