Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qwgame
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵国君
qwgame
Commits
3cc3f5aa
Commit
3cc3f5aa
authored
Mar 23, 2019
by
hxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
52d92eb2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
302 additions
and
12 deletions
+302
-12
新平台机器人数据结构.md
新平台机器人数据结构.md
+302
-12
No files found.
新平台机器人数据结构.md
View file @
3cc3f5aa
#### 新平台机器人新建机器人接口
#### 新平台机器人新建接口
#### 新平台机器人新建机器人接口
#### 新平台机器人新建接口
接口名: http://aliyun-hz1.chewrobot.com:
1111/conditionProcess
接口名: http://aliyun-hz1.chewrobot.com:
8081/condition
METHOD: POST
METHOD: POST
...
@@ -16,7 +16,8 @@ URL Parameters:
...
@@ -16,7 +16,8 @@ URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"game_bot_init" | JSON |
| type | string | 默认为"bot_init" | JSON |
| bot_type | string | bot类型 | JSON |
| userName | string | 用户名 | JSON |
| userName | string | 用户名 | JSON |
| botName_yhm | string | bot的名字 | JSON |
| botName_yhm | string | bot的名字 | JSON |
| catName | string | bot类别名 | JSON |
| catName | string | bot类别名 | JSON |
...
@@ -27,13 +28,207 @@ responseBody:
...
@@ -27,13 +28,207 @@ responseBody:
```
```
{
{
"status": 状态码, 成功时为1, 失败为0
"status": 状态码, 成功时为1, 失败为0
"parameters": 如果状态为1,返回Map{"botAccount":"***"}, 如果状态为0,paramters为失败原因String
"parameter": 如果状态为0,paramters为失败原因, 如果状态是1,parameter为{"botId":int, botAccount:""}
}
```
#### 新平台机器人添加condition
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"insert_condition" | JSON |
| conditionData | JSONArray | condition数据 | JSON |
| botName_yhm | string | bot的名字 | JSON |
| catName | string | bot类别名 | JSON |
| botId | string | 默认为"undefined" | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为0,paramters为失败原因
}
```
#### 新平台机器人更新condition
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"update_condition" | JSON |
| conditionId | int | conditionId | JSON |
| conditionData | JSONArray | condition数据 | JSON |
| botName_yhm | string | bot的名字 | JSON |
| catName | string | bot类别名 | JSON |
| botId | string | 默认为"undefined" | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为0,paramters为失败原因
}
```
#### 新平台机器人查询condition
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"query_condition" | JSON |
| queryType | String | 查询类型:all/category | JSON |
| botId | string | 默认为"undefined" | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为0,paramters为失败原因, 如果状态为1,则返回condition列表
}
```
#### 新平台机器人更新初始问题
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"change_active" | JSON |
| activeConditionId | int | 设为初始问题的conditionId | JSON |
| botId | string | 默认为"undefined" | JSON |
| botName_yhm | string | bot的名字 | JSON |
| catName | string | bot类别名 | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为0,paramters为失败原因
}
```
#### 新平台机器人删除condition
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"delete_condition" | JSON |
| conditionId | int | conditionId | JSON |
| botId | int | botId | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为0,paramters为失败原因
}
}
```
#### 新平台机器人更新condition名字
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
#### 新平台机器人删除配置条目接口
URL Parameters:
接口名: http://aliyun-hz1.chewrobot.com:1111/condition
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"update_condition_name" | JSON |
| conditionId | int | conditionId | JSON |
| botId | int | botId | JSON |
| conditionName | string | 新的condition名字 | JSON |
| botName_yhm | string | bot的名字 | JSON |
| catName | string | bot类别名 | JSON |
#### 新平台机器人更新机器人结束语
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
METHOD: POST
...
@@ -49,19 +244,114 @@ URL Parameters:
...
@@ -49,19 +244,114 @@ URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| :----------- | :------: | :------------ | :------- |
| type | string | "delete_config" | JSON |
| type | string | 默认为"update_goodbye" | JSON |
| configId | string | 配置条目id | JSON |
| botId | int | botId | JSON |
| botId | string | bot的id | JSON |
| sayGoodBye | string | 新的结束语 | JSON |
| botName | string | bot的引擎账号,用于修改后台配置文本 | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为0,paramter为失败原因
}
```
#### 新平台机器人更新condition显示顺序
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"update_condition_display_order" | JSON |
| botId | int | botId | JSON |
| conditionId | int | conditionId | JSON |
| order | int | 顺序(默认是999) | JSON |
responseBody:
responseBody:
```
```
{
{
"status": 状态码, 成功时为1, 失败为0
"status": 状态码, 成功时为1, 失败为0
"parameters": 如果状态为0,paramters为失败原因String
"parameter": 如果状态为0,paramter为失败原因
}
}
```
#### 新平台机器人更新bot信息
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"update_bot_info" | JSON |
| botId | int | botId | JSON |
| botName_yhm | string | bot的名字 | JSON |
| catName | string | bot类别名 | JSON |
| option | string | 要更新的字段 | JSON |
| value | string | 要更新的值 | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为0,paramter为失败原因
}
```
#### 查询待激活的配置文件
接口名: http://aliyun-hz1.chewrobot.com:8081/condition
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8|
| Authorization | Bearer YOUR_ACCESS_TOKEN|
URL Parameters:
|参数名 | 数据类型 | 描述| SendWay |
| :----------- | :------: | :------------ | :------- |
| type | string | 默认为"query_sleeping_config" | JSON |
| botId | int | botId | JSON |
responseBody:
```
{
"status": 状态码, 成功时为1, 失败为0
"parameter": 如果状态为1,paramters为[[configId, configName]]
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment