From e327850212d6f89cb5f9aa4d4e7822ca36bd45aa Mon Sep 17 00:00:00 2001 From: jixudong Date: Tue, 5 Dec 2023 10:14:30 +0800 Subject: [PATCH] Replace 管理界面-审核作品.md --- gameditor/前端接口/管理界面-审核作品.md | 510 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 510 insertions(+) diff --git "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\256\241\347\220\206\347\225\214\351\235\242-\345\256\241\346\240\270\344\275\234\345\223\201.md" "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\256\241\347\220\206\347\225\214\351\235\242-\345\256\241\346\240\270\344\275\234\345\223\201.md" index f27e59d..65107df 100644 --- "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\256\241\347\220\206\347\225\214\351\235\242-\345\256\241\346\240\270\344\275\234\345\223\201.md" +++ "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\256\241\347\220\206\347\225\214\351\235\242-\345\256\241\346\240\270\344\275\234\345\223\201.md" @@ -124,3 +124,513 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/project/8/apply?applyStatus= } ``` +### 管理员-搜索作品 + +**METHOD**: GET + +**path**: api/platform/user/admin/work/search + +**RequestHeaders:** 同创作平台请求header + +#### 请求param字段说明 + +| key | type | required | description | +| -------- | ---- | -------- | ------------ | +| workName | | no | 作品名 | +| pageSize | | yes | 每一页数据量 | +| pageNum | | yes | 页码 | + +#### 请求body字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求示例 + +```js +curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/admin/work/search?workName=&pageSize=10&pageNum=1' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFMk56WTJOVGtzSW1WNGNDSTZNVGN3TVRZNE16ZzFPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlU1RFgxU0Z0azkzcjRjVUVjY282OWNMUEJuOUdqZGNBR0tpSmVpa3Vab0k6czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -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' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": { + "pages": 3, + "pageNum": 1, + "pageSize": 10, + "total": 31, + "records": [ + { + "id": 820, + "name": "交游天下作品推荐", + "seriesName": "12", + "ttsName": "12", + "intro": "1", + "botId": 981, + "botAccount": "4151097686", + "applyStatus": 1, + "applySuggestion": "", + "score": 10, + "nicknames": [ + "12" + ], + "free": 0, + "difficulty": "中等", + "suitCrowds": "儿童", + "startAge": 1, + "stopAge": 1, + "username": "tcq123", + "userNickname": "北卡", + "preface": "测试", + "workType": 2, + "labels": [ + "1" + ], + "audioType": 0, + "covers": [ + { + "scale": "4x3", + "listUrl": "http://tx-gz14.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_list_page_4x3.jpeg", + "detailUrl": "http://tx-gz14.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_detail_page_4x3.jpeg" + }, + { + "scale": "1x1", + "listUrl": "http://tx-gz14.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_list_page_1x1.png", + "detailUrl": "http://tx-gz14.heyqiwu.cn/media/4151097686/img/yabkIqp1603537318307_cover_detail_page_1x1.png" + } + ], + "includedWorks": [], + "group": { + "id": 6, + "masterId": 38, + "name": null, + "multiple": true + } + } + ] + } +} +``` + +### 管理员-获取服务器的配置 + +**METHOD**: GET + +**path**: api/platform/user/admin/deploy/v2/servers + +**RequestHeaders:** 同创作平台请求header + +#### 请求param字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | -------------- | +| type | | no | 服务器类型枚举 | + +type值说明 + +| key | type | description | +| ----- | ---- | ----------- | +| text | | 作品 | +| img | | 图片 | +| audio | | 音频 | + +#### 请求body字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求示例 + +```js +curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/admin/deploy/v2/servers?type=' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFMk56WTJOVGtzSW1WNGNDSTZNVGN3TVRZNE16ZzFPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlU1RFgxU0Z0azkzcjRjVUVjY282OWNMUEJuOUdqZGNBR0tpSmVpa3Vab0k6czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -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' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": [ + { + "type": "text", + "serverId": "tx-gz3" + }, + { + "type": "audio", + "serverId": "tx-gz10" + }, + { + "type": "text", + "serverId": "tx-gz5" + }, + { + "type": "text", + "serverId": "tx-gz10" + }, + { + "type": "img", + "serverId": "tx-gz1" + }, + { + "type": "img", + "serverId": "tx-gz10" + }, + { + "type": "text", + "serverId": "tx-gz6" + }, + { + "type": "audio", + "serverId": "tx-gz1" + }, + { + "type": "text", + "serverId": "tx-gz33" + }, + { + "type": "text", + "serverId": "tx-gz4" + }, + { + "type": "text", + "serverId": "tx-gz30" + }, + { + "type": "text", + "serverId": "tx-gz9" + }, + { + "type": "text", + "serverId": "tx-gz27" + }, + { + "type": "text", + "serverId": "tx-gz8" + }, + { + "type": "text", + "serverId": "tx-gz34" + } + ] +} +``` + +### 修改审核作品 + +**METHOD**: PUT + +**path**: api/platform/design/work/admin/{botAccount} + +**RequestHeaders:** 同创作平台请求header + +#### 请求path字段说明 + +| key | type | required | description | +| ---------- | ---- | -------- | -------------- | +| botAccount | | yes | 在引擎中的账号 | + +#### 请求param字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ------------------------------ | +| type | | no | 服务器类型枚举:text,img,audio; | + +#### 请求body字段说明 + +| key | type | required | description | +| --------------- | ---- | -------- | -------------------------------- | +| id | | yes | 主键ID | +| name | | yes | 作品名 | +| seriesName | | no | 系列名称 | +| ttsName | | no | 语音合成时候的名称 | +| intro | | yes | 作品介绍 | +| botId | | yes | 在引擎中的ID | +| botAccount | | yes | 在引擎中的账号 | +| applyStatus | | yes | 审核的状态 | +| applySuggestion | | no | 审核建议 | +| score | | yes | 评分 | +| nicknames | | yes | 作品别名 可以是多个, 用逗号隔开 | +| free | | yes | 是否免费 | +| difficulty | | yes | 困难程度 | +| suitCrowds | | yes | 适应人群 | +| startAge | | yes | 开始年龄 | +| stopAge | | yes | 结束年龄 | +| username | | yes | 作者的用户名 | +| userNickname | | yes | 作者的笔名 | +| preface | | yes | 创作者说 | +| workType | | yes | 作品类型 | +| labels | | yes | 作品的标签,多个用逗号隔开 | +| audioType | | no | 弃用字段 | +| covers | | yes | 新版封面 | +| includedWorks | | no | 包含作品,多个用逗号隔开 | +| group | | yes | | + +workType值说明 + +| key | type | description | +| ---- | ---- | ----------- | +| 1 | | 作品故事 | +| 2 | | 功能性BOT | +| 3 | | 附属作品 | +| 4 | | 第三方接入 | +| 5 | | 虚拟作品 | + +free值说明 + +| key | type | description | +| ---- | ---- | ----------- | +| 1 | | 免费 | +| 0 | | 付费 | + +applyStatus值说明 + +| key | type | description | +| ---- | ---- | ------------ | +| 1 | | 表示审核通过 | +| 0 | | 表示未审核 | + +covers值说明 + +| key | type | description | +| --------- | ---- | ----------- | +| scale | | 尺寸 | +| listUrl | | 列表封面 | +| detailUrl | | 详情封面 | + +group值说明 + +| key | type | description | +| -------- | ---- | ------------ | +| id | | | +| masterId | | 管理员用户id | +| name | | | +| multiple | | | + +#### 请求示例 + +```js +curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/work/admin/gz38botliuxiceshi38bushu182537220' \ + -X 'PUT' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFMk56YzNPVGNzSW1WNGNDSTZNVGN3TVRZNE5EazVOeXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpVd2ZRLmRGTnFLa1p5TTBaTkpaM0x6QzZxN1JoRmtiSmtxSUZkOVRCMlRjNnMzT3c6czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -H 'Content-Type: application/json;charset=UTF-8' \ + -H 'Cookie: username=jixudong; nickname=jixudong; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDE2Nzc3OTcsImV4cCI6MTcwMTY4NDk5NywiYXV0aG9yaXR5IjoxLCJpZCI6MzUwfQ.dFNqKkZyM0ZNJZ3LzC6q7RhFkbJkqIFd9TB2Tc6s3Ow' \ + -H 'Origin: http://tx-gz11.heyqiwu.cn' \ + -H 'Referer: http://tx-gz11.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' \ + -H 'botAccount: gz38botliuxiceshi38bushu182537220' \ + -H 'groupId: 283' \ + -H 'mul: true' \ + -H 'projectId: 164' \ + --data-raw '{"id":164,"name":"刘希测试38部署","seriesName":"","ttsName":null,"intro":"巴斯德是法国的微生物学家和化学家,他开辟了微生物领域,发明了巴氏消毒法,最后研制狂犬病疫苗。他是怎么做到的呢?跟随晓悟一起穿越出发,你就知道啦!","botId":35920,"botAccount":"gz38botliuxiceshi38bushu182537220","applyStatus":0,"applySuggestion":"","score":0,"nicknames":[],"free":0,"difficulty":"中等","suitCrowds":"儿童,学生","startAge":1,"stopAge":100,"username":"liuxitest123","userNickname":"小荣","preface":"科学虽没有国界,但是学者却有自己的祖国。我们一起认识一下这位科学巨人巴斯德吧。","workType":1,"labels":["历史名人","儿童"],"audioType":null,"covers":[{"scale":"4x3","listUrl":"http://tx-gz13.heyqiwu.cn/media/gz38botliuxiceshi38bushu182537220/img/TloLDmK1602853469935_cover_list_page_4x3.jpeg","detailUrl":"http://tx-gz13.heyqiwu.cn/media/gz38botliuxiceshi38bushu182537220/img/TloLDmK1602853469935_cover_detail_page_4x3.jpeg"},{"scale":"1x1","listUrl":"http://tx-gz13.heyqiwu.cn/media/gz38botliuxiceshi38bushu182537220/img/TloLDmK1602853469935_cover_list_page_1x1.jpeg","detailUrl":"http://tx-gz13.heyqiwu.cn/media/gz38botliuxiceshi38bushu182537220/img/TloLDmK1602853469935_cover_detail_page_1x1.jpeg"}],"includedWorks":[""],"group":{"id":283,"masterId":167,"name":null,"multiple":true}}' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": null +} +``` + +### 更新语义关系 + +**METHOD**: POST + +**path**: api/platform/design/generate/nt + +**RequestHeaders:** 同创作平台请求header + +#### 请求param字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求body字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求示例 + +```js +curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/generate/nt' \ + -X 'POST' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFMk56WTJOVGtzSW1WNGNDSTZNVGN3TVRZNE16ZzFPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlU1RFgxU0Z0azkzcjRjVUVjY282OWNMUEJuOUdqZGNBR0tpSmVpa3Vab0k6czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -H 'Content-Length: 0' \ + -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' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": null +} +``` + +### 管理员-获取部署记录 + +**METHOD**: GET + +**path**: api/platform/user/admin/deploy/v2/record/search + +**RequestHeaders:** 同创作平台请求header + +#### 请求param字段说明 + +| key | type | required | description | +| -------- | ---- | -------- | ------------ | +| pageSize | | yes | 每一页数据量 | +| pageNum | | yes | 页码 | + +#### 请求body字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求示例 + +```js +curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/admin/deploy/v2/record/search?pageNum=1&pageSize=10' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFMk56WTJOVGtzSW1WNGNDSTZNVGN3TVRZNE16ZzFPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlU1RFgxU0Z0azkzcjRjVUVjY282OWNMUEJuOUdqZGNBR0tpSmVpa3Vab0k6czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -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' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": { + "pages": 991, + "pageNum": 1, + "pageSize": 10, + "total": 9909, + "records": [ + { + "id": 9935, + "type": "audio", + "botAccount": "txgz14botyulequandingliu12041787813652", + "workName": "娱乐圈顶流12041", + "version": "1.1.1", + "note": "", + "status": 1, + "remoteServerId": "tx-gz1", + "remoteServerMsg": "部署完成", + "gmtCreate": "2023-12-04T08:09:22.000+00:00", + "gmtModified": "2023-12-04T08:09:22.000+00:00" + } + ] + } +} +``` + +### 管理员-部署机器人 + +**METHOD**: POST + +**path**: api/platform/user/admin/deploy/v2/bot + +**RequestHeaders:** 同创作平台请求header + +#### 请求param字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求body字段说明 + +| key | type | required | description | +| --------- | ---- | -------- | -------------- | +| type | | yes | 服务器类型枚举 | +| note | | no | 注释 | +| version | | yes | 版本号 | +| serverIds | | yes | 部署服务器 | + +type值说明 + +| key | type | description | +| ----- | ---- | ----------- | +| text | | 作品 | +| img | | 图片 | +| audio | | 音频 | + +#### 请求示例 + +```js +curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/admin/deploy/v2/bot' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFM05EQXpOVEFzSW1WNGNDSTZNVGN3TVRjME56VTFNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLm1zRmpNTHVKbkhWa1J5QXhQN19fdjd0a1Q5bHYzeWVzWmtObUdBSmJvVDA6czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -H 'Content-Type: application/json;charset=UTF-8' \ + -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' \ + --data-raw '{"botAccounts":["645179578"],"type":"text","note":"注释","version":"1.1.1","serverIds":["tx-gz10"]}' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": null +} +``` + -- libgit2 0.27.1