**测试环境URL**:http://tx-gz14.heyqiwu.cn **生产环境URL**:http://tx-gz11.heyqiwu.cn [TOC] ### 获取剧情分组 **METHOD**: GET **path**: api/platform/design/plot/category **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/plot/category/?projectId=983' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM016azFNeklzSW1WNGNDSTZNVGN3TURjME5qY3pNaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlQ3Y3hNaVZPTm5KOEJIa2p3a19GYnJ5dDZNMFQ1SWZzcWlCcjRmam9lQlk6czAwcGVyczNjcmV0' \ -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' \ -H 'botAccount: 4926009641' \ -H 'groupId: 49' \ -H 'mul: true' \ -H 'projectId: 983' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": [ { "id": 2437, "name": "1", "intro": "", "num": "1", "projectId": 983, "imgUrl": "", "bgmUrl": "", "agTaskInfo": { "status": 2 } } ] } ``` ### 获取可以拷贝的数据 **METHOD**: GET **path**: api/platform/design/package/plot/move **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/plot/move?projectId=983' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM016azFNeklzSW1WNGNDSTZNVGN3TURjME5qY3pNaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLlQ3Y3hNaVZPTm5KOEJIa2p3a19GYnJ5dDZNMFQ1SWZzcWlCcjRmam9lQlk6czAwcGVyczNjcmV0' \ -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' \ -H 'botAccount: 4926009641' \ -H 'groupId: 49' \ -H 'mul: true' \ -H 'projectId: 983' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": { "plots": [ { "categoryId": 2437, "categoryName": "1", "plotNumIds": [ { "num": "1-1", "plotId": 78278 }, { "num": "1-2", "plotId": 78279 }, { "num": "1-3", "plotId": 78280 }, { "num": "1-4", "plotId": 78281 }, { "num": "1-7", "plotId": 1795547 }, { "num": "1-8", "plotId": 1795560 }, { "num": "1-9", "plotId": 2129686 }, { "num": "1-10", "plotId": 2155042 } ] } ], "games": [ { "category": [ { "name": "1", "id": 3766 }, { "name": "原样复制", "id": -1 } ], "name": "测试语义头词组", "id": 1098 } ] } } ``` ### 跨BOT拷贝 **METHOD**: POST **path**: api/platform/design/bot/data/copy/cross/bot **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求body字段说明 | key | type | required | description | | ----------------------------- | ---- | -------- | ------------------------------- | | originBotAccount | | yes | 源作品bot帐号 | | targetBotAccount | | yes | 目标作品帐号 | | originPlotCategoryIds | | yes | 源作品bot要拷贝的剧情分类ID列表 | | originListeningActionGroupIds | | yes | 源作品bot要拷贝的监听ID列表 | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/bot/data/copy/cross/bot' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJeU5UZzBNVGtzSW1WNGNDSTZNVGN3TWpJMk5UWXhPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLkJTYXpJNzV0RHJLQU94WGdVYXRPNUdTcWYyLTcySmZ2RHJoM3MybjRFQ0E6czAwcGVyczNjcmV0' \ -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' \ -H 'botAccount: txgz14botwww853177949' \ -H 'groupId: 713' \ -H 'mul: true' \ -H 'projectId: 6381' \ --data-raw '{"originBotAccount":"txgz14botwww853177949","targetBotAccount":"1524195459","originPlotCategoryIds":[73798],"originListeningActionGroupIds":[]}' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": null } ``` ### 作品内拷贝 **METHOD**: POST **path**: api/platform/design/bot/data/copy/cur/bot **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求body字段说明 | key | type | required | description | | ----------------------------- | ---- | -------- | -------------------- | | originBotAccount | | yes | 源作品bot帐号 | | originPlotIds | | yes | 要拷贝的剧情点ID列表 | | originListeningActionGroupIds | | yes | 需要拷贝的监听ID列表 | | targetPlotCategoryId | | yes | 目标剧情分类ID | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/bot/data/copy/cross/bot' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJeU5UZzBNVGtzSW1WNGNDSTZNVGN3TWpJMk5UWXhPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLkJTYXpJNzV0RHJLQU94WGdVYXRPNUdTcWYyLTcySmZ2RHJoM3MybjRFQ0E6czAwcGVyczNjcmV0' \ -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' \ -H 'botAccount: txgz14botwww853177949' \ -H 'groupId: 713' \ -H 'mul: true' \ -H 'projectId: 6381' \ --data-raw '{"originBotAccount":"txgz14botwww853177949","targetBotAccount":"1524195459","originPlotCategoryIds":[73798],"originListeningActionGroupIds":[]}' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": null } ``` ### 获取拷贝进度 **METHOD**: GET **path**: api/platform/design/bot/data/copy/percent **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---------- | ---- | -------- | -------------- | | botAccount | | yes | 在引擎中的帐号 | #### 请求body字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/bot/data/copy/percent?botAccount=txgz14botwww853177949' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJeU5UZzBNVGtzSW1WNGNDSTZNVGN3TWpJMk5UWXhPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLkJTYXpJNzV0RHJLQU94WGdVYXRPNUdTcWYyLTcySmZ2RHJoM3MybjRFQ0E6czAwcGVyczNjcmV0' \ -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' \ -H 'botAccount: txgz14botwww853177949' \ -H 'groupId: 713' \ -H 'mul: true' \ -H 'projectId: 6381' \ --compressed \ --insecure ``` #### 响应实例 ```json SUCCESS: { "code": 1, "msg": "成功", "data": { "status": 1, // 拷贝状态  0:表示正在拷贝中, 1:表示拷贝完成, -1 表示拷贝失败 "msg": "拷贝完成!", // 提示信息 "percent": 0, // 拷贝进度 "data": null } } FAILTURE: { "code": 1, "msg": "成功", "data": { "status": -1, "msg": "数据有误", "percent": 0, "data": { "targetBotAccount": null, "varNames": ["体力值"], // 提示目标bot没有的变量 "phraseNames": ["水果"], // 提示目标bot没有词组 "placeNames": ["武夷山"], // 提示目标bot没有地点 "npcName2AttrNames": {"沙和尚":{"体力值":123123}}, // 提示目标BOT的NPC或者NPC属性不存在 "goodsName2AttrNames": {"金箍棒":{"杀伤力":123123}}, // 提示目标BOT的物品或者物品的属性不存在 "npcClassName2AttrNames": {"主要人物":{"体力值":123123}}, // 提示目标BOT的NPC类或者NPC类的属性不存在 "goodsClassName2AttrNames": {"棒类":{"杀伤力":123123}}, // 提示目标BOT的物品类或者物品类的属性不存在 "plotNums": [], // 提示与目标BOT的剧情点冲突 "plotCategoryNums": [ // 提示与目标BOT的剧情分类冲突 "1", "2" ] } } } ``` ### 获取全部作品数据 **METHOD**: GET **path**: api/platform/user/group/all **RequestHeaders:** 同创作平台请求header #### 请求param字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求body字段说明 | key | type | required | description | | ---- | ---- | -------- | ----------- | | 无 | | | | #### 请求示例 ```js curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/group/all' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM09Ea3hNemdzSW1WNGNDSTZNVGN3TURjNU5qTXpPQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLmZoMnNYcFYyeFIzU3VwUTJBeGpzV25iR3ZkQWJuUFUxNGJueF9kRjBBLU06czAwcGVyczNjcmV0' \ -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' \ -H 'botAccount: 1524195459' \ -H 'groupId: 49' \ -H 'mul: true' \ -H 'projectId: 963' \ --compressed \ --insecure ``` #### 响应实例 ```json { "code": 1, "msg": "成功", "data": [ { "id": 1, "name": "小雨相亲", "ttsName": null, "showedWorkName": "", "seriesName": "", "intro": null, "botId": 1017, "botAccount": "6080626246", "userId": 37, "username": null, "userNickname": null, "nicknames": [], "generateStatus": 1, "applyStatus": 0, "applySuggestion": "", "watch": 0, "covers": [], "defaultPlotImgUrl": "", "defaultBgmUrl": "", "preface": null, "difficulty": "中等", "suitCrowds": "", "wordNum": null, "postURL": "", "postActive": false, "startOption": 2, "edition": 1, "configContent": "", "extraOptions": [], "startAge": 1, "stopAge": 100, "workType": 1, "free": 0, "audioType": null, "score": null, "nerInPretreatment": false, "archiveOption": 0, "extra": { "combinPostForm": false, "agTaskInfo": { "progress": null, "status": 2 } }, "allowRestart": true, "hasChecked": false, "group": { "id": 76, "masterId": 37, "name": "新功能测试", "multiple": true }, "labels": [] } ] } ```