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
jixudong
jiaoyou_doc
Commits
97d9524e
Commit
97d9524e
authored
Nov 17, 2023
by
陈宥希
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传新文件
parent
a4928631
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
0 deletions
+99
-0
自动生成参数导入导出_v20231110.md
dramaeditor/自动生成参数导入导出_v20231110.md
+99
-0
No files found.
dramaeditor/自动生成参数导入导出_v20231110.md
0 → 100644
View file @
97d9524e
# 自动生成参数导入导出
# 自动生成参数导入导出
**测试环境URL**
: tx-gz18.heyqiwu.cn
**生产环境URL**
: juben.jiaoyou365.com
## 1. 导出作品的AIGC参数
**METHOD**
: GET
**path**
: /api/juben/aigc/exportParam
**RequestHeaders:**
| key | description |
| ------------- | ----------------- |
| Authorization |
\*\*
鉴权Token
\*\*
|
**RequestParam:**
| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 |
| ------ | ------- | ------ | -------- | ------------ |
| id | Integer | 2701 | 是 | 作品的项目id |
#### 请求示例
```
json
curl
--location
--request
GET
'https
:
//juben.jiaoyou
365
.com/api/juben/aigc/exportParam?id=
2701
'
\
--header
'Authorization
:
***'
```
**ResponseBody.data:**
##### 成功:
| 参数名 | 类型 | 示例值 | 参数描述 |
| -------- | ------ | ------------------------------------------------------------ | ----------------------- |
| filePath | String | http://tx-gz18.heyqiwu.cn/downloads/第3个作品-aigc--1012--2023-11-10--09-57-30.txt | 导出的txt文件的下载地址 |
#### 响应示例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
{
"filePath"
:
"http://tx-gz18.heyqiwu.cn/downloads/第3个作品-aigc--1012--2023-11-10--09-57-30.txt"
}
}
```
## 2. 导入作品的AIGC参数
**METHOD**
: POST
**path**
: /api/juben/aigc/importParam
**RequestHeaders:**
| key | description |
| ------------- | ----------------- |
| Authorization |
\*\*
鉴权Token
\*\*
|
**RequestParam:**
| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 |
| ------ | ------- | ------ | -------- | ------------ |
| id | Integer | 2701 | 是 | 作品的项目id |
**RequestFormData:**
| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 |
| ------ | -------- | ---------------- | -------- | ---------------------------- |
| file | FormData |
\*\*
文件内容
\*\*
| 是 | 待上传文件对应的FormData对象 |
#### 请求示例
```
json
curl
--location
--request
POST
'https
:
//juben.jiaoyou
365
.com/api/juben/aigc/importParam?id=
2701
'
\
--header
'Authorization
:
***'
```
#### 响应示例
**成功:**
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
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