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
45ffc140
Commit
45ffc140
authored
Dec 22, 2023
by
jixudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete 剧情导入aigc.md
parent
c5eb6f8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
102 deletions
+1
-102
剧情导入aigc.md
dramaeditor/剧情导入aigc.md
+1
-102
No files found.
dramaeditor/剧情导入aigc.md
deleted
100644 → 0
View file @
c5eb6f8d
### 1. 导出作品的AIGC参数
++ /dev/null
### 1. 导出作品的AIGC参数
#### 请求方式
-
METHOD: GET
#### URL
-
测试环境URL:
`tx-gz18.heyqiwu.cn`
-
生产环境URL:
`juben.jiaoyou365.com`
#### 接口路径
-
`/api/juben/aigc/exportParam`
#### 请求头部
| key | description |
| ------------- | ------------- |
| Authorization |
**鉴权Token**
|
#### 请求参数
| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 |
| ------ | ------- | ------ | -------- | ------------ |
| id | Integer | 2701 | 是 | 作品的项目id |
#### 请求示例
```
bashCopy codecurl --location --request GET 'https://juben.jiaoyou365.com/api/juben/aigc/exportParam?id=2701' \
--header 'Authorization: ***'
```
#### 响应Body
-
**成功:**
| 参数名 | 类型 | 示例值 |
| -------- | ------ | ------------------------------------------------------------ |
| filePath | String | http://tx-gz18.heyqiwu.cn/downloads/第3个作品-aigc--1012--2023-11-10--09-57-30.txt |
#### 响应示例
```
jsonCopy code{
"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
#### URL
-
`/api/juben/aigc/importParam`
#### 请求头部
| key | description |
| ------------- | ------------- |
| Authorization |
**鉴权Token**
|
#### 请求参数
| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 |
| ------ | ------- | ------ | -------- | ------------ |
| id | Integer | 2701 | 是 | 作品的项目id |
#### 请求Form数据
| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 |
| ------ | -------- | ------------ | -------- | ---------------------------- |
| file | FormData |
**文件内容**
| 是 | 待上传文件对应的FormData对象 |
#### 请求示例
```
bashCopy codecurl --location --request POST 'https://juben.jiaoyou365.com/api/juben/aigc/importParam?id=2701' \
--header 'Authorization: ***'
```
#### 响应示例
-
**成功:**
```
jsonCopy code{
"code": 1,
"msg": "成功",
"data": null
}
```
\ No newline at end of file
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