From efef3948acc79d0fab12a76e5dd49e3772541899 Mon Sep 17 00:00:00 2001 From: jixudong Date: Thu, 14 Dec 2023 16:38:25 +0800 Subject: [PATCH] Replace 项目列表-剧情-剧情列表.md --- gameditor/前端接口/项目列表-剧情-剧情列表.md | 185 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------- 1 file changed, 92 insertions(+), 93 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\345\210\227\350\241\250.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\345\210\227\350\241\250.md" index d205c2e..239e9ba 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\345\210\227\350\241\250.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\345\210\227\350\241\250.md" @@ -14,9 +14,9 @@ #### 请求path字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目id | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目id | #### 请求param字段说明 @@ -216,9 +216,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/work/base/data/963' \ #### 请求param字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目id | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目id | #### 请求body字段说明 @@ -278,7 +278,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/all?projectId=963' \ } ``` -### 通过分类id查询所有剧情文本 +### 获取剧情列表 **METHOD**: GET @@ -288,9 +288,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/all?projectId=963' \ #### 请求param字段说明 -| key | type | required | description | -| ---------- | ---- | -------- | ----------- | -| categoryId | | yes | 分类id | +| key | type | required | description | +| ---------- | ------ | -------- | ----------- | +| categoryId | number | yes | 分类id | #### 请求body字段说明 @@ -388,29 +388,29 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/?categoryId=45964' #### 请求body字段说明 -| key | type | required | description | -| ------------------- | ---- | -------- | ---------------- | -| plotNum | | yes | 剧情编号 | -| plotPlaceId | | yes | 地点id | -| plotPlaceName | | yes | 对话地点 | -| plotPlaceCategoryId | | no | 地点分类id | -| categoryId | | yes | 分类id | -| plotTextVos | | yes | 剧情文本对象数组 | -| note | | no | 剧情备注 | -| bgmUrl | | no | 背景图片 | -| imgUrl | | no | 背景音乐 | +| key | type | required | description | +| ------------------- | ------ | -------- | ---------------- | +| plotNum | string | yes | 剧情编号 | +| plotPlaceId | number | yes | 地点id | +| plotPlaceName | string | yes | 对话地点 | +| plotPlaceCategoryId | number | no | 地点分类id | +| categoryId | number | yes | 分类id | +| plotTextVos | array | yes | 剧情文本对象数组 | +| note | string | no | 剧情备注 | +| bgmUrl | string | no | 背景图片 | +| imgUrl | string | no | 背景音乐 | plotTextVos值说明 -| key | type | description | -| ------- | ---- | -------------- | -| npcId | | 角色ID | -| npcName | | 对话角色 | -| mood | | 对话地点 | -| content | | 对话文本 | -| id | | 主键ID | -| plotId | | 剧情点ID | -| offline | | 是否是离线声音 | +| key | type | description | +| ------- | ------- | -------------- | +| npcId | number | 角色ID | +| npcName | string | 对话角色 | +| mood | string | 角色情绪 | +| content | string | 对话文本 | +| id | number | 主键ID | +| plotId | number | 剧情点ID | +| offline | boolean | 是否是离线声音 | #### 请求示例 @@ -453,9 +453,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/' \ #### 请求path字段说明 -| key | type | required | description | -| ---- | ---- | -------- | ---------------- | -| id | | yes | 自定义剧情文本ID | +| key | type | required | description | +| ---- | ------ | -------- | ---------------- | +| id | number | yes | 自定义剧情文本ID | #### 请求param字段说明 @@ -465,29 +465,29 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/' \ #### 请求body字段说明 -| key | type | required | description | -| ------------------- | ---- | -------- | ---------------- | -| plotNum | | yes | 剧情编号 | -| plotPlaceId | | yes | 地点id | -| plotPlaceName | | yes | 对话地点 | -| plotPlaceCategoryId | | no | 地点分类id | -| categoryId | | yes | 分类id | -| plotTextVos | 数组 | yes | 剧情文本对象数组 | -| note | | no | 剧情备注 | -| bgmUrl | | no | 背景图片 | -| imgUrl | | no | 背景音乐 | +| key | type | required | description | +| ------------------- | ------ | -------- | ---------------- | +| plotNum | string | yes | 剧情编号 | +| plotPlaceId | number | yes | 地点id | +| plotPlaceName | string | yes | 对话地点 | +| plotPlaceCategoryId | number | no | 地点分类id | +| categoryId | number | yes | 分类id | +| plotTextVos | array | yes | 剧情文本对象数组 | +| note | string | no | 剧情备注 | +| bgmUrl | string | no | 背景图片 | +| imgUrl | string | no | 背景音乐 | plotTextVos值说明 -| key | type | description | -| ------- | ---- | -------------- | -| npcId | | 角色ID | -| npcName | | 对话角色 | -| mood | | 对话地点 | -| content | | 对话文本 | -| id | | 主键ID | -| plotId | | 剧情点ID | -| offline | | 是否是离线声音 | +| key | type | description | +| ------- | ------- | -------------- | +| npcId | number | 角色ID | +| npcName | string | 对话角色 | +| mood | string | 角色情绪 | +| content | string | 对话文本 | +| id | number | 主键ID | +| plotId | number | 剧情点ID | +| offline | boolean | 是否是离线声音 | #### 请求示例 @@ -531,9 +531,9 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/1/' \ #### 请求path字段说明 -| key | type | required | description | -| ---- | ---- | -------- | ---------------- | -| id | | yes | 自定义剧情文本ID | +| key | type | required | description | +| ---- | ------ | -------- | ---------------- | +| id | number | yes | 自定义剧情文本ID | #### 请求param字段说明 @@ -550,21 +550,20 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/1/' \ #### 请求示例 ```js -curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/1/' \ - -X 'PUT' \ +curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/2178470/' \ + -X 'DELETE' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ - -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBNE1UUTJNVFVzSW1WNGNDSTZNVGN3TURneU1UZ3hOU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLmVMT2dXOUZTUGtkRFhMSWlfZ2YyeFBDcnJpMFJER29QOEhmYi1aWXVmU1U6czAwcGVyczNjcmV0' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJMU16a3lORFlzSW1WNGNDSTZNVGN3TWpVME5qUTBOaXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLmpsLWliT3VxWDc4WVpIY2MwTllIaVhmWWdFajdhOFlHR2dyZ0Y2UG0wSEE6czAwcGVyczNjcmV0' \ -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: 6080626246' \ - -H 'groupId: 76' \ + -H 'Cookie: username=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; nickname=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDI1MzkyNDYsImV4cCI6MTcwMjU0NjQ0NiwiYXV0aG9yaXR5IjoxLCJpZCI6MjI0fQ.jl-ibOuqX78YZHcc0NYHiXfYgEj7a8YGGgrgF6Pm0HA' \ + -H 'Origin: http://tx-gz14.heyqiwu.cn' \ + -H 'Referer: http://tx-gz14.heyqiwu.cn/Editor/' \ + -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \ + -H 'botAccount: txgz14botwww853177949' \ + -H 'groupId: 713' \ -H 'mul: true' \ - -H 'projectId: 1' \ - --data-raw '{"plotId":2162112,"plotNum":"0-19","plotPlaceId":44444,"plotPlaceName":"任意地点","categoryId":45964,"plotTextVos":[{"id":11157390,"content":"►打开:当前作品:开始◄","npcId":145382,"npcName":"家丁","mood":"正常","plotId":2162112,"offline":true},{"id":11157391,"content":"2222222222222","npcId":145385,"npcName":"大叔","mood":"正常","plotId":2162112,"offline":false},{"id":11157392,"content":"22","npcId":145388,"npcName":"县太爷","mood":"正常","plotId":2162112,"offline":false},{"id":11157393,"content":"111","npcId":145388,"npcName":"县太爷","mood":"正常","plotId":2162112,"offline":false},{"id":11157394,"content":"wdwdwd","npcId":145382,"npcName":"家丁","mood":"正常","plotId":2162112,"offline":true}],"note":"w","bgmUrl":"","imgUrl":"http://tx-gz14.heyqiwu.cn/media/6080626246/img/plot/NFVRkoe1700818475596.jpeg"}' \ + -H 'projectId: 6381' \ --compressed \ --insecure ``` @@ -589,10 +588,10 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/1/' \ #### 请求param字段说明 -| key | type | required | description | -| ---------- | ---- | -------- | --------------------------- | -| categoryId | | yes | 分类id | -| searchText | | no | 搜索文本 编号/角色名称/文本 | +| key | type | required | description | +| ---------- | ------ | -------- | --------------------------- | +| categoryId | number | yes | 分类id | +| searchText | string | no | 搜索文本 编号/角色名称/文本 | #### 请求body字段说明 @@ -676,7 +675,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/search/?categoryId=4596 } ``` -### 设置开始剧情编号 +### 设置开始剧情 **METHOD**: POST @@ -686,16 +685,16 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/search/?categoryId=4596 #### 请求path字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目ID | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目ID | #### 请求param字段说明 -| key | type | required | description | -| ----------- | ---- | -------- | ------------ | -| startNum | | yes | 开始剧情编号 | -| startPlotId | | no | 开始剧情点id | +| key | type | required | description | +| ----------- | ------ | -------- | ------------ | +| startNum | string | yes | 开始剧情编号 | +| startPlotId | number | no | 开始剧情点id | #### 请求body字段说明 @@ -737,7 +736,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/project/1/start_num?startNum } ``` -### 获取开始剧情编号 +### 获取开始剧情 **METHOD**: GET @@ -747,16 +746,16 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/project/1/start_num?startNum #### 请求path字段说明 -| key | type | required | description | -| --------- | ---- | -------- | ----------- | -| projectId | | yes | 项目id | +| key | type | required | description | +| --------- | ------ | -------- | ----------- | +| projectId | number | yes | 项目id | #### 请求param字段说明 -| key | type | required | description | -| ---------- | ---- | -------- | --------------------------- | -| categoryId | | yes | 分类id | -| searchText | | no | 搜索文本 编号/角色名称/文本 | +| key | type | required | description | +| ---------- | ------ | -------- | --------------------------- | +| categoryId | number | yes | 分类id | +| searchText | string | no | 搜索文本 编号/角色名称/文本 | #### 请求body字段说明 @@ -796,7 +795,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/project/1/start_num' \ } ``` -### 预览剧情 +### 预览跳转 **METHOD**: POST @@ -806,11 +805,11 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/project/1/start_num' \ #### 请求param字段说明 -| key | type | required | description | -| ---------- | ---- | -------- | --------------------------------------- | -| categoryId | | yes | 分类id | -| searchText | | no | 搜索文本 编号/角色/文本/话语意图/关键词 | -| projectId | | yes | 项目id | +| key | type | required | description | +| ---------- | ------ | -------- | --------------------------------------- | +| categoryId | number | yes | 剧情分组ID | +| searchText | string | no | 搜索文本 编号/角色/文本/话语意图/关键词 | +| projectId | number | yes | 项目id | #### 请求body字段说明 -- libgit2 0.27.1