From 062855b6ab7638c90347f505bb1f9ee225da68fa Mon Sep 17 00:00:00 2001 From: jinfengli Date: Wed, 30 Jun 2021 11:24:11 +0800 Subject: [PATCH] update --- app_doc/work_data_api.md | 43 ++++++++++++++++++++++++++++++------------- dramaeditor/dramaeditor_doc.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 13 deletions(-) create mode 100644 dramaeditor/dramaeditor_doc.md diff --git a/app_doc/work_data_api.md b/app_doc/work_data_api.md index d137489..3c1efbe 100644 --- a/app_doc/work_data_api.md +++ b/app_doc/work_data_api.md @@ -489,20 +489,27 @@ METHOD: GET 1 ``` -##### 通过bot username 列表获取作品信息 +##### 通过botID列表获取作品信息 URL: baseUrl:18082/api/work/byBotAccounts METHOD: POST +ReqeustParams: + +| Parameter | Type | Description | +| :----------- |:------| :------------ | +| userId | String | 用户Id(选填,兼容以前的接口) | + RequestHeaders: | key | value | | :----------- | :------------: | -| App-Channel-Id | 渠道(可为空) | +| App-Channel-Id | 渠道 | +| ApiToken | token | RequestBody: -``` +```json { "botAccounts":[ "6854303973", @@ -518,18 +525,28 @@ ResponseBody: "msg": "成功", "data": [ { - "aipioneerUsername": "6854303973", - "image": "http://didi-gz4.jiaoyou365.com/Editor//upload/img/other/2019/09/19110704225.jpeg", - "workname": "星球问答", - "authorname": "北卡", - "hot": 1448 + "aipioneerUsername": "gz33botxiaowutousujianyibot423905769", + "image": "http://api-pre.heyqiwu.cn/media/gz33botxiaowutousujianyibot423905769/img/YZBSVYZ1621937951350_cover_list_page_1x1.jpeg", + "workname": "投诉建议", + "authorname": "八度妖", + "hot": 89.0, + "tip": "" + }, + { + "aipioneerUsername": "gz38botmigongbeifen255564915", + "image": "http://api-pre.heyqiwu.cn/media/gz38botmigongbeifen255564915/img/XcSYUfc1621659929874_cover_list_page_1x1.jpeg", + "workname": "勇闯知识迷宫", + "authorname": "君心", + "hot": 97.0, + "tip": "" }, { - "aipioneerUsername": "5741775745", - "image": "http://didi-gz4.jiaoyou365.com/Editor//upload/img/other/2019/09/19103050852.jpeg", - "workname": "小神童闯关", - "authorname": "迷津玄师", - "hot": 173 + "aipioneerUsername": "gz38botwolongxiansheng0426234967194", + "image": "http://api-pre.heyqiwu.cn/media/gz38botwolongxiansheng0426234967194/img/bWFTPLR1619490989558_cover_list_page_1x1.jpeg", + "workname": "卧龙先生", + "authorname": "君心", + "hot": 96.0, + "tip": "New" } ] } diff --git a/dramaeditor/dramaeditor_doc.md b/dramaeditor/dramaeditor_doc.md new file mode 100644 index 0000000..1c4de0a --- /dev/null +++ b/dramaeditor/dramaeditor_doc.md @@ -0,0 +1,60 @@ +#### 获取项目列表 +``` +[ + { + "id":123, // 项目ID + "name":"游戏世界", // 项目名称 + "countWord":123123 // 统计文字总数(不可编辑) + } +] +``` + +#### 获取剧情列表 +``` +[{ + "id": 1231, + "num": "1-1", + "texts":[ + { + "npcName":"长老", + "content":"欢迎来到游戏世界" + } + ], + "projectId": 1, + "ownerId": 1 +}] +``` + +#### 获取单个剧情点 +``` +{ + "id": 1231, + "num": "1-1", + "texts":[ + { + "npcName":"长老", + "content":"欢迎来到游戏世界" + } + ], + "branchs":[ + { + "name":"分支1", + "examples":[ + "好的", + "嗯嗯" + ], + "nextPlotNum":"1-2" + }, + { + "name":"分支2", + "examples":[ + "不好", + "no" + ], + "nextPlotNum":"1-3" + } + ], + "projectId": 1, + "ownerId": 1 +} +``` -- libgit2 0.27.1