Commit 6bf8817d by jixudong

Replace 项目列表-剧情-剧情详情.md

parent 8c35ddc3
**测试环境URL**:http://tx-gz14.heyqiwu.cn **测试环境URL**:http://tx-gz14.heyqiwu.cn
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
### 获取剧情分支通过剧情点ID ### 获取跳转剧情
**METHOD**: GET **METHOD**: GET
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#### 请求path字段说明 #### 请求path字段说明
| key | type | required | description | | key | type | required | description |
| ------ | ---- | -------- | ----------- | | ------ | ------ | -------- | ----------- |
| plotId | | yes | 剧情点id | | plotId | number | yes | 剧情点id |
#### 请求param字段说明 #### 请求param字段说明
...@@ -169,7 +169,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/branch/1913297/' \ ...@@ -169,7 +169,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/branch/1913297/' \
} }
``` ```
### 搜索意图组 ### 搜索意图
**METHOD**: GET **METHOD**: GET
...@@ -179,11 +179,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/branch/1913297/' \ ...@@ -179,11 +179,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/branch/1913297/' \
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| -------- | ---- | -------- | ---------------- | | -------- | ------ | -------- | ---------------- |
| sents | | yes | 要搜索的句子列表 | | sents | string | yes | 要搜索的句子列表 |
| pageSize | | yes | 每页的数据条数 | | pageSize | number | yes | 每页的数据条数 |
| pageNum | | yes | 当前的页码 | | pageNum | number | yes | 当前的页码 |
#### 请求body字段说明 #### 请求body字段说明
...@@ -295,7 +295,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/query?sents=%E4% ...@@ -295,7 +295,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/query?sents=%E4%
} }
``` ```
### 剧情点添加意图组 ### 添加意图
**METHOD**: POST **METHOD**: POST
...@@ -311,14 +311,26 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/query?sents=%E4% ...@@ -311,14 +311,26 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/query?sents=%E4%
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| ---------- | ---- | -------- | ---------------- | | ---------- | ------ | -------- | ---------------- |
| projectId | | yes | 项目id | | projectId | string | yes | 项目id |
| plotId | | yes | 剧情点id | | plotId | number | yes | 剧情点id |
| nextPlotId | | yes | 下一步剧情点id | | nextPlotId | string | yes | 下一步剧情点id |
| intentName | | yes | 意图名称 | | intentName | string | yes | 意图名称 |
| sents | | yes | 要搜索的句子列表 | | sents | string | yes | 要搜索的句子列表 |
| phrases | | 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' \ ...@@ -367,12 +379,12 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/intent/to/branch' \
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| ----------- | ---- | -------- | ---------------- | | ----------- | ------ | -------- | ---------------- |
| curPlotId | | yes | 当前剧情点ID | | curPlotId | number | yes | 当前剧情点ID |
| nextPlotId | | yes | 下一步剧情点ID | | nextPlotId | string | yes | 下一步剧情点ID |
| nextPlotNum | | yes | 下一步剧情点编号 | | nextPlotNum | string | yes | 下一步剧情点编号 |
| examples | | yes | 分支例句 | | examples | string | yes | 分支例句 |
#### 请求示例 #### 请求示例
...@@ -463,7 +475,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/branch/recommend' \ ...@@ -463,7 +475,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/branch/recommend' \
``` ```
### 更新词性数据 ### 更新词性定义
**METHOD**: PUT **METHOD**: PUT
...@@ -479,20 +491,20 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/branch/recommend' \ ...@@ -479,20 +491,20 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/branch/recommend' \
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| -------------- | ---- | -------- | -------------------- | | -------------- | ------ | -------- | -------------------- |
| delIds | | no | 删除的词性定义id列表 | | delIds | array | no | 删除的词性定义id列表 |
| projectId | | yes | 项目id | | projectId | number | yes | 项目id |
| wordPropertyVo | | yes | 词性定义 | | wordPropertyVo | array | yes | 词性定义数组 |
wordPropertyVo值说明 wordPropertyVo值说明
| key | type | description | | key | type | description |
| ------------ | ---- | ----------- | | ------------ | ------ | ----------- |
| id | | 主键ID | | id | number | 主键ID |
| keyword | | 关键词 | | keyword | string | 关键词 |
| projectId | | 项目id | | projectId | number | 项目id |
| wordProperty | | 词性 | | wordProperty | string | 词性 |
#### 请求示例 #### 请求示例
...@@ -537,9 +549,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/keyword/property/' \ ...@@ -537,9 +549,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/keyword/property/' \
#### 请求path字段说明 #### 请求path字段说明
| key | type | required | description | | key | type | required | description |
| --------- | ---- | -------- | ----------- | | --------- | ------ | -------- | ----------- |
| projectId | | yes | 项目id | | projectId | number | yes | 项目id |
#### 请求param字段说明 #### 请求param字段说明
...@@ -599,10 +611,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/keyword/property/1093/' \ ...@@ -599,10 +611,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/keyword/property/1093/' \
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| --------- | ---- | -------- | ----------- | | --------- | ------ | -------- | ----------- |
| projectId | | | 项目id | | projectId | number | yes | 项目id |
| plotId | | | 剧情点id | | plotId | number | yes | 剧情点id |
#### 请求body字段说明 #### 请求body字段说明
...@@ -654,76 +666,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/systemCustomWord?projec ...@@ -654,76 +666,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/systemCustomWord?projec
} }
``` ```
### **获得树结点的语义关系** ### **获取语义关系**
**METHOD**: GET **METHOD**: GET
**path**: api/platform/design/plot/systemCustomWord **path**: api/platform/design/condition/categoryTree
**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
**RequestHeaders:** 同创作平台请求header **RequestHeaders:** 同创作平台请求header
...@@ -811,9 +758,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/categoryTree' \ ...@@ -811,9 +758,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/categoryTree' \
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| -------------- | ---- | -------- | ---------------- | | -------------- | ------ | -------- | ---------------- |
| categoryTreeId | | yes | 语义关系分类树ID | | categoryTreeId | number | yes | 语义关系分类树ID |
#### 请求body字段说明 #### 请求body字段说明
...@@ -884,7 +831,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/list?categoryTreeI ...@@ -884,7 +831,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/list?categoryTreeI
} }
``` ```
### 语义搜索推荐 ### 获取搜索推荐话语意图
**METHOD**: POST **METHOD**: POST
...@@ -900,9 +847,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/list?categoryTreeI ...@@ -900,9 +847,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/list?categoryTreeI
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| --------- | ---- | -------- | ----------- | | --------- | ----- | -------- | ----------- |
| sentences | | yes | 句子列表 | | sentences | array | yes | 句子列表 |
#### 请求示例 #### 请求示例
...@@ -987,9 +934,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/search/recommend' ...@@ -987,9 +934,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/search/recommend'
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| --------- | ---- | -------- | ----------- | | --------- | ------ | -------- | ----------- |
| queryText | | yes | 搜索文本 | | queryText | string | yes | 搜索文本 |
#### 请求body字段说明 #### 请求body字段说明
...@@ -1073,9 +1020,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/search?queryText=% ...@@ -1073,9 +1020,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition/search?queryText=%
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| -------------------- | ---- | -------- | ------------ | | -------------------- | ------ | -------- | ------------ |
| semanticRelationName | | yes | 语义关系名称 | | semanticRelationName | string | yes | 语义关系名称 |
#### 请求body字段说明 #### 请求body字段说明
...@@ -1152,13 +1099,13 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition?semanticRelationNa ...@@ -1152,13 +1099,13 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/condition?semanticRelationNa
#### 请求body字段说明 #### 请求body字段说明
| key | type | required | description | | key | type | required | description |
| ----------------- | ---- | -------- | ------------ | | ----------------- | ------- | -------- | ------------ |
| sourcePlotId | | yes | 源剧情点id | | sourcePlotId | number | yes | 源剧情点id |
| conditionNickname | | yes | 话语意图 | | conditionNickname | array | yes | 话语意图 |
| all | | yes | 是否部分复制 | | all | boolean | yes | 是否部分复制 |
| sourceBotAccount | | yes | 源作品账号 | | sourceBotAccount | string | yes | 源作品账号 |
| targetPlotId | | yes | 目标剧情点id | | targetPlotId | number | yes | 目标剧情点id |
#### 请求示例 #### 请求示例
...@@ -1201,11 +1148,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/copy/systemWord' \ ...@@ -1201,11 +1148,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/package/copy/systemWord' \
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| ------ | ---- | -------- | ----------- | | ------ | ------ | -------- | ----------- |
| npcId | | yes | 角色ID | | npcId | number | yes | 角色ID |
| textId | | yes | 文本ID | | textId | number | yes | 文本ID |
| mood | | yes | 情绪 | | mood | string | yes | 情绪 |
#### 请求body字段说明 #### 请求body字段说明
...@@ -1252,7 +1199,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio?npcId=31344& ...@@ -1252,7 +1199,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio?npcId=31344&
} }
``` ```
### 剧情文本背景音乐上传音频地址 ### 上传背景音乐
**METHOD**: POST **METHOD**: POST
...@@ -1268,12 +1215,20 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio?npcId=31344& ...@@ -1268,12 +1215,20 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio?npcId=31344&
#### 请求body字段说明 form data #### 请求body字段说明 form data
| key | type | required | description | | key | type | required | description |
| ---------- | ---- | -------- | ---------------- | | ---------- | ------ | -------- | ------------ |
| file | | yes | 音频文件 | | file | mp3 | yes | 音频文件 |
| sampleRate | | yes | 采样率 | | sampleRate | number | yes | 采样率 |
| bitRate | | yes | 比特率 | | bitRate | string | yes | 比特率 |
| type | | 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' \ ...@@ -1316,9 +1271,9 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/tts/upload/background/audio' \
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| --------- | ---- | -------- | ----------- | | --------- | ------ | -------- | ----------- |
| projectId | | yes | 项目ID | | projectId | number | yes | 项目ID |
#### 请求body字段说明 #### 请求body字段说明
...@@ -1368,7 +1323,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983 ...@@ -1368,7 +1323,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983
} }
``` ```
### 获取节点数据 ### 网状图-获取节点数据
**METHOD**: GET **METHOD**: GET
...@@ -1378,9 +1333,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983 ...@@ -1378,9 +1333,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/category/?projectId=983
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| --------- | ---- | -------- | ----------- | | --------- | ------ | -------- | ----------- |
| projectId | | yes | 项目id | | projectId | number | yes | 项目id |
#### 请求body字段说明 #### 请求body字段说明
...@@ -1507,7 +1462,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/nodeGraph/data?projectId=155 ...@@ -1507,7 +1462,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/nodeGraph/data?projectId=155
} }
``` ```
### 获取剧情点剧情文本 ### 网状图-获取剧情点剧情文本
**METHOD**: GET **METHOD**: GET
...@@ -1517,9 +1472,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/nodeGraph/data?projectId=155 ...@@ -1517,9 +1472,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/nodeGraph/data?projectId=155
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| ------ | ---- | -------- | ----------- | | ------ | ------ | -------- | ----------- |
| plotId | | yes | 剧情点ID | | plotId | number | yes | 剧情点ID |
#### 请求body字段说明 #### 请求body字段说明
...@@ -1561,7 +1516,7 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/nodeGraph/plot/text?plotId=1 ...@@ -1561,7 +1516,7 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/nodeGraph/plot/text?plotId=1
} }
``` ```
### 获取分支条件信息 ### 网状图-获取分支条件信息
**METHOD**: GET **METHOD**: GET
...@@ -1571,9 +1526,9 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/nodeGraph/plot/text?plotId=1 ...@@ -1571,9 +1526,9 @@ curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/nodeGraph/plot/text?plotId=1
#### 请求param字段说明 #### 请求param字段说明
| key | type | required | description | | key | type | required | description |
| -------- | ---- | -------- | ----------- | | -------- | ------ | -------- | ----------- |
| branchId | | yes | 分支ID | | branchId | number | yes | 分支ID |
#### 请求body字段说明 #### 请求body字段说明
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment