feat(work): 新增微信客服知识库相关接口

This commit is contained in:
Fu Diwei
2022-08-15 21:22:56 +08:00
parent 226a01424c
commit 141888e2c3
29 changed files with 1276 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"group_id": "GROUP_ID"
}

View File

@@ -0,0 +1,5 @@
{
"cursor": "CURSOR",
"limit": 100,
"group_id": "GROUP_ID"
}

View File

@@ -0,0 +1,18 @@
{
"errcode": 0,
"errmsg": "ok",
"next_cursor": "NEXT_CURSOR",
"has_more": 1,
"group_list": [
{
"group_id": "GROUP_ID",
"name": "NAME",
"is_default": 1
},
{
"group_id": "GROUP_ID",
"name": "NAME",
"is_default": 0
}
]
}

View File

@@ -0,0 +1,4 @@
{
"group_id": "GROUP_ID",
"name": "分组名"
}

View File

@@ -0,0 +1,61 @@
{
"group_id": "GROUP_ID",
"question": {
"text": {
"content": "主问题"
}
},
"similar_questions": {
"items": [
{
"text": {
"content": "相似问题1"
}
},
{
"text": {
"content": "相似问题2"
}
}
]
},
"answers": [
{
"text": {
"content": "问题的回复"
},
"attachments": [
{
"msgtype": "image",
"image": {
"media_id": "MEDIA_ID"
}
},
{
"msgtype": "video",
"video": {
"media_id": "MEDIA_ID"
}
},
{
"msgtype": "link",
"link": {
"title": "消息标题",
"pic_url": "https://example.pic.com/path",
"desc": "消息描述",
"url": "https://example.link.com/path"
}
},
{
"msgtype": "miniprogram",
"miniprogram": {
"title": "欢迎报名夏令营",
"thumb_media_id": "THUMB_MEDIA_ID",
"appid": "wx8bd80126147dfAAA",
"pagepath": "/path/index.html"
}
}
]
}
]
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"intent_id": "INTENT_ID"
}

View File

@@ -0,0 +1,6 @@
{
"cursor": "CURSOR",
"limit": 100,
"group_id": "GROUP_ID",
"intent_id": "INTENT_ID"
}

View File

@@ -0,0 +1,69 @@
{
"errcode": 0,
"errmsg": "ok",
"next_cursor": "NEXT_CURSOR",
"has_more": 1,
"intent_list": [
{
"group_id": "GROUP_ID",
"intent_id": "INTENT_ID",
"question": {
"text": {
"content": "主问题"
}
},
"similar_questions": {
"items": [
{
"text": {
"content": "相似问题1"
}
},
{
"text": {
"content": "相似问题2"
}
}
]
},
"answers": [
{
"text": {
"content": "问题的回复"
},
"attachments": [
{
"msgtype": "image",
"image": {
"name": "图片(仅返回名字).jpg"
}
},
{
"msgtype": "video",
"video": {
"name": "视频的文件名"
}
},
{
"msgtype": "link",
"link": {
"title": "消息标题",
"pic_url": "https://example.pic.com/path",
"desc": "消息描述",
"url": "https://example.link.com/path"
}
},
{
"msgtype": "miniprogram",
"miniprogram": {
"title": "欢迎报名夏令营",
"appid": "wx8bd80126147dfAAA",
"pagepath": "/path/index.html"
}
}
]
}
]
}
]
}

View File

@@ -0,0 +1,61 @@
{
"intent_id": "INTENT_ID",
"question": {
"text": {
"content": "主问题"
}
},
"similar_questions": {
"items": [
{
"text": {
"content": "相似问题1"
}
},
{
"text": {
"content": "相似问题2"
}
}
]
},
"answers": [
{
"text": {
"content": "问题的回复"
},
"attachments": [
{
"msgtype": "image",
"image": {
"media_id": "MEDIA_ID"
}
},
{
"msgtype": "video",
"video": {
"media_id": "MEDIA_ID"
}
},
{
"msgtype": "link",
"link": {
"title": "消息标题",
"pic_url": "https://example.pic.com/path",
"desc": "消息描述",
"url": "https://example.link.com/path"
}
},
{
"msgtype": "miniprogram",
"miniprogram": {
"title": "欢迎报名夏令营",
"thumb_media_id": "THUMB_MEDIA_ID",
"appid": "wx8bd80126147dfAAA",
"pagepath": "/path/index.html"
}
}
]
}
]
}