feat(openai): 新增机器人相关接口

This commit is contained in:
Fu Diwei
2021-10-08 14:55:48 +08:00
parent d6d86f6e67
commit f54b655efc
65 changed files with 1930 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
{
"channelId": "sXRdXepMU58WyAV3xgT2F14PzXi4ya"
}

View File

@@ -0,0 +1,18 @@
{
"code": 0,
"data": {
"list": [
{
"source": 1,
"msgType": "text",
"welcomeMsg": "你好",
"msgId": "5248",
"label": "全部",
"newSendInterval": 0
}
],
"total": 1
},
"request_id": "18024ec0-837e-4873-825a-922247d4e57f"
}

View File

@@ -0,0 +1,9 @@
{
"channelId": "sXRdXepMU58WyAV3xgT2F14PzXi4ya",
"msgType": "text",
"newSendInterval": 0,
"source": 1,
"welcomeMsg": "你好",
"lableId": "",
"msgId": "5500"
}

View File

@@ -0,0 +1,4 @@
{
"code": 0,
"request_id": "f9da2eba-98f9-4b51-a68c-5bc7c537e539"
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"task_id": "172ead02b7a14bfd8aac43939c0e2cb3"
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,9 @@
{
"code": 0,
"msg": "success",
"data": {
"progress": 100,
"status": 1
},
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"msg": "请求成功",
"data": {
"task_id": "337cd9d9-210c-4a59-972e-1c8df8c18adb"
},
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,19 @@
{
"code": 0,
"data": {
"default_answer": null,
"default_answer_switch": true,
"id": "3yrw9n5uknsox1pwzyz9ohb2eu4ta4wo",
"name_ch": "测试bot000121",
"name_en": "testBot000121",
"nickname": null,
"similar_question_recommend_num": 5,
"similarity": 0.9,
"similarity_low": 0.7,
"user_feedback": false,
"industry": 2,
"bot_type": 0
},
"msg": "请求成功",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,6 @@
{
"keyword": "测试",
"page": 1,
"size": 10,
"bot_type": -1
}

View File

@@ -0,0 +1,40 @@
{
"code": 0,
"data": {
"count": 4,
"default_bot_count": 3,
"live_bot_count": 1,
"list": [
{
"id": "3yrw9n5uknsox1pwzyz9ohb2eu4ta4wo",
"name_ch": "测试bot000121",
"name_en": "testBot000121",
"auth": 200,
"bot_type": 0
},
{
"id": "sbcvmbvxrdkjg0axix5c9driwfwqbkum",
"name_ch": "测试bot0001211",
"name_en": "testBot0001211",
"auth": 200,
"bot_type": 1
},
{
"id": "td6kko408oo5afll4b7dh3l3ybmtsrgi",
"name_ch": "测试bot000111",
"name_en": "testBot00211",
"auth": 200,
"bot_type": 0
},
{
"id": "81wfgwcjmenfs3kkapwa97hwqfnrbu1z",
"name_ch": "测试bot00013",
"name_en": "testBot00013",
"auth": 200,
"bot_type": 0
}
]
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,19 @@
{
"mode": 0,
"data": [
{
"skill": "吃啥",
"intent": "中午吃什么",
"threshold": "0.9",
"disable": false,
"questions": [
"中午吃什么?",
"中午吃啥?"
],
"answers": [
"面条",
"包子"
]
}
]
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"task_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
},
"msg": "",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,4 @@
{
"file_key": "fe48940d7310e79d6bf0a4aced56d522",
"cover": false
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"msg": "请求成功",
"data": {
"task_id": "337cd9d9-210c-4a59-972e-1c8df8c18adb"
},
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,4 @@
{
"page": 0,
"size": 8
}

View File

@@ -0,0 +1,34 @@
{
"code": 0,
"data": {
"count": 3,
"list": [
{
"created_time": "2020-08-21 18:00:51",
"description": "",
"id": "65",
"open_id": "123456",
"status": 8,
"sync_status": 0
},
{
"created_time": "2020-08-21 19:00:52",
"description": "",
"id": "79",
"open_id": "123456",
"status": 8,
"sync_status": 1
},
{
"created_time": "2020-08-21 20:00:53",
"description": "",
"id": "555",
"open_id": "123456",
"status": 9,
"sync_status": 2
}
]
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"task_id": "b86a904600eb4a2e940beb8af8d5c0d3"
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,13 @@
{
"name_ch": "中文234",
"name_en": "en134",
"nickname": "测试",
"default_answer": "你好",
"default_answer_switch": true,
"similarity": 0.9,
"similarity_low": 0.7,
"similar_question_recommend_num": 5,
"user_feedback": true,
"industry": 2,
"bot_type": 0
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"id": "dzcmrij0zyvexs4llblxepwclfvnq3fv"
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,18 @@
{
"code": 0,
"data": {
"ans_node_id": 9620273,
"ans_node_name": "吃啥",
"answer": "包子",
"answer_type": "text",
"bot_state": {
"err_msg": "",
"last_effective_time": "20210827113707"
},
"create_time": "1630035702",
"status": "GENERAL_FAQ",
"title": "中午吃什么"
},
"msg": "",
"request_id": "32482"
}

View File

@@ -0,0 +1,7 @@
{
"sort": "asc",
"page_no": 1,
"page_size": 10,
"class_id": 12,
"date": "2021-08-23"
}

View File

@@ -0,0 +1,17 @@
{
"code": 0,
"msg": "请求成功",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142",
"data": {
"list": [
{
"query": "你好啊啊啊",
"answer": "哈哈哈哈",
"count": 1
}
],
"page_no": 1,
"page_size": 10,
"total": 1
}
}

View File

@@ -0,0 +1,6 @@
{
"sort": "asc",
"page_no": 1,
"page_size": 10,
"date": "2021-08-23"
}

View File

@@ -0,0 +1,17 @@
{
"code": 0,
"msg": "请求成功",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142",
"data": {
"list": [
{
"id": 1,
"count": 9,
"name": "哈哈哈哈"
}
],
"page_no": 1,
"page_size": 10,
"total": 100
}
}