From 3755057d12c6214642ced8263f9abf4b65ff8383 Mon Sep 17 00:00:00 2001 From: jixudong Date: Thu, 14 Dec 2023 15:10:09 +0800 Subject: [PATCH] Replace 项目列表-作品列表.md --- gameditor/前端接口/项目列表-作品列表.md | 391 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 file changed, 147 insertions(+), 244 deletions(-) diff --git "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" index 9871397..57bda04 100644 --- "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" +++ "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\344\275\234\345\223\201\345\210\227\350\241\250.md" @@ -76,7 +76,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/workType' \ ``` -### **获取一条分组下的作品** +### **获取选中项目下的作品** **METHOD**: GET @@ -86,9 +86,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/workType' \ #### 请求param字段说明 -| key | type | required | description | -| ------- | ---- | -------- | ----------- | -| groupId | | yes | 作品id | +| key | type | required | description | +| ------- | ------ | -------- | ----------- | +| groupId | number | yes | 作品id | #### 请求body字段说明 @@ -287,7 +287,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578' } ``` -### 提交审核 +### 发布审核 **METHOD**: PUT @@ -297,9 +297,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578' #### 请求path字段说明 -| key | type | required | description | -| ---- | ---- | -------- | ----------- | -| id | | yes | 主键id | +| key | type | required | description | +| ---- | ------ | -------- | ----------- | +| id | number | yes | 主键id | #### 请求param字段说明 @@ -309,12 +309,12 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/by_groupId?groupId=578' #### 请求body字段说明 -| key | type | required | description | -| ----------- | ---- | -------- | -------------- | -| applyStatus | | yes | 审核状态 | -| botAccount | | yes | 在引擎中的帐号 | -| groupId | | yes | 作品id | -| name | | yes | 作品名称 | +| key | type | required | description | +| ----------- | ------ | -------- | -------------- | +| applyStatus | number | yes | 审核状态 | +| botAccount | string | yes | 在引擎中的帐号 | +| groupId | number | yes | 作品id | +| name | string | yes | 作品名称 | #### 请求示例 @@ -347,7 +347,7 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/project/2658/apply/' \ } ``` -### 分组删除作品 +### 删除作品 **METHOD**: DELETE @@ -363,12 +363,12 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/project/2658/apply/' \ #### 请求body字段说明 -| key | type | required | description | -| ---------- | ---- | -------- | -------------- | -| botId | | yes | 在引擎中的ID | -| botAccount | | yes | 在引擎中的帐号 | -| groupId | | yes | 项目组id | -| projectId | | yes | 项目id | +| key | type | required | description | +| ---------- | ------ | -------- | -------------- | +| botId | number | yes | 在引擎中的ID | +| botAccount | string | yes | 在引擎中的帐号 | +| groupId | number | yes | 项目组id | +| projectId | number | yes | 项目id | #### 请求示例 @@ -418,115 +418,115 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/bot' \ #### 请求body字段说明 -| key | type | required | description | -| ----------------- | ---- | -------- | ----------------------------------- | -| id | | yes | 主键id | -| name | | yes | 作品名 | -| ttsName | | no | 语音合成时候的名称 | -| showedWorkName | | no | 显示在app上的名称,如果为空则是name | -| seriesName | | no | 系列名称 | -| intro | | yes | 作品介绍 | -| botId | | yes | 在引擎中的ID | -| botAccount | | yes | 在引擎中的帐号 | -| userId | | yes | 用户id | -| username | | yes | 作者的用户名 | -| userNickname | | yes | 作者的笔名 | -| nicknames | | no | 作品别名 可以是多个, 用逗号隔开 | -| generateStatus | | no | 生成状态 | -| applySuggestion | | no | 审核建议 没什么用 | -| watch | | yes | 观看量,也没什么用 | -| defaultPlotImgUrl | | no | 默认剧情点图片 | -| defaultBgmUrl | | no | 默认背景音乐地址 | -| preface | | yes | 创作者说 | -| difficulty | | yes | 困难程度 | -| suitCrowds | | yes | 适应人群 | -| wordNum | | no | 作品总的字数 | -| postURL | | no | 初次表单地址 | -| postActive | | yes | 是否提交表单 | -| startOption | | yes | 作品启动选项 | -| configContent | | no | 引擎配置,主要是NER配置 | -| extraOptions | | no | 选项设置 | -| startAge | | no | 开始年龄 | -| stopAge | | no | 结束年龄 | -| audioType | | no | 弃用字段 | -| score | | no | 无效字段 | -| nerInPretreatment | | yes | ner是否预处理 | -| archiveOption | | yes | 是否存档 | -| allowRestart | | yes | 是否允许重启 | -| hasChecked | | yes | 重名检查 | -| labels | | yes | 作品的标签,多个用逗号隔开 | -| extra | | yes | 其他参数 | -| edition | | yes | 版本类型 | -| workType | | yes | 作品类型(渠道也有区别) | -| free | | yes | 是否免费 | -| applyStatus | | yes | 审核的状态,基本没什么用 | -| covers | | yes | 封面 | -| group | | yes | 项目 | +| key | type | required | description | +| ----------------- | ------- | -------- | ----------------------------------- | +| id | number | yes | 主键id | +| name | string | yes | 作品名 | +| ttsName | string | no | 语音合成时候的名称 | +| showedWorkName | string | no | 显示在app上的名称,如果为空则是name | +| seriesName | string | no | 系列名称 | +| intro | string | yes | 作品介绍 | +| botId | number | yes | 在引擎中的ID | +| botAccount | string | yes | 在引擎中的帐号 | +| userId | number | yes | 用户id | +| username | string | yes | 作者的用户名 | +| userNickname | string | yes | 作者的笔名 | +| nicknames | array | no | 作品别名 可以是多个, 用逗号隔开 | +| generateStatus | number | no | 生成状态 | +| applySuggestion | string | no | 审核建议 没什么用 | +| watch | number | yes | 观看量,也没什么用 | +| defaultPlotImgUrl | string | no | 默认剧情点图片 | +| defaultBgmUrl | string | no | 默认背景音乐地址 | +| preface | string | yes | 创作者说 | +| difficulty | string | yes | 困难程度 | +| suitCrowds | string | yes | 适应人群 | +| wordNum | number | no | 作品总的字数 | +| postURL | string | no | 初次表单地址 | +| postActive | boolean | yes | 是否提交表单 | +| startOption | number | yes | 作品启动选项 | +| configContent | string | no | 引擎配置,主要是NER配置 | +| extraOptions | array | no | 选项设置 | +| startAge | number | no | 开始年龄 | +| stopAge | number | no | 结束年龄 | +| audioType | number | no | 弃用字段 | +| score | number | no | 无效字段 | +| nerInPretreatment | boolean | yes | ner是否预处理 | +| archiveOption | number | yes | 是否存档 | +| allowRestart | boolean | yes | 是否允许重启 | +| hasChecked | boolean | yes | 重名检查 | +| labels | array | yes | 作品的标签,多个用逗号隔开 | +| extra | object | yes | 其他参数 | +| edition | number | yes | 版本类型 | +| workType | number | yes | 作品类型(渠道也有区别) | +| free | number | yes | 是否免费 | +| applyStatus | number | yes | 审核的状态,基本没什么用 | +| covers | array | yes | 封面 | +| group | object | yes | 项目 | edition值说明 -| key | type | description | -| ---- | ---- | ---------------------- | -| 1 | | 语音版(有tts模块) | -| 0 | | 文字版(配音了也不起效) | +| key | type | description | +| ---- | ------ | ---------------------- | +| 1 | number | 语音版(有tts模块) | +| 0 | number | 文字版(配音了也不起效) | workType值说明 -| key | type | description | -| ---- | ---- | ----------- | -| 1 | | 作品故事 | -| 2 | | 功能性BOT | -| 3 | | 附属作品 | -| 4 | | 第三方接入 | -| 5 | | 虚拟作品 | +| key | type | description | +| ---- | ------ | ----------- | +| 1 | number | 作品故事 | +| 2 | number | 功能性BOT | +| 3 | number | 附属作品 | +| 4 | number | 第三方接入 | +| 5 | number | 虚拟作品 | free值说明 -| key | type | description | -| ---- | ---- | ----------- | -| 1 | | 免费 | -| 0 | | 付费 | +| key | type | description | +| ---- | ------ | ----------- | +| 1 | number | 免费 | +| 0 | number | 付费 | applyStatus值说明 -| key | type | description | -| ---- | ---- | ------------ | -| 1 | | 表示审核通过 | -| 0 | | 表示未审核 | +| key | type | description | +| ---- | ------ | ------------ | +| 1 | number | 表示审核通过 | +| 0 | number | 表示未审核 | covers值说明 -| key | type | description | -| --------- | ---- | ----------- | -| scale | | 尺寸 | -| listUrl | | 列表封面 | -| detailUrl | | 详情封面 | +| key | type | description | +| --------- | ------ | ----------- | +| scale | string | 尺寸 | +| listUrl | string | 列表封面 | +| detailUrl | string | 详情封面 | group值说明 -| key | type | description | -| -------- | ---- | ------------ | -| id | | 主键id | -| masterId | | 管理员用户id | -| name | | 作品名 | -| multiple | | 多用户模式 | +| key | type | description | +| -------- | ------- | ------------ | +| id | number | 主键id | +| masterId | number | 管理员用户id | +| name | string | 作品名 | +| multiple | boolean | 多用户模式 | extra值说明 -| key | type | description | -| -------------- | ---- | ----------------------------- | -| combinPostForm | | 合并提交表单 | -| agTaskInfo | | 自动生成任务信息 | -| progress | | 进度 | -| status | | 0: 未生成 1: 生成中 2: 已完成 | +| key | type | description | +| -------------- | ------- | ----------------------------- | +| combinPostForm | boolean | 合并提交表单 | +| agTaskInfo | object | 自动生成任务信息 | +| progress | number | 进度 | +| status | number | 0: 未生成 1: 生成中 2: 已完成 | startOption值说明 -| key | type | description | -| ---- | ---- | -------------- | -| 1 | | 询问开始或继续 | -| 2 | | 快速开始 | -| 3 | | 继续 | +| key | type | description | +| ---- | ------ | -------------- | +| 1 | number | 询问开始或继续 | +| 2 | number | 快速开始 | +| 3 | number | 继续 | #### 请求示例 @@ -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 @@ -620,62 +575,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/percent/6614' #### 请求body字段说明 form data -| key | type | required | description | -| -------------- | ---- | -------- | ----------- | -| uploadFileName | | yes | 上传文件名 | -| projectId | | 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 | +| key | type | required | description | +| -------------- | ------ | -------- | ----------- | +| uploadFileName | string | yes | 上传文件名 | +| projectId | number | yes | 项目id | #### 请求示例 @@ -712,7 +615,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/6671' \ **METHOD**: GET -**path**: api/platform/design/package/upload +**path**: api/platform/design/package/upload/percent **RequestHeaders:** 同创作平台请求header @@ -724,10 +627,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/6671' \ #### 请求body字段说明 form data -| key | type | required | description | -| -------------- | ---- | -------- | ----------- | -| uploadFileName | | yes | 上传文件名 | -| projectId | | yes | 项目id | +| key | type | required | description | +| -------------- | ------ | -------- | ----------- | +| uploadFileName | string | yes | 上传文件名 | +| projectId | number | yes | 项目id | #### 请求示例 @@ -764,16 +667,16 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/upload/percent/6671' #### 请求param字段说明 -| key | type | required | description | -| ---------------- | ---- | -------- | ------------------- | -| chunkNumber | | yes | 当前文件块,从1开始 | -| chunkSize | | yes | 分片大小 | -| currentChunkSize | | yes | 目前分片大小 | -| totalSize | | yes | 文件总大小 | -| identifier | | yes | md5 | -| filename | | yes | 文件名 | -| relativePath | | yes | 文件名 | -| totalChunks | | yes | 总的分片 | +| key | type | required | description | +| ---------------- | ------ | -------- | ------------------- | +| chunkNumber | number | yes | 当前文件块,从1开始 | +| chunkSize | number | yes | 分片大小 | +| currentChunkSize | number | yes | 目前分片大小 | +| totalSize | number | yes | 文件总大小 | +| identifier | string | yes | md5 | +| filename | string | yes | 文件名 | +| relativePath | string | yes | 文件名 | +| totalChunks | number | yes | 总的分片 | #### 请求body字段说明 @@ -829,17 +732,17 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/upload/slice?chunkNumber=1&c #### 请求body字段说明 form data -| key | type | required | description | -| ---------------- | ---- | -------- | ------------------- | -| chunkNumber | | yes | 当前文件块,从1开始 | -| chunkSize | | yes | 分片大小 | -| currentChunkSize | | yes | 目前分片大小 | -| totalSize | | yes | 文件总大小 | -| identifier | | yes | md5 | -| filename | | yes | 文件名 | -| relativePath | | yes | 文件名 | -| totalChunks | | yes | 总的分片 | -| file | | yes | 上传的作品压缩文件 | +| key | type | required | description | +| ---------------- | ------ | -------- | ------------------- | +| chunkNumber | number | yes | 当前文件块,从1开始 | +| chunkSize | number | yes | 分片大小 | +| currentChunkSize | number | yes | 目前分片大小 | +| totalSize | number | yes | 文件总大小 | +| identifier | string | yes | md5 | +| filename | string | yes | 文件名 | +| relativePath | string | yes | 文件名 | +| totalChunks | string | yes | 总的分片 | +| file | zip | yes | 上传的作品压缩文件 | #### 请求示例 @@ -886,23 +789,23 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/upload/slice' \ #### 请求path字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目id | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目id | #### 请求param字段说明 -| key | type | required | description | -| ----- | ---- | -------- | ----------- | -| types | | yes | 导出类型 | +| key | type | required | description | +| ----- | ------ | -------- | ----------- | +| types | string | yes | 导出类型 | types值说明 -| key | type | description | -| ----- | ---- | ----------- | -| text | | 文本 | -| audio | | 音频 | -| img | | 图片 | +| key | type | description | +| ----- | ------ | ----------- | +| text | string | 文本 | +| audio | string | 音频 | +| img | string | 图片 | #### 请求body字段说明 -- libgit2 0.27.1