askbot-dragon 0.6.17 → 0.6.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -27
- package/babel.config.js +5 -5
- package/dragon.iml +7 -7
- package/package.json +54 -52
- package/public/index.html +27 -26
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/less/common.css +6760 -6760
- package/src/assets/less/converSationContainer/common.less +4751 -4751
- package/src/assets/less/converSationContainer/converSatonContainer.less +492 -492
- package/src/assets/less/ticketMessage.less +319 -319
- package/src/components/ActionAlertIframe.vue +117 -117
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +1388 -1388
- package/src/components/FileType.vue +88 -88
- package/src/components/Message.vue +27 -27
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/chatContent.vue +512 -512
- package/src/components/feedBack.vue +133 -133
- package/src/components/file/AliyunOssComponents.vue +109 -109
- package/src/components/formTemplate.vue +1898 -2039
- package/src/components/message/ActionAlertIframe.vue +116 -116
- package/src/components/message/ShopMessage.vue +168 -168
- package/src/components/message/TextMessage.vue +895 -895
- package/src/components/message/TicketMessage.vue +173 -173
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +530 -530
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/utils/AliyunIssUtil.js +72 -72
- package/src/components/utils/ckeditor.js +124 -0
- package/src/components/utils/format_date.js +18 -18
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +15 -15
- package/src/main.js +44 -43
- package/vue.config.js +34 -28
package/src/api/requestUrl.js
CHANGED
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
const requestUrl = {
|
|
2
|
-
auth: { // 用户
|
|
3
|
-
login: '/api/auth/sign-in', // 登录 POST
|
|
4
|
-
logout: '/api/auth/sign-out', // 登出 POST
|
|
5
|
-
register: '/api/auth/sign-up', // 注册 POST
|
|
6
|
-
logged:'/api/sso/auth/logged', //检查是否登录当前系统 若没有 http状态码为 403
|
|
7
|
-
ssoLogin:'/api/sso/auth', // SSO 登录GET/POST
|
|
8
|
-
ssoLogout: '/api/sso/auth/sign-out', // SSO 登出接口
|
|
9
|
-
},
|
|
10
|
-
bot: { // 用户
|
|
11
|
-
createBot: '/api/bot', // 创建机器人 POST
|
|
12
|
-
getBotInfo: '/api/bot', // 获取机器人详情 GET
|
|
13
|
-
getBotList: '/api/bot/list', // 获取机器人列表 GET
|
|
14
|
-
deleteBot: '/api/bot', // 删除机器人 DELETE
|
|
15
|
-
updateBot: '/api/bot', // 更新机器人 PUT
|
|
16
|
-
createRefBot: '/api/bot/template/create', //根据模板创建机器人 POST
|
|
17
|
-
getBotadvancedSetting: '/api/bot/advanced-settings', // 获取机器人高级设置 GET
|
|
18
|
-
},
|
|
19
|
-
skill: { // 知识库
|
|
20
|
-
getSkillList: '/api/skill', // 机器人知识库列表 GET
|
|
21
|
-
createSkill: '/api/skill', // 创建知识库 POST
|
|
22
|
-
},
|
|
23
|
-
intentQuestion: { // 意图问法
|
|
24
|
-
addIntentQ: '/api/intent-question', // 添加单个问法 POST
|
|
25
|
-
deleteIntentQ: '/api/intent-question', // 删除问法 DELETE
|
|
26
|
-
batchuploadIntentQ: '/api/intent-question/batch', // 批量导入问题 POST
|
|
27
|
-
batchuploadIntentQProcess: '/api/intent-question/batch/progress', // 请求文件上传进度
|
|
28
|
-
getIntentQList: '/api/intent-question/list', // 问法列表 GET
|
|
29
|
-
downloadIntentQTemp: '/api/intent-question/template', // 下载问题导入模板
|
|
30
|
-
changeQuestionIntent: '/api/intent-question/change-question-intent', // 更改问题所属意图 POST
|
|
31
|
-
},
|
|
32
|
-
intentKeywordRule: { // 意图规则关键词
|
|
33
|
-
addIntentKR: '/api/intent-keyword-rule', // 新增意图规则 POST
|
|
34
|
-
getIntentKRList: '/api/intent-keyword-rule/list', // 获取意图规则列表 GET
|
|
35
|
-
updateIntentKR: '/api/intent-keyword-rule', // 更新意图规则列表 PUT
|
|
36
|
-
deleteIntentKR: '/api/intent-keyword-rule', // 删除意图规则 DELETE
|
|
37
|
-
},
|
|
38
|
-
intent: { // 意图相关
|
|
39
|
-
// 意图分类
|
|
40
|
-
getIntentTypeList: '/api/intent/types', // 获取意图分类列表 GET
|
|
41
|
-
addIntentType: '/api/intent/types', // 新增or更新意图分类 POST
|
|
42
|
-
updateIntentType: '/api/intent/type', // 更新意图分类 PUT
|
|
43
|
-
deleteIntentType: '/api/intent/type', // 删除意图分类 DELETE
|
|
44
|
-
// 单个意图操作
|
|
45
|
-
getIntentList: '/api/intent/list', // 获取意图列表 GET
|
|
46
|
-
getIntentTree: '/api/intent/tree', // 获取意图树状结构 GET
|
|
47
|
-
addIntent: '/api/intent', // 新增意图 POST
|
|
48
|
-
updateIntent: '/api/intent', // 更新意图 PUT
|
|
49
|
-
deleteIntent: '/api/intent', // 删除意图 DELETE
|
|
50
|
-
},
|
|
51
|
-
intentAnswer: { // 意图答案
|
|
52
|
-
addIntentAnswer: '/api/intent-answer', // 新增答案 POST
|
|
53
|
-
updateIntentAnswer: '/api/intent-answer', // 更新答案 PUT
|
|
54
|
-
deleteIntentAnswer: '/api/intent-answer', // 删除答案 DELETE
|
|
55
|
-
},
|
|
56
|
-
entity: { // 实体
|
|
57
|
-
getEntityList: '/api/v1/entity', // 获取实体列表 GET
|
|
58
|
-
addEntity: '/api/v1/entity', // 添加实体 POST
|
|
59
|
-
updateEntity: '/api/v1/entity', // 更新实体 PUT
|
|
60
|
-
deleteEntity: '/api/v1/entity', // 删除实体 DELETE
|
|
61
|
-
getEntitySkills: '/api/v1/entity/skills', // 获取技能列表及所属的实体数量 GET
|
|
62
|
-
getAllEntityBySkill: '/api/v1/entity/all', // 获取指定知识库下所有实体 GET
|
|
63
|
-
getEntityTree: '/api/v1/entity/tree', //获取实体结构树
|
|
64
|
-
},
|
|
65
|
-
dialog: {
|
|
66
|
-
test: '/api/v1/dialog/test', // 测试窗问题
|
|
67
|
-
test_v2: '/api/v2/dialog/test', // 测试窗问题
|
|
68
|
-
},
|
|
69
|
-
trainList: {
|
|
70
|
-
intentTree: '/api/intent/tree', // 意图树 GET
|
|
71
|
-
search: '/api/intent/tag/search', // 查询待标注问题 GET
|
|
72
|
-
skill: '/api/skill', // 机器人知识库列表 GET
|
|
73
|
-
intentList: '/api/intent/list', // 关键字分类查询意图GET
|
|
74
|
-
intentTypes: '/api/intent/types', // 查询分类 GET
|
|
75
|
-
mark: '/api/intent/tag/mark', // 标注意图POST
|
|
76
|
-
markBatch: '/api/intent/tag/mark-batch', // 批量标注意图POST
|
|
77
|
-
trainList: '/api/record/train/search', // 训练记录 GET
|
|
78
|
-
trainDetails: '/api/record/train/get', // 训练记录详情GET
|
|
79
|
-
trainTag: '/api/intent/tag/train', // 训练机器人 POST
|
|
80
|
-
removeTag: '/api/record/train/remove', // 移除标注记录 POST
|
|
81
|
-
trainStatus: '/api/record/train/get-latest/', // 机器人训练状态 GET
|
|
82
|
-
noteCount: '/api/intent/tag/count/', // 获取标注数量 GET
|
|
83
|
-
skillIntent: '/api/intent/list/skill-intent', // 搜索意图 GET
|
|
84
|
-
},
|
|
85
|
-
chatFlowComponent: { // 对话流程组件
|
|
86
|
-
getComponentsTypes: '/api/v1/dialog/design/component', // 获取流程组件类型列表 GET
|
|
87
|
-
getConditionList: '/api/v1/dialog/design/component/condition', // 获取条件列表 GET
|
|
88
|
-
getContitionScopeList: '/api/v1/dialog/design/component/condition/scope', // 获取条件作用于列表 GET
|
|
89
|
-
},
|
|
90
|
-
chatFlowNode: { // 对话流程组件
|
|
91
|
-
getIntentChatFlow: '/api/v1/dialog/process', // 获取指定意图流程 GET
|
|
92
|
-
getStertChatFlow: '/api/v1/dialog/process/start_node', // 获取开始节点流程 GET
|
|
93
|
-
getEndChatFlow: '/api/v1/dialog/process/end_node', // 获取结束节点流程 GET
|
|
94
|
-
addNode: '/api/v1/dialog/process/node', // 添加节点 POST
|
|
95
|
-
deleteNode: '/api/v1/dialog/process/node', // 删除节点 DELETE
|
|
96
|
-
updateNode: '/api/v1/dialog/process/node/action', // 更新节点 PUT
|
|
97
|
-
updateNodeName: '/api/v1/dialog/process/node/name', // 更新节点名称 PUT
|
|
98
|
-
ipdateStartNodeNew: '/api/bot/start_node', // 更新保存开始节点
|
|
99
|
-
ipdateEndNodeNew: '/api/bot/end_node', // 更新保存开始节点
|
|
100
|
-
moveNode: '/api/v1/dialog/process/node/move', // 移动节点
|
|
101
|
-
},
|
|
102
|
-
eWechatBind :{//企业微信接入组件
|
|
103
|
-
getAuthUrl: '/api/bind/ewechat/get/auth-url',//获取授权URL
|
|
104
|
-
getAuthDomain: '/api/bind/ewechat/get/domain',//获取授权域
|
|
105
|
-
getBindList: '/api/bind/ewechat/list',//绑定应用列表
|
|
106
|
-
postUnbind: '/api/bind/ewechat/unbind',//解绑应用
|
|
107
|
-
//'/api/bind/ewechat/detail/{bindId}'/api//查看绑定详细信息
|
|
108
|
-
},
|
|
109
|
-
wechatBind :{//企业微信接入组件
|
|
110
|
-
getAuthUrl: '/api/bind/wechat/get/auth-url',//获取授权URL GET
|
|
111
|
-
getBindList: '/api/bind/wechat/list',//绑定应用列表GET
|
|
112
|
-
unbind: '/api/bind/wechat/unbind',//解绑应用POST
|
|
113
|
-
detail: '/api/bind/wechat/detail/{bindId}', //查看绑定详细信息 GET
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
miniProgramBind: { // 小程序接入
|
|
117
|
-
wxMiniCode: '/api/wx/mini/acode', // 获取小程序码
|
|
118
|
-
},
|
|
119
|
-
websiteBind: { // 网站接入
|
|
120
|
-
getBindWebsiteList: '/api/bot/web/access/list', // 获取绑定网站列表GET
|
|
121
|
-
addWebsiteBind: '/api/bot/web/access', //新增网站接入信息POST
|
|
122
|
-
deleteWebsiteBind: '/api/bot/web/access', //删除网站接入信息DELETE
|
|
123
|
-
},
|
|
124
|
-
messageController :{//聊天记录组件
|
|
125
|
-
getChatbotMessageList: '/api/message/dialog/',//获取机器人聊天列表GET
|
|
126
|
-
getUserDialog: '/api/message/history/',//获取聊天记录GET
|
|
127
|
-
getUserInformation: '/api/message/userInfo/',//获取用户信息GET
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
superIntent :{//超级意图模板
|
|
131
|
-
updateSuperIntentSwitch: '/api/template/intent/enable',//开启关闭超级意图模板功能PUT
|
|
132
|
-
getIntentMatchTemplate: '/api/template/intent/get/',//获取意图对应的模板GET
|
|
133
|
-
updateIntentMatchTemplate: '/api/template/intent/save',//保存意图对应的模板POST
|
|
134
|
-
getSuperIntentList: '/api/template/list',//获取超级意图列表GET
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
statistics :{//统计分析
|
|
138
|
-
getStatisticsData: '/api/statistics/data',//获取统计数据GET
|
|
139
|
-
getChannelList: '/api/statistics/source',//获取接入渠道GET
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
accountManage :{//成员管理
|
|
143
|
-
getAccountList: '/api/member/list',//获取成员列表GET
|
|
144
|
-
account: '/api/member',//成员管理
|
|
145
|
-
deleteAccount: '', // 删除账号
|
|
146
|
-
updateAccount: '/api/member', // 更新账号
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
role :{//角色管理
|
|
150
|
-
getRoleList: '/api/role',//获取角色列表GET
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
accountGroup :{//用户分组管理
|
|
154
|
-
getAccountGroupList: '/api/user/group',//获取用户分组列表GET
|
|
155
|
-
addAccountGroup: '/api/user/group',//新增用户组POST
|
|
156
|
-
updateAccountGroup: '/api/user/group',//更新用户分组PUT
|
|
157
|
-
deleteAccountGroup: '/api/user/group',//删除用户分组DELETE
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
relatedQuestion :{//关联问法推荐
|
|
161
|
-
getRelatedQuestionList: '/api/rq/list',//获取用户分组列表GET
|
|
162
|
-
addOneRelatedQuestion: '/api/rq/add',//添加一个关联问法POST
|
|
163
|
-
addAllRelatedQuestion: '/api/rq/add-all',//添加全部关联问法POST
|
|
164
|
-
ignoreOneRelatedQuestion: '/api/rq/ignore',//忽略一个关联问法POST
|
|
165
|
-
ignoreAllRelatedQuestion: '/api/rq/ignore-all',//忽略全部关联问法POST
|
|
166
|
-
|
|
167
|
-
},
|
|
168
|
-
webhook :{
|
|
169
|
-
getWebhookDir : '/api/webhook/dir/list', //获取Webhook目录列表GET
|
|
170
|
-
addDir : '/api/webhook/dir' ,//新增目录POST
|
|
171
|
-
deleteDir: '/api/webhook/dir', //删除目录DELETE
|
|
172
|
-
deleteWebhook: '/api/webhook', //删除Webhook DELETE
|
|
173
|
-
webhookDetail: '/api/webhook/', //查询api详情 GET
|
|
174
|
-
webhookAdd: '/api/webhook', //新增修改webhook POST
|
|
175
|
-
webhookSend: '/api/webhook/send', //发送webhook请求 POST
|
|
176
|
-
webhookCopy: '/api/webhook/copy', //拷贝webhook POST
|
|
177
|
-
webhookRelease: '/api/webhook', //发布webhook PUT
|
|
178
|
-
uploadFile: '/api/oss', //上传文件 POST
|
|
179
|
-
webhookNameCheck: '/api/webhook/check/name', //webhook名称重复校验 GET
|
|
180
|
-
webhookbaseList: 'api/webhook/base-list', // webhook列表(组件配置使用)
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export { requestUrl };
|
|
1
|
+
const requestUrl = {
|
|
2
|
+
auth: { // 用户
|
|
3
|
+
login: '/api/auth/sign-in', // 登录 POST
|
|
4
|
+
logout: '/api/auth/sign-out', // 登出 POST
|
|
5
|
+
register: '/api/auth/sign-up', // 注册 POST
|
|
6
|
+
logged:'/api/sso/auth/logged', //检查是否登录当前系统 若没有 http状态码为 403
|
|
7
|
+
ssoLogin:'/api/sso/auth', // SSO 登录GET/POST
|
|
8
|
+
ssoLogout: '/api/sso/auth/sign-out', // SSO 登出接口
|
|
9
|
+
},
|
|
10
|
+
bot: { // 用户
|
|
11
|
+
createBot: '/api/bot', // 创建机器人 POST
|
|
12
|
+
getBotInfo: '/api/bot', // 获取机器人详情 GET
|
|
13
|
+
getBotList: '/api/bot/list', // 获取机器人列表 GET
|
|
14
|
+
deleteBot: '/api/bot', // 删除机器人 DELETE
|
|
15
|
+
updateBot: '/api/bot', // 更新机器人 PUT
|
|
16
|
+
createRefBot: '/api/bot/template/create', //根据模板创建机器人 POST
|
|
17
|
+
getBotadvancedSetting: '/api/bot/advanced-settings', // 获取机器人高级设置 GET
|
|
18
|
+
},
|
|
19
|
+
skill: { // 知识库
|
|
20
|
+
getSkillList: '/api/skill', // 机器人知识库列表 GET
|
|
21
|
+
createSkill: '/api/skill', // 创建知识库 POST
|
|
22
|
+
},
|
|
23
|
+
intentQuestion: { // 意图问法
|
|
24
|
+
addIntentQ: '/api/intent-question', // 添加单个问法 POST
|
|
25
|
+
deleteIntentQ: '/api/intent-question', // 删除问法 DELETE
|
|
26
|
+
batchuploadIntentQ: '/api/intent-question/batch', // 批量导入问题 POST
|
|
27
|
+
batchuploadIntentQProcess: '/api/intent-question/batch/progress', // 请求文件上传进度
|
|
28
|
+
getIntentQList: '/api/intent-question/list', // 问法列表 GET
|
|
29
|
+
downloadIntentQTemp: '/api/intent-question/template', // 下载问题导入模板
|
|
30
|
+
changeQuestionIntent: '/api/intent-question/change-question-intent', // 更改问题所属意图 POST
|
|
31
|
+
},
|
|
32
|
+
intentKeywordRule: { // 意图规则关键词
|
|
33
|
+
addIntentKR: '/api/intent-keyword-rule', // 新增意图规则 POST
|
|
34
|
+
getIntentKRList: '/api/intent-keyword-rule/list', // 获取意图规则列表 GET
|
|
35
|
+
updateIntentKR: '/api/intent-keyword-rule', // 更新意图规则列表 PUT
|
|
36
|
+
deleteIntentKR: '/api/intent-keyword-rule', // 删除意图规则 DELETE
|
|
37
|
+
},
|
|
38
|
+
intent: { // 意图相关
|
|
39
|
+
// 意图分类
|
|
40
|
+
getIntentTypeList: '/api/intent/types', // 获取意图分类列表 GET
|
|
41
|
+
addIntentType: '/api/intent/types', // 新增or更新意图分类 POST
|
|
42
|
+
updateIntentType: '/api/intent/type', // 更新意图分类 PUT
|
|
43
|
+
deleteIntentType: '/api/intent/type', // 删除意图分类 DELETE
|
|
44
|
+
// 单个意图操作
|
|
45
|
+
getIntentList: '/api/intent/list', // 获取意图列表 GET
|
|
46
|
+
getIntentTree: '/api/intent/tree', // 获取意图树状结构 GET
|
|
47
|
+
addIntent: '/api/intent', // 新增意图 POST
|
|
48
|
+
updateIntent: '/api/intent', // 更新意图 PUT
|
|
49
|
+
deleteIntent: '/api/intent', // 删除意图 DELETE
|
|
50
|
+
},
|
|
51
|
+
intentAnswer: { // 意图答案
|
|
52
|
+
addIntentAnswer: '/api/intent-answer', // 新增答案 POST
|
|
53
|
+
updateIntentAnswer: '/api/intent-answer', // 更新答案 PUT
|
|
54
|
+
deleteIntentAnswer: '/api/intent-answer', // 删除答案 DELETE
|
|
55
|
+
},
|
|
56
|
+
entity: { // 实体
|
|
57
|
+
getEntityList: '/api/v1/entity', // 获取实体列表 GET
|
|
58
|
+
addEntity: '/api/v1/entity', // 添加实体 POST
|
|
59
|
+
updateEntity: '/api/v1/entity', // 更新实体 PUT
|
|
60
|
+
deleteEntity: '/api/v1/entity', // 删除实体 DELETE
|
|
61
|
+
getEntitySkills: '/api/v1/entity/skills', // 获取技能列表及所属的实体数量 GET
|
|
62
|
+
getAllEntityBySkill: '/api/v1/entity/all', // 获取指定知识库下所有实体 GET
|
|
63
|
+
getEntityTree: '/api/v1/entity/tree', //获取实体结构树
|
|
64
|
+
},
|
|
65
|
+
dialog: {
|
|
66
|
+
test: '/api/v1/dialog/test', // 测试窗问题
|
|
67
|
+
test_v2: '/api/v2/dialog/test', // 测试窗问题
|
|
68
|
+
},
|
|
69
|
+
trainList: {
|
|
70
|
+
intentTree: '/api/intent/tree', // 意图树 GET
|
|
71
|
+
search: '/api/intent/tag/search', // 查询待标注问题 GET
|
|
72
|
+
skill: '/api/skill', // 机器人知识库列表 GET
|
|
73
|
+
intentList: '/api/intent/list', // 关键字分类查询意图GET
|
|
74
|
+
intentTypes: '/api/intent/types', // 查询分类 GET
|
|
75
|
+
mark: '/api/intent/tag/mark', // 标注意图POST
|
|
76
|
+
markBatch: '/api/intent/tag/mark-batch', // 批量标注意图POST
|
|
77
|
+
trainList: '/api/record/train/search', // 训练记录 GET
|
|
78
|
+
trainDetails: '/api/record/train/get', // 训练记录详情GET
|
|
79
|
+
trainTag: '/api/intent/tag/train', // 训练机器人 POST
|
|
80
|
+
removeTag: '/api/record/train/remove', // 移除标注记录 POST
|
|
81
|
+
trainStatus: '/api/record/train/get-latest/', // 机器人训练状态 GET
|
|
82
|
+
noteCount: '/api/intent/tag/count/', // 获取标注数量 GET
|
|
83
|
+
skillIntent: '/api/intent/list/skill-intent', // 搜索意图 GET
|
|
84
|
+
},
|
|
85
|
+
chatFlowComponent: { // 对话流程组件
|
|
86
|
+
getComponentsTypes: '/api/v1/dialog/design/component', // 获取流程组件类型列表 GET
|
|
87
|
+
getConditionList: '/api/v1/dialog/design/component/condition', // 获取条件列表 GET
|
|
88
|
+
getContitionScopeList: '/api/v1/dialog/design/component/condition/scope', // 获取条件作用于列表 GET
|
|
89
|
+
},
|
|
90
|
+
chatFlowNode: { // 对话流程组件
|
|
91
|
+
getIntentChatFlow: '/api/v1/dialog/process', // 获取指定意图流程 GET
|
|
92
|
+
getStertChatFlow: '/api/v1/dialog/process/start_node', // 获取开始节点流程 GET
|
|
93
|
+
getEndChatFlow: '/api/v1/dialog/process/end_node', // 获取结束节点流程 GET
|
|
94
|
+
addNode: '/api/v1/dialog/process/node', // 添加节点 POST
|
|
95
|
+
deleteNode: '/api/v1/dialog/process/node', // 删除节点 DELETE
|
|
96
|
+
updateNode: '/api/v1/dialog/process/node/action', // 更新节点 PUT
|
|
97
|
+
updateNodeName: '/api/v1/dialog/process/node/name', // 更新节点名称 PUT
|
|
98
|
+
ipdateStartNodeNew: '/api/bot/start_node', // 更新保存开始节点
|
|
99
|
+
ipdateEndNodeNew: '/api/bot/end_node', // 更新保存开始节点
|
|
100
|
+
moveNode: '/api/v1/dialog/process/node/move', // 移动节点
|
|
101
|
+
},
|
|
102
|
+
eWechatBind :{//企业微信接入组件
|
|
103
|
+
getAuthUrl: '/api/bind/ewechat/get/auth-url',//获取授权URL
|
|
104
|
+
getAuthDomain: '/api/bind/ewechat/get/domain',//获取授权域
|
|
105
|
+
getBindList: '/api/bind/ewechat/list',//绑定应用列表
|
|
106
|
+
postUnbind: '/api/bind/ewechat/unbind',//解绑应用
|
|
107
|
+
//'/api/bind/ewechat/detail/{bindId}'/api//查看绑定详细信息
|
|
108
|
+
},
|
|
109
|
+
wechatBind :{//企业微信接入组件
|
|
110
|
+
getAuthUrl: '/api/bind/wechat/get/auth-url',//获取授权URL GET
|
|
111
|
+
getBindList: '/api/bind/wechat/list',//绑定应用列表GET
|
|
112
|
+
unbind: '/api/bind/wechat/unbind',//解绑应用POST
|
|
113
|
+
detail: '/api/bind/wechat/detail/{bindId}', //查看绑定详细信息 GET
|
|
114
|
+
|
|
115
|
+
},
|
|
116
|
+
miniProgramBind: { // 小程序接入
|
|
117
|
+
wxMiniCode: '/api/wx/mini/acode', // 获取小程序码
|
|
118
|
+
},
|
|
119
|
+
websiteBind: { // 网站接入
|
|
120
|
+
getBindWebsiteList: '/api/bot/web/access/list', // 获取绑定网站列表GET
|
|
121
|
+
addWebsiteBind: '/api/bot/web/access', //新增网站接入信息POST
|
|
122
|
+
deleteWebsiteBind: '/api/bot/web/access', //删除网站接入信息DELETE
|
|
123
|
+
},
|
|
124
|
+
messageController :{//聊天记录组件
|
|
125
|
+
getChatbotMessageList: '/api/message/dialog/',//获取机器人聊天列表GET
|
|
126
|
+
getUserDialog: '/api/message/history/',//获取聊天记录GET
|
|
127
|
+
getUserInformation: '/api/message/userInfo/',//获取用户信息GET
|
|
128
|
+
|
|
129
|
+
},
|
|
130
|
+
superIntent :{//超级意图模板
|
|
131
|
+
updateSuperIntentSwitch: '/api/template/intent/enable',//开启关闭超级意图模板功能PUT
|
|
132
|
+
getIntentMatchTemplate: '/api/template/intent/get/',//获取意图对应的模板GET
|
|
133
|
+
updateIntentMatchTemplate: '/api/template/intent/save',//保存意图对应的模板POST
|
|
134
|
+
getSuperIntentList: '/api/template/list',//获取超级意图列表GET
|
|
135
|
+
|
|
136
|
+
},
|
|
137
|
+
statistics :{//统计分析
|
|
138
|
+
getStatisticsData: '/api/statistics/data',//获取统计数据GET
|
|
139
|
+
getChannelList: '/api/statistics/source',//获取接入渠道GET
|
|
140
|
+
|
|
141
|
+
},
|
|
142
|
+
accountManage :{//成员管理
|
|
143
|
+
getAccountList: '/api/member/list',//获取成员列表GET
|
|
144
|
+
account: '/api/member',//成员管理
|
|
145
|
+
deleteAccount: '', // 删除账号
|
|
146
|
+
updateAccount: '/api/member', // 更新账号
|
|
147
|
+
|
|
148
|
+
},
|
|
149
|
+
role :{//角色管理
|
|
150
|
+
getRoleList: '/api/role',//获取角色列表GET
|
|
151
|
+
|
|
152
|
+
},
|
|
153
|
+
accountGroup :{//用户分组管理
|
|
154
|
+
getAccountGroupList: '/api/user/group',//获取用户分组列表GET
|
|
155
|
+
addAccountGroup: '/api/user/group',//新增用户组POST
|
|
156
|
+
updateAccountGroup: '/api/user/group',//更新用户分组PUT
|
|
157
|
+
deleteAccountGroup: '/api/user/group',//删除用户分组DELETE
|
|
158
|
+
|
|
159
|
+
},
|
|
160
|
+
relatedQuestion :{//关联问法推荐
|
|
161
|
+
getRelatedQuestionList: '/api/rq/list',//获取用户分组列表GET
|
|
162
|
+
addOneRelatedQuestion: '/api/rq/add',//添加一个关联问法POST
|
|
163
|
+
addAllRelatedQuestion: '/api/rq/add-all',//添加全部关联问法POST
|
|
164
|
+
ignoreOneRelatedQuestion: '/api/rq/ignore',//忽略一个关联问法POST
|
|
165
|
+
ignoreAllRelatedQuestion: '/api/rq/ignore-all',//忽略全部关联问法POST
|
|
166
|
+
|
|
167
|
+
},
|
|
168
|
+
webhook :{
|
|
169
|
+
getWebhookDir : '/api/webhook/dir/list', //获取Webhook目录列表GET
|
|
170
|
+
addDir : '/api/webhook/dir' ,//新增目录POST
|
|
171
|
+
deleteDir: '/api/webhook/dir', //删除目录DELETE
|
|
172
|
+
deleteWebhook: '/api/webhook', //删除Webhook DELETE
|
|
173
|
+
webhookDetail: '/api/webhook/', //查询api详情 GET
|
|
174
|
+
webhookAdd: '/api/webhook', //新增修改webhook POST
|
|
175
|
+
webhookSend: '/api/webhook/send', //发送webhook请求 POST
|
|
176
|
+
webhookCopy: '/api/webhook/copy', //拷贝webhook POST
|
|
177
|
+
webhookRelease: '/api/webhook', //发布webhook PUT
|
|
178
|
+
uploadFile: '/api/oss', //上传文件 POST
|
|
179
|
+
webhookNameCheck: '/api/webhook/check/name', //webhook名称重复校验 GET
|
|
180
|
+
webhookbaseList: 'api/webhook/base-list', // webhook列表(组件配置使用)
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export { requestUrl };
|