Commit 3755057d by jixudong

Replace 项目列表-作品列表.md

parent e401cf7f
**测试环境URL**:http://tx-gz14.heyqiwu.cn **测试环境URL**:http://tx-gz14.heyqiwu.cn
...@@ -76,7 +76,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/workType' \ ...@@ -76,7 +76,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/workType' \
``` ```
### **获取一条分组下的作品** ### **获取选中项目下的作品**
**METHOD**: GET **METHOD**: GET
...@@ -86,9 +86,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/workType' \ ...@@ -86,9 +86,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/workType' \
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| ------- | ---- | -------- | ----------- | | ------- | ------ | -------- | ----------- |
| groupId | | yes | 作品id | | groupId | number | yes | 作品id |
#### 请求body字段说明 #### 请求body字段说明
...@@ -287,7 +287,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578' ...@@ -287,7 +287,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578'
} }
``` ```
### 提交审核 ### 发布审核
**METHOD**: PUT **METHOD**: PUT
...@@ -297,9 +297,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578' ...@@ -297,9 +297,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578'
#### 请求path字段说明 #### 请求path字段说明
| key | type | required | description | | key | type | required | description |
| ---- | ---- | -------- | ----------- | | ---- | ------ | -------- | ----------- |
| id | | yes | 主键id | | id | number | yes | 主键id |
#### 请求param字段说明 #### 请求param字段说明
...@@ -309,12 +309,12 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578' ...@@ -309,12 +309,12 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578'
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| ----------- | ---- | -------- | -------------- | | ----------- | ------ | -------- | -------------- |
| applyStatus | | yes | 审核状态 | | applyStatus | number | yes | 审核状态 |
| botAccount | | yes | 在引擎中的帐号 | | botAccount | string | yes | 在引擎中的帐号 |
| groupId | | yes | 作品id | | groupId | number | yes | 作品id |
| name | | yes | 作品名称 | | name | string | yes | 作品名称 |
#### 请求示例 #### 请求示例
...@@ -347,7 +347,7 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/project/2658/apply/' \ ...@@ -347,7 +347,7 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/project/2658/apply/' \
} }
``` ```
### 分组删除作品 ### 删除作品
**METHOD**: DELETE **METHOD**: DELETE
...@@ -363,12 +363,12 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/project/2658/apply/' \ ...@@ -363,12 +363,12 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/project/2658/apply/' \
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| ---------- | ---- | -------- | -------------- | | ---------- | ------ | -------- | -------------- |
| botId | | yes | 在引擎中的ID | | botId | number | yes | 在引擎中的ID |
| botAccount | | yes | 在引擎中的帐号 | | botAccount | string | yes | 在引擎中的帐号 |
| groupId | | yes | 项目组id | | groupId | number | yes | 项目组id |
| projectId | | yes | 项目id | | projectId | number | yes | 项目id |
#### 请求示例 #### 请求示例
...@@ -418,115 +418,115 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/bot' \ ...@@ -418,115 +418,115 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/bot' \
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| ----------------- | ---- | -------- | ----------------------------------- | | ----------------- | ------- | -------- | ----------------------------------- |
| id | | yes | 主键id | | id | number | yes | 主键id |
| name | | yes | 作品名 | | name | string | yes | 作品名 |
| ttsName | | no | 语音合成时候的名称 | | ttsName | string | no | 语音合成时候的名称 |
| showedWorkName | | no | 显示在app上的名称,如果为空则是name | | showedWorkName | string | no | 显示在app上的名称,如果为空则是name |
| seriesName | | no | 系列名称 | | seriesName | string | no | 系列名称 |
| intro | | yes | 作品介绍 | | intro | string | yes | 作品介绍 |
| botId | | yes | 在引擎中的ID | | botId | number | yes | 在引擎中的ID |
| botAccount | | yes | 在引擎中的帐号 | | botAccount | string | yes | 在引擎中的帐号 |
| userId | | yes | 用户id | | userId | number | yes | 用户id |
| username | | yes | 作者的用户名 | | username | string | yes | 作者的用户名 |
| userNickname | | yes | 作者的笔名 | | userNickname | string | yes | 作者的笔名 |
| nicknames | | no | 作品别名 可以是多个, 用逗号隔开 | | nicknames | array | no | 作品别名 可以是多个, 用逗号隔开 |
| generateStatus | | no | 生成状态 | | generateStatus | number | no | 生成状态 |
| applySuggestion | | no | 审核建议 没什么用 | | applySuggestion | string | no | 审核建议 没什么用 |
| watch | | yes | 观看量,也没什么用 | | watch | number | yes | 观看量,也没什么用 |
| defaultPlotImgUrl | | no | 默认剧情点图片 | | defaultPlotImgUrl | string | no | 默认剧情点图片 |
| defaultBgmUrl | | no | 默认背景音乐地址 | | defaultBgmUrl | string | no | 默认背景音乐地址 |
| preface | | yes | 创作者说 | | preface | string | yes | 创作者说 |
| difficulty | | yes | 困难程度 | | difficulty | string | yes | 困难程度 |
| suitCrowds | | yes | 适应人群 | | suitCrowds | string | yes | 适应人群 |
| wordNum | | no | 作品总的字数 | | wordNum | number | no | 作品总的字数 |
| postURL | | no | 初次表单地址 | | postURL | string | no | 初次表单地址 |
| postActive | | yes | 是否提交表单 | | postActive | boolean | yes | 是否提交表单 |
| startOption | | yes | 作品启动选项 | | startOption | number | yes | 作品启动选项 |
| configContent | | no | 引擎配置,主要是NER配置 | | configContent | string | no | 引擎配置,主要是NER配置 |
| extraOptions | | no | 选项设置 | | extraOptions | array | no | 选项设置 |
| startAge | | no | 开始年龄 | | startAge | number | no | 开始年龄 |
| stopAge | | no | 结束年龄 | | stopAge | number | no | 结束年龄 |
| audioType | | no | 弃用字段 | | audioType | number | no | 弃用字段 |
| score | | no | 无效字段 | | score | number | no | 无效字段 |
| nerInPretreatment | | yes | ner是否预处理 | | nerInPretreatment | boolean | yes | ner是否预处理 |
| archiveOption | | yes | 是否存档 | | archiveOption | number | yes | 是否存档 |
| allowRestart | | yes | 是否允许重启 | | allowRestart | boolean | yes | 是否允许重启 |
| hasChecked | | yes | 重名检查 | | hasChecked | boolean | yes | 重名检查 |
| labels | | yes | 作品的标签,多个用逗号隔开 | | labels | array | yes | 作品的标签,多个用逗号隔开 |
| extra | | yes | 其他参数 | | extra | object | yes | 其他参数 |
| edition | | yes | 版本类型 | | edition | number | yes | 版本类型 |
| workType | | yes | 作品类型(渠道也有区别) | | workType | number | yes | 作品类型(渠道也有区别) |
| free | | yes | 是否免费 | | free | number | yes | 是否免费 |
| applyStatus | | yes | 审核的状态,基本没什么用 | | applyStatus | number | yes | 审核的状态,基本没什么用 |
| covers | | yes | 封面 | | covers | array | yes | 封面 |
| group | | yes | 项目 | | group | object | yes | 项目 |
edition值说明 edition值说明
| key | type | description | | key | type | description |
| ---- | ---- | ---------------------- | | ---- | ------ | ---------------------- |
| 1 | | 语音版(有tts模块) | | 1 | number | 语音版(有tts模块) |
| 0 | | 文字版(配音了也不起效) | | 0 | number | 文字版(配音了也不起效) |
workType值说明 workType值说明
| key | type | description | | key | type | description |
| ---- | ---- | ----------- | | ---- | ------ | ----------- |
| 1 | | 作品故事 | | 1 | number | 作品故事 |
| 2 | | 功能性BOT | | 2 | number | 功能性BOT |
| 3 | | 附属作品 | | 3 | number | 附属作品 |
| 4 | | 第三方接入 | | 4 | number | 第三方接入 |
| 5 | | 虚拟作品 | | 5 | number | 虚拟作品 |
free值说明 free值说明
| key | type | description | | key | type | description |
| ---- | ---- | ----------- | | ---- | ------ | ----------- |
| 1 | | 免费 | | 1 | number | 免费 |
| 0 | | 付费 | | 0 | number | 付费 |
applyStatus值说明 applyStatus值说明
| key | type | description | | key | type | description |
| ---- | ---- | ------------ | | ---- | ------ | ------------ |
| 1 | | 表示审核通过 | | 1 | number | 表示审核通过 |
| 0 | | 表示未审核 | | 0 | number | 表示未审核 |
covers值说明 covers值说明
| key | type | description | | key | type | description |
| --------- | ---- | ----------- | | --------- | ------ | ----------- |
| scale | | 尺寸 | | scale | string | 尺寸 |
| listUrl | | 列表封面 | | listUrl | string | 列表封面 |
| detailUrl | | 详情封面 | | detailUrl | string | 详情封面 |
group值说明 group值说明
| key | type | description | | key | type | description |
| -------- | ---- | ------------ | | -------- | ------- | ------------ |
| id | | 主键id | | id | number | 主键id |
| masterId | | 管理员用户id | | masterId | number | 管理员用户id |
| name | | 作品名 | | name | string | 作品名 |
| multiple | | 多用户模式 | | multiple | boolean | 多用户模式 |
extra值说明 extra值说明
| key | type | description | | key | type | description |
| -------------- | ---- | ----------------------------- | | -------------- | ------- | ----------------------------- |
| combinPostForm | | 合并提交表单 | | combinPostForm | boolean | 合并提交表单 |
| agTaskInfo | | 自动生成任务信息 | | agTaskInfo | object | 自动生成任务信息 |
| progress | | 进度 | | progress | number | 进度 |
| status | | 0: 未生成 1: 生成中 2: 已完成 | | status | number | 0: 未生成 1: 生成中 2: 已完成 |
startOption值说明 startOption值说明
| key | type | description | | key | type | description |
| ---- | ---- | -------------- | | ---- | ------ | -------------- |
| 1 | | 询问开始或继续 | | 1 | number | 询问开始或继续 |
| 2 | | 快速开始 | | 2 | number | 快速开始 |
| 3 | | 继续 | | 3 | number | 继续 |
#### 请求示例 #### 请求示例
...@@ -559,51 +559,6 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/work/txgz14bot3333736305936' ...@@ -559,51 +559,6 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/work/txgz14bot3333736305936'
} }
``` ```
### 文件上传进度
**METHOD**: GET
**path**: api/platform/design/package/upload/percent
**RequestHeaders:** 同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| --------- | ---- | -------- | ----------- |
| projectId | | yes | 项目id |
#### 请求body字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求示例
```js
curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/percent/6614' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: zh-CN,zh;q=0.9' \
-H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM01ESTBOVFVzSW1WNGNDSTZNVGN3TURjd09UWTFOU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLnZqNFdnaFdHY0Zpdk81dXEtSWN0Z0tPRExzTWs0TFZKMlRGNmp6YWVtU1k6czAwcGVyczNjcmV0' \
-H 'Connection: keep-alive' \
-H 'Cookie: username=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; nickname=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDA3MDI0NTUsImV4cCI6MTcwMDcwOTY1NSwiYXV0aG9yaXR5IjoxLCJpZCI6MjI0fQ.vj4WghWGcFivO5uq-IctgKODLsMk4LVJ2TF6jzaemSY' \
-H 'Referer: http://tx-gz14.heyqiwu.cn/Editor/' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
--compressed \
--insecure
```
#### 响应实例
```json
{
"code": 1,
"msg": "成功",
"data": 0
}
```
### 导入作品 ### 导入作品
**METHOD**: POST **METHOD**: POST
...@@ -620,62 +575,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/percent/6614' ...@@ -620,62 +575,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/percent/6614'
#### 请求body字段说明 form data #### 请求body字段说明 form data
| key | type | required | description | | key | type | required | description |
| -------------- | ---- | -------- | ----------- | | -------------- | ------ | -------- | ----------- |
| uploadFileName | | yes | 上传文件名 | | uploadFileName | string | yes | 上传文件名 |
| projectId | | yes | 项目id | | projectId | number | yes | 项目id |
#### 请求示例
```js
curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/6671' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: zh-CN,zh;q=0.9' \
-H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM01Ea3hNVEVzSW1WNGNDSTZNVGN3TURjeE5qTXhNU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLldnbmszZXJqcjFiT2FPdmN3bDdJdHNDOVhIYV85OUstMmxlQXVtMHh6cmc6czAwcGVyczNjcmV0' \
-H 'Connection: keep-alive' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryxrafOU2HkVAPd61E' \
-H 'Origin: http://localhost:8080' \
-H 'Referer: http://localhost:8080/' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
-H 'botAccount: txgz14botwaer880151117' \
-H 'groupId: 49' \
-H 'mul: true' \
-H 'projectId: 6671' \
--data-raw $'------WebKitFormBoundaryxrafOU2HkVAPd61E\r\nContent-Disposition: form-data; name="uploadFileName"\r\n\r\n9d64382e14203d27266c5a28da16d3ac__重返十八岁新十轮1122--文本-图片--2023-11-22--18-22-19(1).zip\r\n------WebKitFormBoundaryxrafOU2HkVAPd61E\r\nContent-Disposition: form-data; name="projectId"\r\n\r\n6671\r\n------WebKitFormBoundaryxrafOU2HkVAPd61E--\r\n' \
--compressed \
--insecure
```
#### 响应实例
```json
{
"code": 1,
"msg": "成功",
"data": null
}
```
### 文件上传进度
**METHOD**: POST
**path**: api/platform/design/package/upload
**RequestHeaders:** 同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求body字段说明 form data
| key | type | required | description |
| -------------- | ---- | -------- | ----------- |
| uploadFileName | | yes | 上传文件名 |
| projectId | | yes | 项目id |
#### 请求示例 #### 请求示例
...@@ -712,7 +615,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/6671' \ ...@@ -712,7 +615,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/6671' \
**METHOD**: GET **METHOD**: GET
**path**: api/platform/design/package/upload **path**: api/platform/design/package/upload/percent
**RequestHeaders:** 同创作平台请求header **RequestHeaders:** 同创作平台请求header
...@@ -724,10 +627,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/6671' \ ...@@ -724,10 +627,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/6671' \
#### 请求body字段说明 form data #### 请求body字段说明 form data
| key | type | required | description | | key | type | required | description |
| -------------- | ---- | -------- | ----------- | | -------------- | ------ | -------- | ----------- |
| uploadFileName | | yes | 上传文件名 | | uploadFileName | string | yes | 上传文件名 |
| projectId | | yes | 项目id | | projectId | number | yes | 项目id |
#### 请求示例 #### 请求示例
...@@ -764,16 +667,16 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/percent/6671' ...@@ -764,16 +667,16 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/percent/6671'
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| ---------------- | ---- | -------- | ------------------- | | ---------------- | ------ | -------- | ------------------- |
| chunkNumber | | yes | 当前文件块,从1开始 | | chunkNumber | number | yes | 当前文件块,从1开始 |
| chunkSize | | yes | 分片大小 | | chunkSize | number | yes | 分片大小 |
| currentChunkSize | | yes | 目前分片大小 | | currentChunkSize | number | yes | 目前分片大小 |
| totalSize | | yes | 文件总大小 | | totalSize | number | yes | 文件总大小 |
| identifier | | yes | md5 | | identifier | string | yes | md5 |
| filename | | yes | 文件名 | | filename | string | yes | 文件名 |
| relativePath | | yes | 文件名 | | relativePath | string | yes | 文件名 |
| totalChunks | | yes | 总的分片 | | totalChunks | number | yes | 总的分片 |
#### 请求body字段说明 #### 请求body字段说明
...@@ -829,17 +732,17 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/upload/slice?chunkNumber=1&c ...@@ -829,17 +732,17 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/upload/slice?chunkNumber=1&c
#### 请求body字段说明 form data #### 请求body字段说明 form data
| key | type | required | description | | key | type | required | description |
| ---------------- | ---- | -------- | ------------------- | | ---------------- | ------ | -------- | ------------------- |
| chunkNumber | | yes | 当前文件块,从1开始 | | chunkNumber | number | yes | 当前文件块,从1开始 |
| chunkSize | | yes | 分片大小 | | chunkSize | number | yes | 分片大小 |
| currentChunkSize | | yes | 目前分片大小 | | currentChunkSize | number | yes | 目前分片大小 |
| totalSize | | yes | 文件总大小 | | totalSize | number | yes | 文件总大小 |
| identifier | | yes | md5 | | identifier | string | yes | md5 |
| filename | | yes | 文件名 | | filename | string | yes | 文件名 |
| relativePath | | yes | 文件名 | | relativePath | string | yes | 文件名 |
| totalChunks | | yes | 总的分片 | | totalChunks | string | yes | 总的分片 |
| file | | yes | 上传的作品压缩文件 | | file | zip | yes | 上传的作品压缩文件 |
#### 请求示例 #### 请求示例
...@@ -886,23 +789,23 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/upload/slice' \ ...@@ -886,23 +789,23 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/upload/slice' \
#### 请求path字段说明 #### 请求path字段说明
| key | type | required | description | | key | type | required | description |
| --------- | ---- | -------- | ----------- | | --------- | ------ | -------- | ----------- |
| projectId | | yes | 项目id | | projectId | number | yes | 项目id |
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| ----- | ---- | -------- | ----------- | | ----- | ------ | -------- | ----------- |
| types | | yes | 导出类型 | | types | string | yes | 导出类型 |
types值说明 types值说明
| key | type | description | | key | type | description |
| ----- | ---- | ----------- | | ----- | ------ | ----------- |
| text | | 文本 | | text | string | 文本 |
| audio | | 音频 | | audio | string | 音频 |
| img | | 图片 | | img | string | 图片 |
#### 请求body字段说明 #### 请求body字段说明
......
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