**测试环境URL**:http://tx-gz14.heyqiwu.cn **生产环境URL**:http://tx-gz11.heyqiwu.cn [TOC] ### 审核作品 **METHOD**: PUT **path**: api/platform/design/project/{id}/apply **RequestHeaders:** 同创作平台请求header #### 请求path字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | id | | yes | 主键ID | #### 请求param字段说明 | key | type | required | description | | ----------- | ---- | -------- | ----------- | | applyStatus | | yes | 审核的状态 | #### 请求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/project/8/apply?applyStatus=0' \ -X 'PUT' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFMk56QXdORFlzSW1WNGNDSTZNVGN3TVRZM056STBOaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpVd2ZRLmxSUEtJNXNRbkhoVVl5LWplalpMbHNKZF9wX2lINkZ2NnlTUUZpZDFXZFk6czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Cookie: username=jixudong; nickname=jixudong; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDE2NzAwNDYsImV4cCI6MTcwMTY3NzI0NiwiYXV0aG9yaXR5IjoxLCJpZCI6MzUwfQ.lRPKI5sQnHhUYy-jejZLlsJd_p_iH6Fv6ySQFid1WdY' \ -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' \ --data-raw '{"id":8,"name":"晚安爱丽丝","seriesName":"","ttsName":null,"intro":"爱丽丝离开城堡后误入了迷失森林,遇见了可爱友善的兔子凯文,以及活泼开朗的猴子麦克,接下来他们会在森林中有怎样的奇遇呢?","botId":34967,"botAccount":"gz38botwananailisi465420096","applyStatus":0,"applySuggestion":"","score":0,"nicknames":["晚安爱力丝","晚安爱丽思"],"free":0,"difficulty":"简单","suitCrowds":"儿童","startAge":1,"stopAge":100,"username":"k1percent","userNickname":"k1percent","preface":"这是一款语音故事类游戏,主要是以用户为第一视角,在设计上主要以对话互动为主,通过用户的选择来决定剧情的走向","workType":1,"labels":["找寻","儿童","冒险"],"audioType":null,"covers":[{"scale":"4x3","listUrl":"http://tx-gz13.heyqiwu.cn/media/gz38botwananailisi465420096/img/DINePiv1602853745656_cover_list_page_4x3.jpeg","detailUrl":"http://tx-gz13.heyqiwu.cn/media/gz38botwananailisi465420096/img/DINePiv1602853745656_cover_detail_page_4x3.jpeg"}],"includedWorks":[],"group":{"id":null,"masterId":null,"name":"无","multiple":false}}' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": null } ``` ### 管理员-搜索作品 **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 } ``` ### 管理员-部署NT文件 **METHOD**: POST **path**: api/platform/user/admin/deploy/bot/nt **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求body字段说明 | key | type | required | description | | ----------- | ---- | -------- | -------------- | | botAccounts | | yes | 在引擎中的账号 | | note | | no | 注释 | | version | | yes | 版本号 | | serverIds | | yes | 部署服务器 | #### 请求示例 ```js curl 'http://tx-gz11.heyqiwu.cn/api/platform/user/admin/deploy/bot/nt' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFM05EQXpORFFzSW1WNGNDSTZNVGN3TVRjME56VTBOQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpVd2ZRLm85d056V2FLcmtWdWFFZzBadnVPOWtDRklCbkZGZWlFeTkzX3lwcGk2SU06czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Cookie: username=jixudong; nickname=jixudong; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDE3NDAzNDQsImV4cCI6MTcwMTc0NzU0NCwiYXV0aG9yaXR5IjoxLCJpZCI6MzUwfQ.o9wNzWaKrkVuaEg0ZvuO9kCFIBnFFeiEy93_yppi6IM' \ -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' \ --data-raw '{"serverId":"tx-gz10","version":"1.2.1","note":"注释","botAccounts":["gz38botceshipeng570617948 "]}' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": null } ``` ### 请求渠道评分 **METHOD**: GET **path**: api/platform/design/work/admin/evaluate **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | -------- | ---- | -------- | ----------- | | workName | | yes | 作品名称 | #### 请求body字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求示例 ```js curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/work/admin/evaluate?workName=%E5%8B%87%E9%97%AF%E7%9F%A5%E8%AF%86%E8%BF%B7%E5%AE%AB0528' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFM05EQXpORFFzSW1WNGNDSTZNVGN3TVRjME56VTBOQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpVd2ZRLm85d056V2FLcmtWdWFFZzBadnVPOWtDRklCbkZGZWlFeTkzX3lwcGk2SU06czAwcGVyczNjcmV0' \ -H 'Connection: keep-alive' \ -H 'Cookie: username=jixudong; nickname=jixudong; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDE3NDAzNDQsImV4cCI6MTcwMTc0NzU0NCwiYXV0aG9yaXR5IjoxLCJpZCI6MzUwfQ.o9wNzWaKrkVuaEg0ZvuO9kCFIBnFFeiEy93_yppi6IM' \ -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' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": [] } ``` ### 获取所有作品列表 **METHOD**: GET **path**: api/platform/user/admin/work/all **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ----------- | ---- | -------- | ------------------------ | | channelId | | no | 渠道id | | free | | no | 是否免费 | | audioType | | no | 弃用字段 | | applyStatus | | yes | 审核的状态,基本没什么用 | applyStatus值说明 | key | type | description | | ---- | ---- | ------------ | | 0 | | 表示未审核 | | 1 | | 表示审核通过 | #### 请求body字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/admin/work/all?channelId=&free=&audioType=&applyStatus=0' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFM05EQXpOVEFzSW1WNGNDSTZNVGN3TVRjME56VTFNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLm1zRmpNTHVKbkhWa1J5QXhQN19fdjd0a1Q5bHYzeWVzWmtObUdBSmJvVDA6czAwcGVyczNjcmV0' \ -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": [ { "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 } } ] } ```