From 6bf8817d8bc5b27c90867cfbaaaa7ae018924d58 Mon Sep 17 00:00:00 2001 From: jixudong Date: Thu, 14 Dec 2023 17:47:49 +0800 Subject: [PATCH] Replace 项目列表-剧情-剧情详情.md --- gameditor/前端接口/项目列表-剧情-剧情详情.md | 271 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 file changed, 113 insertions(+), 158 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-\345\211\247\346\203\205-\345\211\247\346\203\205\350\257\246\346\203\205.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-\345\211\247\346\203\205-\345\211\247\346\203\205\350\257\246\346\203\205.md" index 006b9bb..881c977 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-\345\211\247\346\203\205-\345\211\247\346\203\205\350\257\246\346\203\205.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-\345\211\247\346\203\205-\345\211\247\346\203\205\350\257\246\346\203\205.md" @@ -8,7 +8,7 @@ -### 获取剧情分支通过剧情点ID +### 获取跳转剧情 **METHOD**: GET @@ -18,9 +18,9 @@ #### 请求path字段说明 -| key | type | required | description | -| ------ | ---- | -------- | ----------- | -| plotId | | yes | 剧情点id | +| key | type | required | description | +| ------ | ------ | -------- | ----------- | +| plotId | number | yes | 剧情点id | #### 请求param字段说明 @@ -169,7 +169,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/branch/1913297/' \ } ``` -### 搜索意图组 +### 搜索意图 **METHOD**: GET @@ -179,11 +179,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/branch/1913297/' \ #### 请求param字段说明 -| key | type | required | description | -| -------- | ---- | -------- | ---------------- | -| sents | | yes | 要搜索的句子列表 | -| pageSize | | yes | 每页的数据条数 | -| pageNum | | yes | 当前的页码 | +| key | type | required | description | +| -------- | ------ | -------- | ---------------- | +| sents | string | yes | 要搜索的句子列表 | +| pageSize | number | yes | 每页的数据条数 | +| pageNum | number | yes | 当前的页码 | #### 请求body字段说明 @@ -295,7 +295,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/query?sents=%E4% } ``` -### 剧情点添加意图组 +### 添加意图 **METHOD**: POST @@ -311,14 +311,26 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/query?sents=%E4% #### 请求body字段说明 -| key | type | required | description | -| ---------- | ---- | -------- | ---------------- | -| projectId | | yes | 项目id | -| plotId | | yes | 剧情点id | -| nextPlotId | | yes | 下一步剧情点id | -| intentName | | yes | 意图名称 | -| sents | | yes | 要搜索的句子列表 | -| phrases | | yes | 词组 | +| key | type | required | description | +| ---------- | ------ | -------- | ---------------- | +| projectId | string | yes | 项目id | +| plotId | number | yes | 剧情点id | +| nextPlotId | string | yes | 下一步剧情点id | +| intentName | string | yes | 意图名称 | +| sents | string | yes | 要搜索的句子列表 | +| phrases | array | yes | 词组 | + +phrases值说明 + +| key | type | description | +| --------------- | ------- | ---------------- | +| phraseName | string | 词组名称 | +| pos | string | 词性 | +| words | string | 词语 | +| highPerformance | boolean | 高性能模式 | +| wordSet | array | | +| ableEdit | boolean | 是否可以被编辑 | +| createNew | boolean | 是否生成新的词组 | #### 请求示例 @@ -367,12 +379,12 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/to/branch' \ #### 请求body字段说明 -| key | type | required | description | -| ----------- | ---- | -------- | ---------------- | -| curPlotId | | yes | 当前剧情点ID | -| nextPlotId | | yes | 下一步剧情点ID | -| nextPlotNum | | yes | 下一步剧情点编号 | -| examples | | yes | 分支例句 | +| key | type | required | description | +| ----------- | ------ | -------- | ---------------- | +| curPlotId | number | yes | 当前剧情点ID | +| nextPlotId | string | yes | 下一步剧情点ID | +| nextPlotNum | string | yes | 下一步剧情点编号 | +| examples | string | yes | 分支例句 | #### 请求示例 @@ -463,7 +475,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/branch/recommend' \ ``` -### 更新词性数据 +### 更新词性定义 **METHOD**: PUT @@ -479,20 +491,20 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/branch/recommend' \ #### 请求body字段说明 -| key | type | required | description | -| -------------- | ---- | -------- | -------------------- | -| delIds | | no | 删除的词性定义id列表 | -| projectId | | yes | 项目id | -| wordPropertyVo | | yes | 词性定义 | +| key | type | required | description | +| -------------- | ------ | -------- | -------------------- | +| delIds | array | no | 删除的词性定义id列表 | +| projectId | number | yes | 项目id | +| wordPropertyVo | array | yes | 词性定义数组 | wordPropertyVo值说明 -| key | type | description | -| ------------ | ---- | ----------- | -| id | | 主键ID | -| keyword | | 关键词 | -| projectId | | 项目id | -| wordProperty | | 词性 | +| key | type | description | +| ------------ | ------ | ----------- | +| id | number | 主键ID | +| keyword | string | 关键词 | +| projectId | number | 项目id | +| wordProperty | string | 词性 | #### 请求示例 @@ -537,9 +549,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/keyword/property/' \ #### 请求path字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目id | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目id | #### 请求param字段说明 @@ -599,10 +611,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/keyword/property/1093/' \ #### 请求param字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | | 项目id | -| plotId | | | 剧情点id | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目id | +| plotId | number | yes | 剧情点id | #### 请求body字段说明 @@ -654,76 +666,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/systemCustomWord?projec } ``` -### **获得树结点的语义关系** +### **获取语义关系** **METHOD**: GET -**path**: api/platform/design/plot/systemCustomWord - -**RequestHeaders:** 同创作平台请求header - -#### 请求param字段说明 - -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | | 项目id | -| plotId | | | 剧情点id | - -#### 请求body字段说明 - -| key | type | required | description | -| ---- | ---- | -------- | ----------- | -| 无 | | | | - -#### 请求示例 - -```js -curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/systemCustomWord?projectId=1&plotId=1914361' \ - -H 'Accept: application/json, text/plain, */*' \ - -H 'Accept-Language: zh-CN,zh;q=0.9' \ - -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFd05Ea3dPVEVzSW1WNGNDSTZNVGN3TVRBMU5qSTVNU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLmZ6S05JQ0IxWW9hMFhyRDl0dDZXTUR3RFBRQldFOTk3aHAyMnRCbkI5dUk6czAwcGVyczNjcmV0' \ - -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: 6080626246' \ - -H 'groupId: 76' \ - -H 'mul: true' \ - -H 'projectId: 1' \ - --compressed \ - --insecure -``` - -#### 响应实例 - -```json -{ - "code": 1, - "msg": "成功", - "data": [ - { - "conditionName": "shenme_shi_shenme", - "conditionNickname": "问什么是什么", - "systemWords": [ - { - "o": "我的", - "s": "我", - "customs": [ - "我" - ] - } - ], - "semanticRelationName": "ruleb0shenmeb0shib0shenme" - } - ] -} -``` - -### **获取分类树** - -**METHOD**: GET - -**path**: api/platform/design/plot/systemCustomWord +**path**: api/platform/design/condition/categoryTree **RequestHeaders:** 同创作平台请求header @@ -811,9 +758,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/categoryTree' \ #### 请求param字段说明 -| key | type | required | description | -| -------------- | ---- | -------- | ---------------- | -| categoryTreeId | | yes | 语义关系分类树ID | +| key | type | required | description | +| -------------- | ------ | -------- | ---------------- | +| categoryTreeId | number | yes | 语义关系分类树ID | #### 请求body字段说明 @@ -884,7 +831,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/list?categoryTreeI } ``` -### 语义搜索推荐 +### 获取搜索推荐话语意图 **METHOD**: POST @@ -900,9 +847,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/list?categoryTreeI #### 请求body字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| sentences | | yes | 句子列表 | +| key | type | required | description | +| --------- | ----- | -------- | ----------- | +| sentences | array | yes | 句子列表 | #### 请求示例 @@ -987,9 +934,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/search/recommend' #### 请求param字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| queryText | | yes | 搜索文本 | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| queryText | string | yes | 搜索文本 | #### 请求body字段说明 @@ -1073,9 +1020,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/search?queryText=% #### 请求param字段说明 -| key | type | required | description | -| -------------------- | ---- | -------- | ------------ | -| semanticRelationName | | yes | 语义关系名称 | +| key | type | required | description | +| -------------------- | ------ | -------- | ------------ | +| semanticRelationName | string | yes | 语义关系名称 | #### 请求body字段说明 @@ -1152,13 +1099,13 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition?semanticRelationNa #### 请求body字段说明 -| key | type | required | description | -| ----------------- | ---- | -------- | ------------ | -| sourcePlotId | | yes | 源剧情点id | -| conditionNickname | | yes | 话语意图 | -| all | | yes | 是否部分复制 | -| sourceBotAccount | | yes | 源作品账号 | -| targetPlotId | | yes | 目标剧情点id | +| key | type | required | description | +| ----------------- | ------- | -------- | ------------ | +| sourcePlotId | number | yes | 源剧情点id | +| conditionNickname | array | yes | 话语意图 | +| all | boolean | yes | 是否部分复制 | +| sourceBotAccount | string | yes | 源作品账号 | +| targetPlotId | number | yes | 目标剧情点id | #### 请求示例 @@ -1201,11 +1148,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/copy/systemWord' \ #### 请求param字段说明 -| key | type | required | description | -| ------ | ---- | -------- | ----------- | -| npcId | | yes | 角色ID | -| textId | | yes | 文本ID | -| mood | | yes | 情绪 | +| key | type | required | description | +| ------ | ------ | -------- | ----------- | +| npcId | number | yes | 角色ID | +| textId | number | yes | 文本ID | +| mood | string | yes | 情绪 | #### 请求body字段说明 @@ -1252,7 +1199,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio?npcId=31344& } ``` -### 剧情文本背景音乐上传音频地址 +### 上传背景音乐 **METHOD**: POST @@ -1268,12 +1215,20 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio?npcId=31344& #### 请求body字段说明 form data -| key | type | required | description | -| ---------- | ---- | -------- | ---------------- | -| file | | yes | 音频文件 | -| sampleRate | | yes | 采样率 | -| bitRate | | yes | 比特率 | -| type | | yes | 上传文件类型属性 | +| key | type | required | description | +| ---------- | ------ | -------- | ------------ | +| file | mp3 | yes | 音频文件 | +| sampleRate | number | yes | 采样率 | +| bitRate | string | yes | 比特率 | +| type | string | yes | 上传文件位置 | + +type值说明 + +| key | type | description | +| -------- | ------ | ----------- | +| plot | string | 剧情文本 | +| category | string | 剧情分组 | +| default | string | 作品列表 | #### 请求示例 @@ -1316,9 +1271,9 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/tts/upload/background/audio' \ #### 请求param字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目ID | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目ID | #### 请求body字段说明 @@ -1368,7 +1323,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983 } ``` -### 获取节点数据 +### 网状图-获取节点数据 **METHOD**: GET @@ -1378,9 +1333,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983 #### 请求param字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目id | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目id | #### 请求body字段说明 @@ -1507,7 +1462,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/nodeGraph/data?projectId=155 } ``` -### 获取剧情点剧情文本 +### 网状图-获取剧情点剧情文本 **METHOD**: GET @@ -1517,9 +1472,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/nodeGraph/data?projectId=155 #### 请求param字段说明 -| key | type | required | description | -| ------ | ---- | -------- | ----------- | -| plotId | | yes | 剧情点ID | +| key | type | required | description | +| ------ | ------ | -------- | ----------- | +| plotId | number | yes | 剧情点ID | #### 请求body字段说明 @@ -1561,7 +1516,7 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/nodeGraph/plot/text?plotId=1 } ``` -### 获取分支条件信息 +### 网状图-获取分支条件信息 **METHOD**: GET @@ -1571,9 +1526,9 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/nodeGraph/plot/text?plotId=1 #### 请求param字段说明 -| key | type | required | description | -| -------- | ---- | -------- | ----------- | -| branchId | | yes | 分支ID | +| key | type | required | description | +| -------- | ------ | -------- | ----------- | +| branchId | number | yes | 分支ID | #### 请求body字段说明 -- libgit2 0.27.1