Explorar o código

1、初始化saasadmin

yys hai 2 días
pai
achega
3b8be24198
Modificáronse 100 ficheiros con 5102 adicións e 788 borrados
  1. 568 0
      public/chat-aggregate.html
  2. 324 0
      public/workflow-canvas.html
  3. 44 0
      src/api/FastGptExtUserTag.js
  4. 44 0
      src/api/ad.js
  5. 44 0
      src/api/ad/adDyApi.js
  6. 44 0
      src/api/ad/clickLog.js
  7. 62 0
      src/api/adv/advertiser.js
  8. 70 0
      src/api/adv/callbackAccount.js
  9. 29 0
      src/api/adv/channel.js
  10. 18 0
      src/api/adv/configuration.js
  11. 10 0
      src/api/adv/conversionLog.js
  12. 63 0
      src/api/adv/domain.js
  13. 73 0
      src/api/adv/landingPageTemplate.js
  14. 19 0
      src/api/adv/project.js
  15. 54 0
      src/api/adv/promotionAccount.js
  16. 60 0
      src/api/adv/site.js
  17. 34 0
      src/api/adv/siteStatistics.js
  18. 36 0
      src/api/adv/trackingLink.js
  19. 44 0
      src/api/aiChatQuality.js
  20. 44 0
      src/api/aiProvider.js
  21. 53 0
      src/api/aiSipCall/aiSipCallBizGroup.js
  22. 62 0
      src/api/aiSipCall/aiSipCallGateway.js
  23. 53 0
      src/api/aiSipCall/aiSipCallLlmAgentAccount.js
  24. 88 0
      src/api/aiSipCall/aiSipCallOutboundCdr.js
  25. 61 0
      src/api/aiSipCall/aiSipCallPhone.js
  26. 86 0
      src/api/aiSipCall/aiSipCallTask.js
  27. 77 0
      src/api/aiSipCall/aiSipCallUser.js
  28. 53 0
      src/api/aiSipCall/aiSipCallVoiceTtsAliyun.js
  29. 44 0
      src/api/article.js
  30. 31 0
      src/api/billing/wallet.js
  31. 44 0
      src/api/callRecord.js
  32. 53 0
      src/api/callRecord/callRecord.js
  33. 44 0
      src/api/company.js
  34. 76 0
      src/api/company/addwx.js
  35. 8 0
      src/api/company/aiCall.js
  36. 49 0
      src/api/company/aiModel.js
  37. 8 0
      src/api/company/aiProvider.js
  38. 43 0
      src/api/company/aiWorkflow.js
  39. 88 0
      src/api/company/callphone.js
  40. 27 0
      src/api/company/companyApply.js
  41. 0 61
      src/api/company/companyDeduct.js
  42. 13 30
      src/api/company/companyDept.js
  43. 0 68
      src/api/company/companyDomain.js
  44. 1 7
      src/api/company/companyDomainBind.js
  45. 0 53
      src/api/company/companyLogininfor.js
  46. 0 53
      src/api/company/companyRoleDept.js
  47. 0 53
      src/api/company/companyRoleMenu.js
  48. 64 0
      src/api/company/companyUserCard.js
  49. 0 53
      src/api/company/companyUserPost.js
  50. 0 53
      src/api/company/companyUserRole.js
  51. 0 53
      src/api/company/companyVoice.js
  52. 0 53
      src/api/company/companyVoiceBlacklist.js
  53. 0 53
      src/api/company/companyVoiceConfig.js
  54. 0 61
      src/api/company/companyVoiceMobile.js
  55. 0 53
      src/api/company/companyVoicePackage.js
  56. 53 0
      src/api/company/companyVoiceRoboticCallBlacklist.js
  57. 149 0
      src/api/company/companyWorkflow.js
  58. 33 0
      src/api/company/easyCall.js
  59. 27 0
      src/api/company/firstDiagnosis.js
  60. 162 0
      src/api/company/knowledge.js
  61. 39 0
      src/api/company/pay.js
  62. 9 0
      src/api/company/redPacket.js
  63. 87 0
      src/api/company/sendmsg.js
  64. 90 0
      src/api/company/tagBinding.js
  65. 36 37
      src/api/company/tcmScheduleReport.js
  66. 53 0
      src/api/company/tcmconsume.js
  67. 0 27
      src/api/company/traffic.js
  68. 0 19
      src/api/company/trafficLog.js
  69. 11 0
      src/api/company/userIntegralLogs.js
  70. 27 0
      src/api/company/voiceClone.js
  71. 71 0
      src/api/company/workflowExec.js
  72. 97 0
      src/api/company/workflowLobster.js
  73. 44 0
      src/api/course.js
  74. 53 0
      src/api/course/appIdList.js
  75. 44 0
      src/api/course/courseAnswerLog.js
  76. 44 0
      src/api/course/courseQuestionCategory.js
  77. 44 0
      src/api/course/period.js
  78. 44 0
      src/api/course/playSourceConfig.js
  79. 26 0
      src/api/course/sopCourseLink.js
  80. 44 0
      src/api/course/trainingCamp.js
  81. 1 1
      src/api/course/userCourseVideo.js
  82. 53 0
      src/api/course/userIdList.js
  83. 18 0
      src/api/course/userOperationLog.js
  84. 44 0
      src/api/course/userVideoCommentLike.js
  85. 44 0
      src/api/course/userVideoFavorite.js
  86. 44 0
      src/api/course/userVideoLike.js
  87. 44 0
      src/api/course/userVideoView.js
  88. 44 0
      src/api/course/videoTags.js
  89. 44 0
      src/api/courseFinishTemp/course.js
  90. 44 0
      src/api/crm.js
  91. 62 0
      src/api/crm/assist.js
  92. 62 0
      src/api/crm/crm/assist.js
  93. 198 0
      src/api/crm/crm/customer.js
  94. 61 0
      src/api/crm/crm/customerAnalyze.js
  95. 21 0
      src/api/crm/crm/customerAssign.js
  96. 53 0
      src/api/crm/crm/customerContacts.js
  97. 53 0
      src/api/crm/crm/customerExt.js
  98. 53 0
      src/api/crm/crm/customerHisOrder.js
  99. 9 0
      src/api/crm/crm/customerLevel.js
  100. 53 0
      src/api/crm/crm/customerLogs.js

+ 568 - 0
public/chat-aggregate.html

@@ -0,0 +1,568 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>龙虾引擎 - 聚合聊天</title>
+<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
+<style>
+*{margin:0;padding:0;box-sizing:border-box}
+body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#0a0a1a;color:#e0e0e0;height:100vh;overflow:hidden}
+.main{display:flex;height:100vh}
+
+/* 左侧账户列表 */
+.account-panel{width:80px;background:#0d0d1f;border-right:1px solid #1a1a3e;display:flex;flex-direction:column;padding:12px 0}
+.account-item{width:56px;height:56px;border-radius:50%;margin:0 auto 8px;cursor:pointer;position:relative;border:2px solid transparent;transition:.2s;display:flex;align-items:center;justify-content:center;font-size:24px}
+.account-item:hover{border-color:#e94560;transform:scale(1.05)}
+.account-item.active{border-color:#e94560;background:#e9456022}
+.account-item .badge{position:absolute;top:-2px;right:-2px;background:#e94560;color:#fff;border-radius:10px;padding:1px 5px;font-size:10px}
+.account-item.disabled{opacity:.4;cursor:not-allowed}
+
+/* 会话列表 */
+.session-panel{width:280px;background:#1a1a2e;border-right:1px solid #2a2a4a;display:flex;flex-direction:column}
+.session-header{padding:12px 16px;border-bottom:1px solid #2a2a4a}
+.session-header h3{font-size:14px;color:#e94560}
+.session-header .search{margin-top:8px}
+.session-header input{width:100%;padding:6px 10px;background:#0a0a1a;border:1px solid #2a2a4a;border-radius:4px;color:#e0e0e0;font-size:12px}
+.session-list{flex:1;overflow-y:auto;padding:8px}
+.session-item{display:flex;padding:10px;cursor:pointer;border-radius:6px;margin-bottom:4px;transition:.2s}
+.session-item:hover{background:#2a2a4a}
+.session-item.active{background:#0f3460}
+.session-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#e94560,#f59e0b);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
+.session-info{flex:1;min-width:0;margin-left:10px}
+.session-info .name{font-size:13px;color:#e0e0e0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
+.session-info .msg{font-size:12px;color:#888;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
+.session-time{font-size:11px;color:#666;text-align:right}
+.session-item.unread .name{font-weight:600;color:#fff}
+.session-item.unread .badge{background:#e94560;color:#fff;border-radius:10px;padding:1px 5px;font-size:10px}
+
+/* 聊天区域 */
+.chat-panel{flex:1;display:flex;flex-direction:column;background:#0a0a1a}
+.chat-header{padding:12px 20px;background:#1a1a2e;border-bottom:1px solid #2a2a4a;display:flex;align-items:center;justify-content:space-between}
+.chat-title .name{font-size:15px;color:#e0e0e0}
+.chat-title .type{font-size:11px;color:#888;margin-left:8px}
+.chat-actions{display:flex;gap:8px}
+.chat-actions button{padding:6px 12px;background:#0f3460;border:none;border-radius:4px;color:#e0e0e0;font-size:12px;cursor:pointer}
+.chat-actions button:hover{background:#1a4a80}
+
+/* 消息列表 */
+.message-list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column}
+.message-item{display:flex;margin-bottom:12px;max-width:80%}
+.message-item.sent{align-self:flex-end}
+.message-item.sent .msg-bubble{background:#e94560;color:#fff;border-radius:12px 12px 0 12px}
+.message-item.received{align-self:flex-start}
+.message-item.received .msg-bubble{background:#1a1a2e;color:#e0e0e0;border-radius:12px 12px 12px 0;border:1px solid #2a2a4a}
+.msg-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#22c55e);display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}
+.message-item.sent .msg-avatar{order:2;margin-left:8px}
+.message-item.received .msg-avatar{order:1;margin-right:8px}
+.msg-content{display:flex;flex-direction:column}
+.message-item.sent .msg-content{order:1}
+.message-item.received .msg-content{order:2}
+.msg-bubble{padding:10px 14px;max-width:max-content}
+.msg-text{font-size:13px;line-height:1.5}
+.msg-time{font-size:10px;color:#666;margin-top:4px;text-align:right}
+.message-item.sent .msg-time{color:#fff8}
+
+/* 输入区域 */
+.chat-input{padding:12px 20px;background:#1a1a2e;border-top:1px solid #2a2a4a}
+.input-row{display:flex;gap:10px}
+.input-row textarea{flex:1;padding:10px 14px;background:#0a0a1a;border:1px solid #2a2a4a;border-radius:8px;color:#e0e0e0;font-size:13px;resize:none;min-height:44px;max-height:120px;font-family:inherit}
+.input-row textarea:focus{outline:none;border-color:#e94560}
+.input-row button{padding:10px 24px;background:#e94560;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;flex-shrink:0}
+.input-row button:hover{background:#d63850}
+.input-row button:disabled{opacity:.5;cursor:not-allowed}
+
+/* 客户信息面板 */
+.customer-panel{width:280px;background:#1a1a2e;border-left:1px solid #2a2a4a;display:flex;flex-direction:column}
+.customer-header{padding:16px;border-bottom:1px solid #2a2a4a;text-align:center}
+.customer-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#e94560,#f59e0b);display:flex;align-items:center;justify-content:center;font-size:24px;margin:0 auto}
+.customer-name{font-size:15px;color:#e0e0e0;margin-top:8px}
+.customer-id{font-size:11px;color:#666}
+.customer-tabs{display:flex;border-bottom:1px solid #2a2a4a}
+.customer-tabs .tab{flex:1;padding:8px;text-align:center;font-size:12px;color:#888;cursor:pointer;border-bottom:2px solid transparent}
+.customer-tabs .tab.active{border-color:#e94560;color:#e94560}
+.customer-detail{flex:1;overflow-y:auto;padding:12px}
+.detail-section{margin-bottom:16px}
+.detail-section h4{font-size:12px;color:#888;margin-bottom:8px}
+.detail-row{display:flex;justify-content:space-between;padding:4px 0;font-size:12px}
+.detail-row .label{color:#888}
+.detail-row .value{color:#e0e0e0}
+.tag-list{display:flex;flex-wrap:gap;gap:4px}
+.tag{display:inline-block;padding:3px 8px;background:#0f3460;color:#ccc;border-radius:4px;font-size:11px}
+.record-item{padding:8px;border-bottom:1px solid #1a1a3e}
+.record-item .time{font-size:11px;color:#666}
+.record-item .desc{font-size:12px;color:#e0e0e0;margin-top:2px}
+
+/* 渠道图标 */
+.channel-qw{background:linear-gradient(135deg,#1890ff,#096dd9)}
+.channel-wx{background:linear-gradient(135deg,#07c160,#10b981)}
+.channel-im{background:linear-gradient(135deg,#6366f1,#8b5cf6)}
+.channel-whatsapp{background:linear-gradient(135deg,#25d366,#10b981)}
+.channel-other{background:linear-gradient(135deg,#6b7280,#9ca3af)}
+
+/* 滚动条 */
+::-webkit-scrollbar{width:6px}
+::-webkit-scrollbar-track{background:#0a0a1a}
+::-webkit-scrollbar-thumb{background:#2a2a4a;border-radius:3px}
+::-webkit-scrollbar-thumb:hover{background:#3a3a5a}
+</style>
+</head>
+<body>
+<div id="app" class="main">
+  <!-- 左侧账户列表 -->
+  <div class="account-panel">
+    <div v-for="acc in accounts" :key="acc.id" 
+         :class="['account-item', acc.active ? 'active' : '', acc.connected ? '' : 'disabled']"
+         @click="selectAccount(acc)" :title="acc.name">
+      <span>{{acc.icon}}</span>
+      <span v-if="acc.unread>0" class="badge">{{acc.unread}}</span>
+    </div>
+  </div>
+
+  <!-- 会话列表 -->
+  <div class="session-panel">
+    <div class="session-header">
+      <h3>🗨️ 聊天列表</h3>
+      <div class="search">
+        <input v-model="searchKey" placeholder="搜索联系人..." @keyup="filterSessions">
+      </div>
+    </div>
+    <div class="session-list">
+      <div v-for="sess in filteredSessions" :key="sess.sessionId" 
+           :class="['session-item', sess.sessionId === currentSession?.sessionId ? 'active' : '', sess.unread > 0 ? 'unread' : '']"
+           @click="selectSession(sess)">
+        <div class="session-avatar">{{sess.avatar||'?'}}</div>
+        <div class="session-info">
+          <div class="name">{{sess.name}}</div>
+          <div class="msg">{{sess.lastMsg||'暂无消息'}}</div>
+        </div>
+        <div style="text-align:right;margin-left:8px">
+          <div class="session-time">{{sess.lastTime||''}}</div>
+          <span v-if="sess.unread>0" class="badge">{{sess.unread}}</span>
+        </div>
+      </div>
+      <div v-if="filteredSessions.length===0" style="text-align:center;padding:40px;color:#666;font-size:13px">
+        暂无会话记录
+      </div>
+    </div>
+  </div>
+
+  <!-- 聊天区域 -->
+  <div class="chat-panel">
+    <div v-if="currentSession" class="chat-header">
+      <div class="chat-title">
+        <span class="name">{{currentSession.name}}</span>
+        <span class="type">{{channelName(currentSession.channelType)}}</span>
+      </div>
+      <div class="chat-actions">
+        <button @click="toggleControlMode">{{currentSession.controlMode === 'ai' ? '🤖 AI接管中' : '👤 人工接管'}}</button>
+        <button @click="showCustomerInfo=true">👤 客户信息</button>
+      </div>
+    </div>
+    <div v-else class="chat-header">
+      <div class="chat-title">
+        <span class="name">请选择一个会话</span>
+      </div>
+    </div>
+
+    <div class="message-list" ref="messageList">
+      <div v-for="(msg, idx) in messages" :key="idx" :class="['message-item', msg.sendType === 1 ? 'received' : 'sent']">
+        <div class="msg-avatar">{{msg.sendType === 1 ? '👤' : '🤖'}}</div>
+        <div class="msg-content">
+          <div class="msg-bubble">
+            <div class="msg-text">{{msg.content}}</div>
+          </div>
+          <div class="msg-time">{{msg.time}}</div>
+        </div>
+      </div>
+      <div v-if="messages.length===0" style="text-align:center;padding:60px;color:#666">
+        <div style="font-size:48px;margin-bottom:12px">💬</div>
+        <p>开始与客户聊天</p>
+      </div>
+    </div>
+
+    <div class="chat-input">
+      <div class="input-row">
+        <textarea v-model="inputMsg" placeholder="输入消息..." @keyup.enter="sendMessage"></textarea>
+        <button @click="sendMessage" :disabled="!inputMsg.trim()">发送</button>
+      </div>
+    </div>
+  </div>
+
+  <!-- 客户信息面板 -->
+  <div class="customer-panel" v-if="showCustomerInfo">
+    <div class="customer-header">
+      <div class="customer-avatar">{{currentSession?.avatar||'?'}}</div>
+      <div class="customer-name">{{currentSession?.name||'-'}}</div>
+      <div class="customer-id">{{currentSession?.channelSourceId||'-'}}</div>
+    </div>
+    <div class="customer-tabs">
+      <div :class="['tab', customerTab==='basic'?'active':'']" @click="customerTab='basic'">基本信息</div>
+      <div :class="['tab', customerTab==='tags'?'active':'']" @click="customerTab='tags'">标签</div>
+      <div :class="['tab', customerTab==='records'?'active':'']" @click="customerTab='records'">访问记录</div>
+    </div>
+    <div class="customer-detail">
+      <div v-if="customerTab==='basic'" class="detail-section">
+        <h4>📋 基本信息</h4>
+        <div class="detail-row"><span class="label">渠道</span><span class="value">{{channelName(currentSession?.channelType)}}</span></div>
+        <div class="detail-row"><span class="label">来源ID</span><span class="value">{{currentSession?.channelSourceId||'-'}}</span></div>
+        <div class="detail-row"><span class="label">联系人ID</span><span class="value">{{currentSession?.contactId||'-'}}</span></div>
+        <div class="detail-row"><span class="label">会话ID</span><span class="value">{{currentSession?.sessionId||'-'}}</span></div>
+        <div class="detail-row"><span class="label">创建时间</span><span class="value">{{currentSession?.createTime||'-'}}</span></div>
+      </div>
+      <div v-if="customerTab==='tags'" class="detail-section">
+        <h4>🏷️ 客户标签</h4>
+        <div class="tag-list">
+          <span v-for="tag in customerTags" :key="tag" class="tag">{{tag}}</span>
+        </div>
+        <div v-if="customerTags.length===0" style="color:#666;font-size:12px">暂无标签</div>
+      </div>
+      <div v-if="customerTab==='records'" class="detail-section">
+        <h4>📊 访问记录</h4>
+        <div v-for="record in visitRecords" :key="record.time" class="record-item">
+          <div class="time">{{record.time}}</div>
+          <div class="desc">{{record.desc}}</div>
+        </div>
+        <div v-if="visitRecords.length===0" style="color:#666;font-size:12px">暂无访问记录</div>
+      </div>
+    </div>
+  </div>
+</div>
+
+<script>
+const {createApp, ref, computed, watch, nextTick, onMounted} = Vue;
+    createApp({
+        setup(){
+            const searchKey = ref('');
+            const inputMsg = ref('');
+            const showCustomerInfo = ref(true);
+            const customerTab = ref('basic');
+            const messageList = ref(null);
+            const loading = ref(false);
+            
+            // API请求工具函数
+            const request = async (url, options = {}) => {
+                const defaultOptions = {
+                    headers: {
+                        'Content-Type': 'application/json',
+                    },
+                };
+                const response = await fetch(url, { ...defaultOptions, ...options });
+                if (!response.ok) {
+                    throw new Error(`HTTP ${response.status}: ${response.statusText}`);
+                }
+                return await response.json();
+            };
+
+            // 账户列表
+            const accounts = ref([]);
+
+            // 会话列表
+            const sessions = ref([]);
+
+            // 当前会话
+            const currentSession = ref(null);
+
+            // 消息列表
+            const messages = ref([]);
+
+            // 客户标签
+            const customerTags = ref([]);
+
+            // 访问记录
+            const visitRecords = ref([]);
+
+            // 当前登录用户的企微账户
+            const currentAccount = ref(null);
+
+            // 过滤后的会话
+            const filteredSessions = computed(()=>{
+                if(!searchKey.value) return sessions.value;
+                const key = searchKey.value.toLowerCase();
+                return sessions.value.filter(s=>{
+                    const name = s.nickName || s.name || '';
+                    return name.toLowerCase().includes(key);
+                });
+            });
+
+            // 加载账户列表
+            const loadAccounts = async () => {
+                try {
+                    // 先获取当前登录用户绑定的企微账户
+                    const res = await request('/qw/user/getMyQwUserList');
+                    if (res.code === 200 || res.code === 0) {
+                        const qwAccounts = (res.data || []).map((acc, idx) => ({
+                            id: acc.id || `qw_${idx}`,
+                            name: acc.qwUserName || '企微账户',
+                            icon: '💼',
+                            active: idx === 0,
+                            connected: true,
+                            unread: 0,
+                            type: 'QW',
+                            corpId: acc.corpId,
+                            qwUserId: acc.qwUserId
+                        }));
+                        
+                        // 添加个微账户占位(后续扩展)
+                        const wxAccounts = []; // 暂时为空,后续实现个微账户绑定
+                        
+                        accounts.value = [...qwAccounts, ...wxAccounts];
+                        
+                        if (accounts.value.length > 0) {
+                            currentAccount.value = accounts.value[0];
+                        }
+                    }
+                } catch (error) {
+                    console.error('加载账户失败:', error);
+                    // 降级显示模拟账户
+                    accounts.value = [
+                        {id:'qw', name:'企业微信', icon:'💼', active:true, connected:true, unread:0, type:'QW'},
+                        {id:'wx', name:'个人微信', icon:'💬', active:false, connected:false, unread:0, type:'WX'},
+                    ];
+                    currentAccount.value = accounts.value[0];
+                }
+            };
+
+            // 加载会话列表
+            const loadSessions = async () => {
+                try {
+                    // 先尝试加载chat会话
+                    const chatRes = await request('/chat/chatSession/list?pageNum=1&pageSize=100');
+                    if (chatRes.code === 200 || chatRes.rows) {
+                        const chatSessions = (chatRes.rows || []).map(s => ({
+                            sessionId: s.sessionId,
+                            name: s.nickName || s.userName || '客户',
+                            avatar: (s.nickName || s.userName || '客').charAt(0),
+                            channelType: 'CHAT',
+                            channelSourceId: s.userId,
+                            contactId: s.userId,
+                            lastMsg: '',
+                            lastTime: s.createTime || '',
+                            unread: 0,
+                            createTime: s.createTime,
+                            status: s.status
+                        }));
+                        
+                        // 再尝试加载企微外部联系人作为会话
+                        const qwRes = await request('/qw/externalContact/list?pageNum=1&pageSize=100');
+                        if (qwRes.code === 200 || qwRes.rows) {
+                            const qwSessions = (qwRes.rows || []).map(c => ({
+                                sessionId: `qw_${c.id}`,
+                                name: c.name || c.remark || '企微客户',
+                                avatar: (c.name || c.remark || '客').charAt(0),
+                                channelType: 'QW',
+                                channelSourceId: c.externalUserId,
+                                contactId: c.id,
+                                lastMsg: '',
+                                lastTime: c.createTime || '',
+                                unread: 0,
+                                createTime: c.createTime,
+                                tagIds: c.tagIds,
+                                customerId: c.customerId,
+                                remarkMobiles: c.remarkMobiles
+                            }));
+                            sessions.value = [...qwSessions, ...chatSessions];
+                        } else {
+                            sessions.value = chatSessions;
+                        }
+                    }
+                } catch (error) {
+                    console.error('加载会话失败:', error);
+                    sessions.value = [];
+                }
+                
+                if (sessions.value.length > 0 && !currentSession.value) {
+                    selectSession(sessions.value[0]);
+                }
+            };
+
+            // 选择账户
+            const selectAccount = (acc)=>{
+                if(!acc.connected) return;
+                accounts.value.forEach(a=>a.active = false);
+                acc.active = true;
+                currentAccount.value = acc;
+                loadSessions();
+            };
+
+            // 选择会话
+            const selectSession = async (sess)=>{
+                currentSession.value = sess;
+                // 清除未读
+                sess.unread = 0;
+                // 加载消息
+                await loadMessages(sess);
+                // 加载客户标签和信息
+                await loadCustomerInfo(sess);
+            };
+
+            // 加载消息
+            const loadMessages = async (session) => {
+                messages.value = [];
+                try {
+                    if (session.channelType === 'CHAT') {
+                        // 加载chat会话消息
+                        const chatDetailRes = await request(`/chat/chatSession/${session.sessionId}`);
+                        if (chatDetailRes.code === 200 || chatDetailRes.data) {
+                            const msgRes = await request(`/chat/chatMsg/list?sessionId=${session.sessionId}&pageNum=1&pageSize=100`);
+                            if (msgRes.rows) {
+                                messages.value = msgRes.rows.map(m => ({
+                                    content: m.content,
+                                    sendType: m.sendType,
+                                    time: m.createTime || new Date().toLocaleTimeString('zh-CN',{hour:'2-digit',minute:'2-digit'})
+                                }));
+                            }
+                        }
+                    } else if (session.channelType === 'QW') {
+                        // TODO: 加载企微聊天记录
+                        messages.value = [];
+                    }
+                } catch (error) {
+                    console.error('加载消息失败:', error);
+                    messages.value = [];
+                }
+                
+                nextTick(()=>{
+                    if(messageList.value){
+                        messageList.value.scrollTop = messageList.value.scrollHeight;
+                    }
+                });
+            };
+
+            // 加载客户信息
+            const loadCustomerInfo = async (session) => {
+                customerTags.value = [];
+                visitRecords.value = [];
+                
+                try {
+                    if (session.tagIds && session.tagIds !== '[]') {
+                        // 解析标签ID并加载标签名称
+                        const tagIds = JSON.parse(session.tagIds);
+                        if (tagIds.length > 0) {
+                            const tagRes = await request(`/qw/tag/list?tagIds=${tagIds.join(',')}`);
+                            if (tagRes.rows) {
+                                customerTags.value = tagRes.rows.map(t => t.tagName || t.name);
+                            }
+                        }
+                    }
+                    
+                    // 加载CRM客户信息
+                    if (session.customerId) {
+                        const crmRes = await request(`/crm/customer/${session.customerId}`);
+                        if (crmRes.data) {
+                            // 补充客户基本信息
+                            if (crmRes.data.phone) {
+                                visitRecords.value.push({
+                                    time: new Date().toLocaleDateString('zh-CN'),
+                                    desc: `手机号: ${crmRes.data.phone}`
+                                });
+                            }
+                            if (crmRes.data.email) {
+                                visitRecords.value.push({
+                                    time: new Date().toLocaleDateString('zh-CN'),
+                                    desc: `邮箱: ${crmRes.data.email}`
+                                });
+                            }
+                        }
+                    }
+                    
+                    // 加载fastGpt聊天摘要
+                    try {
+                        const chatRes = await request('/fastGpt/fastGptChatSession/list?pageNum=1&pageSize=10');
+                        if (chatRes.rows) {
+                            const relatedChat = chatRes.rows.find(c => 
+                                c.externalUserId === session.channelSourceId || 
+                                c.userId === session.contactId
+                            );
+                            if (relatedChat) {
+                                visitRecords.value.push({
+                                    time: relatedChat.createTime || new Date().toLocaleDateString('zh-CN'),
+                                    desc: `最近聊天: ${relatedChat.lastMsg || '暂无消息'}`
+                                });
+                            }
+                        }
+                    } catch (err) {
+                        console.error('加载聊天摘要失败:', err);
+                    }
+                } catch (error) {
+                    console.error('加载客户信息失败:', error);
+                }
+            };
+
+            // 发送消息
+            const sendMessage = async ()=>{
+                if(!inputMsg.value.trim() || !currentSession.value) return;
+                
+                const msg = {
+                    content: inputMsg.value, 
+                    sendType: 2, 
+                    time: new Date().toLocaleTimeString('zh-CN',{hour:'2-digit',minute:'2-digit'})
+                };
+                messages.value.push(msg);
+                const contentToSend = inputMsg.value;
+                inputMsg.value = '';
+                
+                nextTick(()=>{
+                    if(messageList.value){
+                        messageList.value.scrollTop = messageList.value.scrollHeight;
+                    }
+                });
+                
+                // 调用发送消息接口
+                try {
+                    if (currentSession.value.channelType === 'QW') {
+                        // 企微发送消息
+                        await request('/qw/msg/send', {
+                            method: 'POST',
+                            body: JSON.stringify({
+                                externalUserId: currentSession.value.channelSourceId,
+                                content: contentToSend,
+                                qwUserId: currentAccount.value?.qwUserId
+                            })
+                        });
+                    } else if (currentSession.value.channelType === 'CHAT') {
+                        // Chat会话发送消息
+                        await request('/chat/chatMsg', {
+                            method: 'POST',
+                            body: JSON.stringify({
+                                sessionId: currentSession.value.sessionId,
+                                content: contentToSend,
+                                sendType: 2
+                            })
+                        });
+                    }
+                } catch (error) {
+                    console.error('发送消息失败:', error);
+                }
+            };
+
+            // 切换控制模式
+            const toggleControlMode = ()=>{
+                if(currentSession.value){
+                    currentSession.value.controlMode = currentSession.value.controlMode === 'ai' ? 'human' : 'ai';
+                }
+            };
+
+            // 渠道名称
+            const channelName = (type)=>{
+                const names = {QW:'企业微信', WX:'个人微信', IM:'系统IM', WHATSAPP:'WhatsApp', OTHER:'其他渠道', CHAT:'在线咨询'};
+                return names[type] || type;
+            };
+
+            // 初始化
+            onMounted(async () => {
+                await loadAccounts();
+                await loadSessions();
+            });
+
+            return {
+                searchKey, inputMsg, showCustomerInfo, customerTab, messageList, loading,
+                accounts, sessions, currentSession, messages, customerTags, visitRecords,
+                filteredSessions,
+                selectAccount, selectSession, sendMessage, toggleControlMode, channelName
+            };
+        }
+    }).mount('#app');
+</script>
+</body>
+</html>

+ 324 - 0
public/workflow-canvas.html

@@ -0,0 +1,324 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>龙虾引擎 - 工作流可视化编辑器</title>
+<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
+<script src="https://unpkg.com/@vue-flow/core@latest/dist/vue-flow.umd.js"></script>
+<script src="https://unpkg.com/@vue-flow/background@latest/dist/vue-flow-background.umd.js"></script>
+<script src="https://unpkg.com/@vue-flow/minimap@latest/dist/vue-flow-minimap.umd.js"></script>
+<script src="https://unpkg.com/@vue-flow/controls@latest/dist/vue-flow-controls.umd.js"></script>
+<link href="https://unpkg.com/@vue-flow/core@latest/dist/style.css" rel="stylesheet">
+<link href="https://unpkg.com/@vue-flow/minimap@latest/dist/style.css" rel="stylesheet">
+<link href="https://unpkg.com/@vue-flow/controls@latest/dist/style.css" rel="stylesheet">
+
+<style>
+*{margin:0;padding:0;box-sizing:border-box}
+body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;height:100vh;overflow:hidden}
+#app{display:flex;height:100vh}
+.sidebar{width:220px;background:#1a1a2e;color:#fff;padding:12px;overflow-y:auto;flex-shrink:0}
+.sidebar h3{font-size:14px;margin:8px 0;color:#e94560;border-bottom:1px solid #333;padding-bottom:4px}
+.node-item{background:#16213e;margin:4px 0;padding:8px;border-radius:6px;cursor:grab;font-size:12px;border:1px solid #0f3460;transition:all .2s}
+.node-item:hover{background:#0f3460;border-color:#e94560;transform:translateX(2px)}
+.node-item .type-tag{display:inline-block;background:#e94560;color:#fff;padding:1px 6px;border-radius:3px;font-size:10px;margin-right:6px}
+.main{flex:1;position:relative}
+.toolbar{position:absolute;top:10px;left:10px;z-index:10;display:flex;gap:8px}
+.toolbar button{padding:6px 14px;border:none;border-radius:4px;cursor:pointer;font-size:12px}
+.btn-primary{background:#e94560;color:#fff}
+.btn-secondary{background:#0f3460;color:#fff}
+.btn-success{background:#22c55e;color:#fff}
+.prop-panel{width:320px;background:#f8f9fa;border-left:2px solid #dee2e6;padding:12px;overflow-y:auto;flex-shrink:0;font-size:13px}
+.prop-panel h3{color:#1a1a2e;margin-bottom:10px}
+.prop-panel label{display:block;margin:6px 0 2px;color:#555;font-weight:600}
+.prop-panel input,.prop-panel textarea,.prop-panel select{width:100%;padding:6px;border:1px solid #ccc;border-radius:4px;font-size:12px;margin-bottom:6px}
+.prop-panel textarea{min-height:60px;font-family:monospace}
+.vue-flow__node{font-size:12px;min-width:120px;text-align:center}
+.flow-node{padding:8px 12px;border-radius:8px;border:2px solid;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.1)}
+.flow-node.start{border-color:#22c55e}
+.flow-node.ai{border-color:#8b5cf6}
+.flow-node.msg{border-color:#3b82f6}
+.flow-node.cond{border-color:#f59e0b}
+.flow-node.end{border-color:#ef4444}
+.flow-node.default{border-color:#6b7280}
+.node-name{font-weight:700}
+.node-desc{font-size:10px;color:#888;margin-top:2px}
+.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}
+.modal{background:#fff;border-radius:12px;padding:24px;width:500px;max-height:80vh;overflow-y:auto}
+.modal h4{margin-bottom:12px}
+.modal textarea{width:100%;min-height:120px;margin:8px 0;font-family:monospace;font-size:12px;padding:8px}
+.modal .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
+</style>
+</head>
+<body>
+<div id="app">
+  <div class="sidebar">
+    <h3>🦞 龙虾引擎</h3>
+    <div v-for="(group,gname) in nodeGroups" :key="gname">
+      <h3>{{gname}}</h3>
+      <div class="node-item" v-for="nt in group" :key="nt.type"
+           @dragstart="onDragStart($event,nt)" draggable="true">
+        <span class="type-tag">{{nt.type}}</span>{{nt.name}}
+      </div>
+    </div>
+    <div style="margin-top:12px;border-top:1px solid #333;padding-top:8px">
+      <button class="btn-primary" style="width:100%;padding:8px;margin:4px 0" @click="showGenerate=true">🤖 AI生成工作流</button>
+      <button class="btn-secondary" style="width:100%;padding:8px;margin:4px 0" @click="exportJson">📋 导出JSON</button>
+      <button class="btn-success" style="width:100%;padding:8px;margin:4px 0" @click="saveWorkflow">💾 保存到服务器</button>
+      <button class="btn-secondary" style="width:100%;padding:8px;margin:4px 0" @click="showLoad=true">📂 加载工作流</button>
+    </div>
+  </div>
+
+  <div class="main" @drop="onDrop" @dragover.prevent>
+    <div class="toolbar">
+      <button class="btn-primary" @click="fitView()">🎯 适应视图</button>
+      <button class="btn-secondary" @click="undo()">↩ 撤销</button>
+    </div>
+    <vue-flow ref="flowRef" v-model="elements" :node-types="nodeTypes"
+      :default-edge-options="{animated:true,style:{stroke:'#64748b',strokeWidth:2}}"
+      @node-click="onNodeClick" @connect="onConnect" style="height:100%;background:#f1f5f9">
+      <template #node-start="props"><div class="flow-node start"><div class="node-name">🚀 {{props.data.label}}</div></div></template>
+      <template #node-ai="props"><div class="flow-node ai"><div class="node-name">🧠 {{props.data.label}}</div></div></template>
+      <template #node-msg="props"><div class="flow-node msg"><div class="node-name">💬 {{props.data.label}}</div></div></template>
+      <template #node-cond="props"><div class="flow-node cond"><div class="node-name">🔀 {{props.data.label}}</div></div></template>
+      <template #node-end="props"><div class="flow-node end"><div class="node-name">🏁 {{props.data.label}}</div></div></template>
+      <template #node-default="props"><div class="flow-node default"><div class="node-name">📌 {{props.data.label}}</div></div></template>
+      <vue-flow-background />
+      <vue-flow-minimap />
+      <vue-flow-controls />
+    </vue-flow>
+  </div>
+
+  <div class="prop-panel" v-if="selectedNode">
+    <h3>节点属性</h3>
+    <label>节点编码</label><input v-model="selectedNode.data.nodeCode">
+    <label>节点名称</label><input v-model="selectedNode.data.label">
+    <label>节点类型</label>
+    <select v-model.number="selectedNode.data.nodeType" @change="onTypeChange">
+      <option v-for="nt in allNodes" :value="nt.type" :key="nt.type">{{nt.type}}-{{nt.name}}</option>
+    </select>
+    <label>下一节点</label><input v-model="selectedNode.data.nextNodeCode" placeholder="next_node_code">
+    <label>话术模板</label><textarea v-model="selectedNode.data.messageTemplate" placeholder="支持 ${变量}"></textarea>
+    <label>条件表达式</label><textarea v-model="selectedNode.data.conditionExpr" placeholder='{"field":"intent","op":"eq","value":"purchase"}'></textarea>
+    <label>节点配置(JSON)</label><textarea v-model="selectedNode.data.nodeConfig" placeholder='{"collectFields":["1","2"]}'></textarea>
+    <label>最大轮次</label><input v-model.number="selectedNode.data.maxRounds" type="number" min="0">
+    <button class="btn-primary" style="width:100%;margin-top:8px;padding:8px" @click="selectedNode=null">关闭</button>
+  </div>
+</div>
+
+<div class="modal-overlay" v-if="showGenerate">
+  <div class="modal">
+    <h4>🤖 AI生成工作流</h4>
+    <label>需求描述</label>
+    <textarea v-model="genReq" placeholder="例如:我需要一个旅游行业的客户跟进流程,包括意图识别、信息收集、发送方案、条件判断、创建跟进任务..."></textarea>
+    <label>行业类型</label>
+    <select v-model="genIndustry">
+      <option value="travel">旅游</option><option value="medical">医美</option>
+      <option value="education">教育</option><option value="insurance">保险</option>
+      <option value="general">通用</option>
+    </select>
+    <label>已有工作流JSON(可选-迭代优化)</label>
+    <textarea v-model="genExisting" placeholder="粘贴已有工作流JSON进行迭代优化...留空则全新生成"></textarea>
+    <label>迭代指令(可选)</label>
+    <input v-model="genInstruction" placeholder="如:增加关怀节点、优化话术、调整条件">
+    <div class="actions">
+      <button class="btn-secondary" @click="showGenerate=false">取消</button>
+      <button class="btn-primary" @click="aiGenerate()">生成</button>
+    </div>
+    <div v-if="genResult" style="margin-top:12px;background:#f0fdf4;padding:10px;border-radius:6px;font-size:12px">
+      <b>评分:{{genResult.score}}</b> {{genResult.details}}
+    </div>
+  </div>
+</div>
+
+<div class="modal-overlay" v-if="showLoad">
+  <div class="modal">
+    <h4>📂 加载工作流</h4>
+    <textarea v-model="loadJson" placeholder="粘贴工作流JSON..."></textarea>
+    <div class="actions">
+      <button class="btn-secondary" @click="showLoad=false">取消</button>
+      <button class="btn-primary" @click="importJson()">加载</button>
+    </div>
+  </div>
+</div>
+</div>
+
+<script>
+const {createApp,ref,computed,reactive,onMounted} = Vue
+const nodeGroups = {
+  '流程控制':[{type:1,name:'开始',icon:'🚀'},{type:99,name:'结束',icon:'🏁'},{type:4,name:'等待',icon:'⏳'}],
+  'AI智能':[{type:2,name:'AI处理',icon:'🧠'},{type:11,name:'知识检索',icon:'🔍'}],
+  '交互触达':[{type:3,name:'发送消息',icon:'💬'},{type:7,name:'信息收集',icon:'📋'},{type:10,name:'HTTP调用',icon:'🌐'}],
+  '逻辑控制':[{type:5,name:'条件判断',icon:'🔀'},{type:13,name:'循环迭代',icon:'🔄'},{type:16,name:'变量赋值',icon:'📝'}],
+  '业务操作':[{type:6,name:'创建任务',icon:'✅'},{type:8,name:'转人工',icon:'👤'},{type:9,name:'标签操作',icon:'🏷'}],
+  '扩展能力':[{type:12,name:'代码执行',icon:'⚡'},{type:14,name:'数据库查询',icon:'🗄'},{type:15,name:'子流程',icon:'📦'}]
+}
+const allNodes = Object.values(nodeGroups).flat()
+
+const typeToCategory = {}
+allNodes.forEach(n => {
+  if (n.type === 1) typeToCategory[n.type] = 'start'
+  else if (n.type === 99) typeToCategory[n.type] = 'end'
+  else if (n.type === 2 || n.type === 11) typeToCategory[n.type] = 'ai'
+  else if (n.type === 3 || n.type === 7 || n.type === 10) typeToCategory[n.type] = 'msg'
+  else if (n.type === 5 || n.type === 13 || n.type === 16) typeToCategory[n.type] = 'cond'
+  else typeToCategory[n.type] = 'default'
+})
+
+const app = createApp({
+  setup(){
+    const flowRef = ref(null)
+    const selectedNode = ref(null)
+    const elements = ref([
+      {id:'1',type:'start',position:{x:300,y:50},data:{label:'开始',nodeCode:'START',nodeType:1,nextNodeCode:'MSG_1',messageTemplate:'',conditionExpr:'',nodeConfig:'{}',maxRounds:0}},
+      {id:'2',type:'msg',position:{x:300,y:180},data:{label:'欢迎消息',nodeCode:'MSG_1',nodeType:3,nextNodeCode:'END',messageTemplate:'您好${customerName},欢迎咨询!',conditionExpr:'',nodeConfig:'{}',maxRounds:0}},
+      {id:'3',type:'end',position:{x:300,y:310},data:{label:'结束',nodeCode:'END',nodeType:99,nextNodeCode:'',messageTemplate:'',conditionExpr:'',nodeConfig:'{}',maxRounds:0}},
+      {id:'e1-2',source:'1',target:'2',animated:true},
+    ])
+    const showGenerate = ref(false), showLoad = ref(false)
+    const genReq = ref(''), genIndustry = ref('travel'), genExisting = ref(''), genInstruction = ref('')
+    const genResult = ref(null), loadJson = ref('')
+    let nodeIdCounter = elements.value.length
+
+    const nodeTypes = {
+      start:{template:'#node-start'}, ai:{template:'#node-ai'}, msg:{template:'#node-msg'},
+      cond:{template:'#node-cond'}, end:{template:'#node-end'}, default:{template:'#node-default'}
+    }
+
+    function onDragStart(ev,nt){
+      ev.dataTransfer.setData('application/json',JSON.stringify(nt))
+      ev.dataTransfer.effectAllowed = 'move'
+    }
+    function onDrop(ev){
+      const nt = JSON.parse(ev.dataTransfer.getData('application/json'))
+      const pos = flowRef.value?.screenToFlowCoordinate?.({x:ev.clientX,y:ev.clientY}) || {x:ev.offsetX,y:ev.offsetY}
+      nodeIdCounter++
+      const cat = typeToCategory[nt.type] || 'default'
+      elements.value.push({
+        id:String(nodeIdCounter), type:cat, position:pos,
+        data:{label:nt.name,nodeCode:nt.name.toUpperCase()+'_'+nodeIdCounter,nodeType:nt.type,
+              nextNodeCode:'',messageTemplate:'',conditionExpr:'',nodeConfig:'{}',maxRounds:0}
+      })
+    }
+    function onNodeClick({node}){ selectedNode.value = node }
+    function onConnect(conn){
+      elements.value.push({id:'e'+conn.source+'-'+conn.target,source:conn.source,target:conn.target,animated:true})
+    }
+    function onTypeChange(){
+      if(selectedNode.value){
+        selectedNode.value.type = typeToCategory[selectedNode.value.data.nodeType] || 'default'
+      }
+    }
+    function fitView(){ flowRef.value?.fitView() }
+    function undo(){ elements.value.pop() }
+    function exportJson(){
+      const nodes = elements.value.filter(e=>e.type&&e.data).map(e=>({nodeCode:e.data.nodeCode,nodeName:e.data.label,nodeType:e.data.nodeType,sortNo:parseInt(e.id),nextNodeCode:e.data.nextNodeCode,messageTemplate:e.data.messageTemplate||'',conditionExpr:e.data.conditionExpr||'',nodeConfig:e.data.nodeConfig||'{}',maxRounds:e.data.maxRounds||0}))
+      const edges = elements.value.filter(e=>e.source&&e.target).map((e,i)=>({edgeKey:'EDGE_'+i,sourceNodeCode:elements.value.find(n=>n.id===e.source)?.data?.nodeCode||'',targetNodeCode:elements.value.find(n=>n.id===e.target)?.data?.nodeCode||'',edgeLabel:''}))
+      const json = JSON.stringify({templateName:'工作流模板',description:'',nodes,edges},null,2)
+      navigator.clipboard.writeText(json).then(()=>alert('已复制到剪贴板'))
+      console.log(json)
+    }
+
+    async function saveWorkflow(){
+      exportJson()
+      const token = localStorage.getItem('company_token') || ''
+      try{
+        const r = await fetch('http://localhost:8006/workflow/lobster/template/save',{
+          method:'POST',headers:{'Content-Type':'application/json','Authorization':'Bearer '+token},
+          body:JSON.stringify(JSON.parse(await navigator.clipboard.readText()))
+        })
+        const d = await r.json()
+        alert(d.code===200?'保存成功!':'保存失败: '+d.msg)
+      }catch(e){alert('请先登录系统获取token,或在控制台复制JSON手动保存')}
+    }
+
+    async function aiGenerate(){
+      genResult.value = null
+      genStatus.value = 'submitting'
+      genProgress.value = '正在提交AI生成任务...'
+      
+      const body = {requirement:genReq.value,industryType:genIndustry.value,modelConfig:{modelA:'doubao-lite',modelB:'doubao-lite',modelC:'doubao-lite'}}
+      if(genExisting.value){
+        body.existingWorkflow = genExisting.value
+        body.modifyInstruction = genInstruction.value||'优化工作流结构'
+      }
+      try{
+        /* 第一步: 提交异步任务, 立即返回recordId */
+        const submitRes = await fetch('/workflow/ai-generator/generate',{
+          method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(body)
+        })
+        const submitData = await submitRes.json()
+        if(submitData.code!==200||!submitData.data||!submitData.data.recordId){
+          genStatus.value = 'error'
+          genProgress.value = '提交失败'
+          alert('AI生成任务提交失败')
+          return
+        }
+
+        const recordId = submitData.data.recordId
+        genProgress.value = 'AI正在生成工作流(模型A生成中)...'
+        
+        /* 第二步: 轮询任务状态, 每3秒查询一次, 最多轮询60次(3分钟) */
+        for(let i=0;i<60;i++){
+          await new Promise(r=>setTimeout(r,3000))
+          const pollRes = await fetch('/workflow/ai-generator/result/'+recordId+'/detail')
+          const pollData = await pollRes.json()
+          if(pollData.code===200&&pollData.data){
+            const result = pollData.data
+            if(result.status==='completed'||result.status==='done'){
+              genResult.value = {score:result.qualityScore||'85',details:result.suggestions||''}
+              elements.value = parseWorkflowJson(result.workflowJson || result.nodes || result)
+              genStatus.value = 'done'
+              genProgress.value = 'AI生成完成! (得分:'+(result.qualityScore||85)+')'
+              return
+            }
+            if(result.status==='failed'){
+              genStatus.value = 'error'
+              genProgress.value = '生成失败: '+(result.errorMsg||'未知错误')
+              return
+            }
+            /* 进度更新 */
+            if(i<5) genProgress.value = 'AI正在生成工作流(模型A生成中)...'
+            else if(i<10) genProgress.value = '模型B优化中...'
+            else genProgress.value = '模型C质检评分中...'
+          }
+        }
+        genStatus.value = 'error'
+        genProgress.value = '超时(3分钟),请重试'
+      }catch(e){
+        genStatus.value = 'error'
+        genProgress.value = '请求失败: '+e.message
+        alert('AI生成请求失败: '+e.message)
+      }
+    }
+
+    function importJson(){
+      try{
+        elements.value = parseWorkflowJson(JSON.parse(loadJson.value))
+        showLoad.value = false
+      }catch(e){alert('JSON格式错误: '+e.message)}
+    }
+
+    function parseWorkflowJson(wf){
+      if(typeof wf==='string') wf = JSON.parse(wf)
+      const nodes = (wf.nodes||[]).map((n,i)=>({id:String(i+1),type:typeToCategory[n.nodeType]||'default',position:{x:300,y:50+i*130},data:{label:n.nodeName||n.name||'',nodeCode:n.nodeCode||'',nodeType:n.nodeType||3,nextNodeCode:n.nextNodeCode||'',messageTemplate:n.messageTemplate||'',conditionExpr:n.conditionExpr||'',nodeConfig:typeof n.nodeConfig==='string'?n.nodeConfig:JSON.stringify(n.nodeConfig),maxRounds:n.maxRounds||0}}))
+      const edgeMap = {}
+      nodes.forEach(n=>{if(n.data.nextNodeCode) edgeMap[n.data.nodeCode]=n.data.nextNodeCode})
+      const edges = (wf.edges||[]).map((e,i)=>({id:'e'+i,source:nodes.find(n=>n.data.nodeCode===e.sourceNodeCode)?.id||'',target:nodes.find(n=>n.data.nodeCode===e.targetNodeCode)?.id||'',animated:true}))
+      nodeIdCounter = nodes.length
+      return [...nodes,...edges]
+    }
+
+    return {nodeGroups,allNodes,flowRef,elements,selectedNode,nodeTypes,
+      showGenerate,showLoad,genReq,genIndustry,genExisting,genInstruction,genResult,loadJson,
+      onDragStart,onDrop,onNodeClick,onConnect,onTypeChange,fitView,undo,exportJson,saveWorkflow,aiGenerate,importJson}
+  }
+})
+app.component('vue-flow',VueFlow.default)
+app.component('vue-flow-background',VueFlowBackground.default)
+app.component('vue-flow-minimap',VueFlowMinimap.default)
+app.component('vue-flow-controls',VueFlowControls.default)
+app.mount('#app')
+</script>
+</body>
+</html>

+ 44 - 0
src/api/FastGptExtUserTag.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/FastGptExtUserTag/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/FastGptExtUserTag/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/FastGptExtUserTag',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/FastGptExtUserTag',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/FastGptExtUserTag/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/ad.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/ad/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/ad/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/ad',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/ad',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/ad/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/ad/adDyApi.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/ad/adDyApi/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/ad/adDyApi/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/ad/adDyApi',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/ad/adDyApi',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/ad/adDyApi/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/ad/clickLog.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/ad/clickLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/ad/clickLog/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/ad/clickLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/ad/clickLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/ad/clickLog/' + id,
+    method: 'delete'
+  })
+}

+ 62 - 0
src/api/adv/advertiser.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 分页查询广告商列表
+export function pageAdvertiser(query) {
+  return request({
+    url: '/adv/advertiser/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据ID查询广告商详情
+export function getAdvertiser(id) {
+  return request({
+    url: '/adv/advertiser/' + id,
+    method: 'get'
+  })
+}
+
+// 创建广告商
+export function addAdvertiser(data) {
+  return request({
+    url: '/adv/advertiser',
+    method: 'post',
+    data: data
+  })
+}
+
+// 更新广告商
+export function updateAdvertiser(id, data) {
+  return request({
+    url: '/adv/advertiser/' + id,
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除广告商
+export function delAdvertiser(id) {
+  return request({
+    url: '/adv/advertiser/' + id,
+    method: 'delete'
+  })
+}
+
+// 批量删除广告商
+export function batchDelAdvertiser(ids) {
+  return request({
+    url: '/adv/advertiser/batch',
+    method: 'delete',
+    data: ids
+  })
+}
+
+// 启用/停用广告商
+export function enableAdvertiser(id) {
+  return request({
+    url: '/adv/advertiser/enable/' + id,
+    method: 'post'
+  })
+}
+

+ 70 - 0
src/api/adv/callbackAccount.js

@@ -0,0 +1,70 @@
+import request from '@/utils/request'
+
+// 分页查询回传账号列表
+export function pageCallbackAccount(query) {
+  return request({
+    url: '/adv/callback-account/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据ID查询回传账号详情
+export function getCallbackAccount(id) {
+  return request({
+    url: '/adv/callback-account/' + id,
+    method: 'get'
+  })
+}
+
+// 创建回传账号
+export function addCallbackAccount(data) {
+  return request({
+    url: '/adv/callback-account',
+    method: 'post',
+    data: data
+  })
+}
+
+// 更新回传账号
+export function updateCallbackAccount(id, data) {
+  return request({
+    url: '/adv/callback-account/' + id,
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除回传账号
+export function delCallbackAccount(id) {
+  return request({
+    url: '/adv/callback-account/' + id,
+    method: 'delete'
+  })
+}
+
+// 批量删除回传账号
+export function batchDelCallbackAccount(ids) {
+  return request({
+    url: '/adv/callback-account/batch',
+    method: 'delete',
+    data: ids
+  })
+}
+
+// 查询事件类型
+export function queryEventType(advertiserId) {
+  return request({
+    url: '/adv/callback-account/queryEventType/' + advertiserId,
+    method: 'post'
+  })
+}
+
+// 保存转换事件
+export function saveEventType(id, data) {
+  return request({
+    url: '/adv/callback-account/saveEventType/' + id,
+    method: 'post',
+    data: data
+  })
+}

+ 29 - 0
src/api/adv/channel.js

@@ -0,0 +1,29 @@
+import request from '@/utils/request'
+
+// 查询分组列表
+export function pageProject(data) {
+  return request({
+    url: '/adv/channel/page',
+    method: 'get',
+    params: data
+  })
+}
+
+
+// 新增或更新渠道
+export function addOrUpdateChannel(data) {
+  return request({
+    url: '/adv/channel/addOrUpdate',
+    method: 'post',
+    data: data
+  })
+}
+
+// 批量复制渠道
+export function saveBatchChannel(data) {
+  return request({
+    url: '/adv/channel/saveBatch',
+    method: 'post',
+    data: data
+  })
+}

+ 18 - 0
src/api/adv/configuration.js

@@ -0,0 +1,18 @@
+import request from '@/utils/request'
+
+// 查询配置详情
+export function getConfigDetail() {
+    return request({
+        url: '/adv/config/detail',
+        method: 'get'
+    })
+}
+
+// 新增或修改配置
+export function addOrUpdateConfig(data) {
+    return request({
+        url: '/adv/config/addOrUpdate',
+        method: 'post',
+        data: data
+    })
+}

+ 10 - 0
src/api/adv/conversionLog.js

@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 分页查询回传事件列表
+export function pageConversionLog(query) {
+  return request({
+    url: '/adv/conversion-log/page',
+    method: 'get',
+    params: query
+  })
+}

+ 63 - 0
src/api/adv/domain.js

@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+// 分页查询域名列表
+export function pageDomain(query) {
+  return request({
+    url: '/adv/domains/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据ID查询域名详情
+export function getDomain(id) {
+  return request({
+    url: '/adv/domains/' + id,
+    method: 'get'
+  })
+}
+
+// 新增域名
+export function addDomain(data) {
+  return request({
+    url: '/adv/domains',
+    method: 'post',
+    data: data
+  })
+}
+
+// 更新域名
+export function updateDomain(id, data) {
+  return request({
+    url: '/adv/domains/' + id,
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除域名
+export function delDomain(id) {
+  return request({
+    url: '/adv/domains/' + id,
+    method: 'delete'
+  })
+}
+
+// 批量删除域名
+export function batchDelDomain(ids) {
+  return request({
+    url: '/adv/domains/batch',
+    method: 'delete',
+    data: ids
+  })
+}
+
+// 启用/禁用域名
+export function updateDomainStatus(id, status) {
+  return request({
+    url: '/adv/domains/' + id + '/status',
+    method: 'put',
+    params: { status }
+  })
+}
+

+ 73 - 0
src/api/adv/landingPageTemplate.js

@@ -0,0 +1,73 @@
+import request from '@/utils/request'
+
+// 分页查询模板列表
+export function pageTemplate(query) {
+  return request({
+    url: '/adv/landing-page-templates/page',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+// 根据ID查询模板详情
+export function getTemplate(id) {
+  return request({
+    url: '/adv/landing-page-templates/' + id,
+    method: 'get'
+  })
+}
+
+// 新增模板
+export function addTemplate(data) {
+  return request({
+    url: '/adv/landing-page-templates',
+    method: 'post',
+    data: data
+  })
+}
+
+// 更新模板
+export function updateTemplate(id, data) {
+  return request({
+    url: '/adv/landing-page-templates/' + id,
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除模板
+export function delTemplate(id) {
+  return request({
+    url: '/adv/landing-page-templates/' + id,
+    method: 'delete'
+  })
+}
+
+// 批量删除模板
+export function batchDelTemplate(ids) {
+  return request({
+    url: '/adv/landing-page-templates/batch',
+    method: 'delete',
+    data: ids
+  })
+}
+
+// 启用/禁用模板
+export function updateTemplateStatus(id, status) {
+  return request({
+    url: '/adv/landing-page-templates/enable/' + id,
+    method: 'post',
+    params: { status }
+  })
+}
+
+// 复制模板
+export function copyTemplate(id) {
+  return request({
+    url: '/adv/landing-page-templates/' + id + '/copy',
+    method: 'post'
+  })
+}
+

+ 19 - 0
src/api/adv/project.js

@@ -0,0 +1,19 @@
+import request from '@/utils/request'
+
+// 查询项目列表
+export function pageProject(data) {
+  return request({
+    url: '/adv/project/page',
+    method: 'get',
+    params: data
+  })
+}
+
+// 新增项目
+export function addProject(data) {
+  return request({
+    url: '/adv/project/add',
+    method: 'post',
+    data: data
+  })
+}

+ 54 - 0
src/api/adv/promotionAccount.js

@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+// 分页查询推广账号列表
+export function pagePromotionAccount(query) {
+  return request({
+    url: '/adv/promotion-account/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据ID查询推广账号详情
+export function getPromotionAccount(id) {
+  return request({
+    url: '/adv/promotion-account/' + id,
+    method: 'get'
+  })
+}
+
+// 创建推广账号
+export function addPromotionAccount(data) {
+  return request({
+    url: '/adv/promotion-account',
+    method: 'post',
+    data: data
+  })
+}
+
+// 更新推广账号
+export function updatePromotionAccount(id, data) {
+  return request({
+    url: '/adv/promotion-account/' + id,
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除推广账号
+export function delPromotionAccount(id) {
+  return request({
+    url: '/adv/promotion-account/' + id,
+    method: 'delete'
+  })
+}
+
+// 批量删除推广账号
+export function batchDelPromotionAccount(ids) {
+  return request({
+    url: '/adv/promotion-account/batch',
+    method: 'delete',
+    data: ids
+  })
+}
+

+ 60 - 0
src/api/adv/site.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询站点列表
+export function listSite() {
+  return request({
+    url: '/adv/site/list',
+    method: 'get'
+  })
+}
+
+// 查询站点详情
+export function getSite(id) {
+  return request({
+    url: '/adv/site/' + id,
+    method: 'get'
+  })
+}
+
+// 创建站点
+export function addSite(data) {
+  return request({
+    url: '/adv/site',
+    method: 'post',
+    data: data
+  })
+}
+
+// 更新站点
+export function updateSite(id, data) {
+  return request({
+    url: '/adv/site/' + id,
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除站点
+export function delSite(id) {
+  return request({
+    url: '/adv/site/' + id,
+    method: 'delete'
+  })
+}
+
+// 查询站点统计数据
+export function getSiteStatistics(id) {
+  return request({
+    url: '/adv/site/' + id + '/statistics',
+    method: 'get'
+  })
+}
+
+// 启用/停用站点
+export function enableSite(id) {
+  return request({
+    url: '/adv/site/enable/' + id,
+    method: 'post'
+  })
+}
+

+ 34 - 0
src/api/adv/siteStatistics.js

@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询站点统计列表
+export function pageSiteStatistics(query) {
+  return request({
+    url: '/adv/site-statistics/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询站点统计详情
+export function getSiteStatistics(id) {
+  return request({
+    url: '/adv/site-statistics/' + id,
+    method: 'get'
+  })
+}
+
+// 根据站点ID查询统计
+export function getSiteStatisticsBySiteId(siteId) {
+  return request({
+    url: '/adv/site-statistics/site/' + siteId,
+    method: 'get'
+  })
+}
+
+// 刷新站点统计数据
+export function refreshSiteStatistics(siteId) {
+  return request({
+    url: '/adv/site-statistics/refresh/' + siteId,
+    method: 'post'
+  })
+}

+ 36 - 0
src/api/adv/trackingLink.js

@@ -0,0 +1,36 @@
+import request from '@/utils/request'
+
+// 分页查询监测链接列表
+export function pageTrackingLink(query) {
+  return request({
+    url: '/adv/tracking-link/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询所有监测链接列表(不分页)
+export function listTrackingLink(query) {
+  return request({
+    url: '/adv/tracking-link/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据ID查询监测链接详情
+export function getTrackingLink(id) {
+  return request({
+    url: '/adv/tracking-link/' + id,
+    method: 'get'
+  })
+}
+
+// 根据广告商ID查询监测链接列表
+export function getTrackingLinkByAdvertiser(advertiserId) {
+  return request({
+    url: '/adv/tracking-link/advertiser/' + advertiserId,
+    method: 'get'
+  })
+}
+

+ 44 - 0
src/api/aiChatQuality.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/aiChatQuality/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/aiChatQuality/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/aiChatQuality',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/aiChatQuality',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/aiChatQuality/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/aiProvider.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/aiProvider/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/aiProvider/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/aiProvider',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/aiProvider',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/aiProvider/' + id,
+    method: 'delete'
+  })
+}

+ 53 - 0
src/api/aiSipCall/aiSipCallBizGroup.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询aiSIP外呼技能组列表
+export function listAiSipCallBizGroup(query) {
+  return request({
+    url: '/company/aiSipCall/bizGroup/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询aiSIP外呼技能组详细
+export function getAiSipCallBizGroup(groupId) {
+  return request({
+    url: '/company/aiSipCall/bizGroup/' + groupId,
+    method: 'get'
+  })
+}
+
+// 新增aiSIP外呼技能组
+export function addAiSipCallBizGroup(data) {
+  return request({
+    url: '/company/aiSipCall/bizGroup',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改aiSIP外呼技能组
+export function updateAiSipCallBizGroup(data) {
+  return request({
+    url: '/company/aiSipCall/bizGroup',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除aiSIP外呼技能组
+export function delAiSipCallBizGroup(groupId) {
+  return request({
+    url: '/company/aiSipCall/bizGroup/' + groupId,
+    method: 'delete'
+  })
+}
+
+// 导出aiSIP外呼技能组
+export function exportAiSipCallBizGroup(query) {
+  return request({
+    url: '/company/aiSipCall/bizGroup/export',
+    method: 'get',
+    params: query
+  })
+}

+ 62 - 0
src/api/aiSipCall/aiSipCallGateway.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询aiSIP外呼网关列表
+export function listAiSipCallGateway(query) {
+    return request({
+        url: '/company/aiSipCall/gateway/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询aiSIP外呼网关列表
+export function remoteList(data) {
+    return request({
+        url: '/company/aiSipCall/gateway/remoteList',
+        method: 'post',
+        data: data
+    })
+}
+
+// 查询aiSIP外呼网关详细
+export function getAiSipCallGateway(id) {
+    return request({
+        url: '/company/aiSipCall/gateway/' + id,
+        method: 'get'
+    })
+}
+
+// 新增aiSIP外呼网关
+export function addAiSipCallGateway(data) {
+    return request({
+        url: '/company/aiSipCall/gateway',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改aiSIP外呼网关
+export function updateAiSipCallGateway(data) {
+    return request({
+        url: '/company/aiSipCall/gateway',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除aiSIP外呼网关
+export function delAiSipCallGateway(id) {
+    return request({
+        url: '/company/aiSipCall/gateway/' + id,
+        method: 'delete'
+    })
+}
+
+// 导出aiSIP外呼网关
+export function exportAiSipCallGateway(query) {
+    return request({
+        url: '/company/aiSipCall/gateway/export',
+        method: 'get',
+        params: query
+    })
+}

+ 53 - 0
src/api/aiSipCall/aiSipCallLlmAgentAccount.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询aiSIP外呼大模型列表
+export function listAiSipCallLlmAgentAccount(query) {
+  return request({
+    url: '/company/aiSipCall/llmAgentAccount/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询aiSIP外呼大模型详细
+export function getAiSipCallLlmAgentAccount(id) {
+  return request({
+    url: '/company/aiSipCall/llmAgentAccount/' + id,
+    method: 'get'
+  })
+}
+
+// 新增aiSIP外呼大模型
+export function addAiSipCallLlmAgentAccount(data) {
+  return request({
+    url: '/company/aiSipCall/llmAgentAccount',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改aiSIP外呼大模型
+export function updateAiSipCallLlmAgentAccount(data) {
+  return request({
+    url: '/company/aiSipCall/llmAgentAccount',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除aiSIP外呼大模型
+export function delAiSipCalllLlmAgentAccount(id) {
+  return request({
+    url: '/company/aiSipCall/llmAgentAccount/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出aiSIP外呼大模型
+export function exportAiSipCallLlmAgentAccount(query) {
+  return request({
+    url: '/company/aiSipCall/llmAgentAccount/export',
+    method: 'get',
+    params: query
+  })
+}

+ 88 - 0
src/api/aiSipCall/aiSipCallOutboundCdr.js

@@ -0,0 +1,88 @@
+import request from '@/utils/request'
+
+// 查询aiSIP手动外呼通话记录列表
+export function listOutboundCdr(query) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询aiSIP手动外呼通话记录详细
+export function getOutboundCdr(id) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr/' + id,
+    method: 'get'
+  })
+}
+
+// 新增aiSIP手动外呼通话记录
+export function addOutboundCdr(data) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改aiSIP手动外呼通话记录
+export function updateOutboundCdr(data) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除aiSIP手动外呼通话记录
+export function delOutboundCdr(id) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出aiSIP手动外呼通话记录
+export function exportOutboundCdr(query) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr/export',
+    method: 'get',
+    params: query
+  })
+}
+// 取手动外呼客户沟通信息
+export function getCustCommunicationInfo(phoneNum,callType,uuid) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr/getCustCommunicationInfo?phoneNum=' +  phoneNum + "&callType=" + callType + "&uuid=" + uuid,
+    method: 'get'
+  })
+}
+
+// 新增保存手动外呼沟通记录
+export function addCustcallrecord(data) {
+  return request({
+    url: '/company/aiSipCall/outboundCdr/add/custcallrecord',
+    method: 'post',
+    data: data
+  })
+}
+// 手动同步人工外呼通话记录
+export function manualPull() {
+  return request({
+    url: '/company/aiSipCall/outboundCdr/manualPull',
+    method: 'get'
+  })
+}
+
+/**
+ * 根据 uuid 同步通话记录
+ */
+export function syncByUuid(data) {
+    return request({
+        url: '/company/aiSipCall/outboundCdr/syncByUuid',
+        method: 'post',
+        data: data
+    })
+}
+

+ 61 - 0
src/api/aiSipCall/aiSipCallPhone.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询aiSIP外呼通话记录列表
+export function listAiSipCallPhone(query) {
+  return request({
+    url: '/company/aiSipCall/phone/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询aiSIP外呼通话记录详细
+export function getAiSipCallPhone(id) {
+  return request({
+    url: '/company/aiSipCall/phone/' + id,
+    method: 'get'
+  })
+}
+
+// 新增aiSIP外呼通话记录
+export function addAiSipCallPhone(data) {
+  return request({
+    url: '/company/aiSipCall/phone',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改aiSIP外呼通话记录
+export function updateAiSipCallPhone(data) {
+  return request({
+    url: '/company/aiSipCall/phone',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除aiSIP外呼通话记录
+export function delAiSipCallPhone(id) {
+  return request({
+    url: '/company/aiSipCall/phone/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出aiSIP外呼通话记录
+export function exportAiSipCallPhone(query) {
+  return request({
+    url: '/company/aiSipCall/phone/export',
+    method: 'get',
+    params: query
+  })
+}
+// 同步aiSIP外呼通话记录
+export function manualPull() {
+  return request({
+    url: '/company/aiSipCall/phone/manualPull',
+    method: 'get'
+  })
+}
+

+ 86 - 0
src/api/aiSipCall/aiSipCallTask.js

@@ -0,0 +1,86 @@
+import request from '@/utils/request'
+
+// 查询aiSIP外呼任务列表
+export function listAiSipCallTask(query) {
+  return request({
+    url: '/company/aiSipCall/task/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询aiSIP外呼任务详细
+export function getAiSipCallTask(batchId) {
+  return request({
+    url: '/company/aiSipCall/task/' + batchId,
+    method: 'get'
+  })
+}
+
+// 新增aiSIP外呼任务
+export function addAiSipCallTask(data) {
+  return request({
+    url: '/company/aiSipCall/task',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改aiSIP外呼任务
+export function updateAiSipCallTask(data) {
+  return request({
+    url: '/company/aiSipCall/task',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除aiSIP外呼任务
+export function delAiSipCallTask(batchId) {
+  return request({
+    url: '/company/aiSipCall/task/' + batchId,
+    method: 'delete'
+  })
+}
+
+// 导出aiSIP外呼任务
+export function exportAiSipCallTask(query) {
+  return request({
+    url: '/company/aiSipCall/task/export',
+    method: 'get',
+    params: query
+  })
+}
+// 启动aiSIP外呼任务
+export function startTask(batchId) {
+  return request({
+    url: '/company/aiSipCall/task/startTask/' + batchId,
+    method: 'post'
+  })
+}
+// 暂停aiSIP外呼任务
+export function stopTask(batchId) {
+  return request({
+    url: '/company/aiSipCall/task/stopTask/' + batchId,
+    method: 'post'
+  })
+}
+// 公共导入数据
+export function commonImportExcel(data) {
+  return request({
+    url: '/company/aiSipCall/task/common/importExcel',
+    method: 'post',
+    data: data,
+    headers: {
+      'Content-Type': undefined
+    }
+  })
+}
+// 下载aiSIP外呼模板
+export function downloadTemplateByType(type) {
+  return request({
+    url: '/company/aiSipCall/task/download/template/' + type,
+    method: 'get',
+    responseType: 'blob'
+  })
+}

+ 77 - 0
src/api/aiSipCall/aiSipCallUser.js

@@ -0,0 +1,77 @@
+import request from '@/utils/request'
+
+// 查询sip用户信息列表
+export function listAiSipCallUser(query) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询sip用户信息列表
+export function myCallUser(query) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser/myCallUser',
+    method: 'get',
+    params: query
+  })
+}
+// 查询sip用户信息详细
+export function getAiSipCallUser(userId) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser/' + userId,
+    method: 'get'
+  })
+}
+
+// 新增sip用户信息
+export function addAiSipCallUser(data) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改sip用户信息
+export function updateAiSipCallUser(data) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除sip用户信息
+export function delAiSipCallUser(userId) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser/' + userId,
+    method: 'delete'
+  })
+}
+
+// 导出sip用户信息
+export function exportAiSipCallUser(query) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser/export',
+    method: 'get',
+    params: query
+  })
+}
+// 获取未绑定的分机列表
+export function getUnBindExtnum(query) {
+  return request({
+    url: '/company/aiSipCall/aiSipCallUser/getUnBindExtnum',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询aiSIP工具条基础配置参数
+export function getToolbarBasicParam(data) {
+    return request({
+        url: '/company/aiSipCall/aiSipCallUser/getToolbarBasicParam',
+        method: 'post',
+        data: data
+    })
+}

+ 53 - 0
src/api/aiSipCall/aiSipCallVoiceTtsAliyun.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询aiSIP外呼阿里云音色列表
+export function listAiSipCallVoiceTtsAliyun(query) {
+  return request({
+    url: '/company/aiSipCall/voiceTtsAliyun/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询aiSIP外呼阿里云音色详细
+export function getAiSipCallVoiceTtsAliyun(id) {
+  return request({
+    url: '/company/aiSipCall/voiceTtsAliyun/' + id,
+    method: 'get'
+  })
+}
+
+// 新增aiSIP外呼阿里云音色
+export function addAiSipCallVoiceTtsAliyun(data) {
+  return request({
+    url: '/company/aiSipCall/voiceTtsAliyun',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改aiSIP外呼阿里云音色
+export function updateAiSipCallVoiceTtsAliyun(data) {
+  return request({
+    url: '/company/aiSipCall/voiceTtsAliyun',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除aiSIP外呼阿里云音色
+export function delAiSipCallVoiceTtsAliyun(id) {
+  return request({
+    url: '/company/aiSipCall/voiceTtsAliyun/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出aiSIP外呼阿里云音色
+export function exportAiSipCallVoiceTtsAliyun(query) {
+  return request({
+    url: '/company/aiSipCall/voiceTtsAliyun/export',
+    method: 'get',
+    params: query
+  })
+}

+ 44 - 0
src/api/article.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/article/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/article/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/article',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/article',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/article/' + id,
+    method: 'delete'
+  })
+}

+ 31 - 0
src/api/billing/wallet.js

@@ -0,0 +1,31 @@
+import request from '@/utils/request'
+
+export function getMyWallet() {
+  return request({
+    url: '/api/fee/wallet/me',
+    method: 'get'
+  })
+}
+
+export function getMyBillingDetails(params) {
+  return request({
+    url: '/api/fee/billing/detail/my',
+    method: 'get',
+    params
+  })
+}
+
+export function getMyConsumeRecords(params) {
+  return request({
+    url: '/company/consumeRecord/myList',
+    method: 'get',
+    params
+  })
+}
+
+export function getMyBalance() {
+  return request({
+    url: '/company/balance/my',
+    method: 'get'
+  })
+}

+ 44 - 0
src/api/callRecord.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/callRecord/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/callRecord/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/callRecord',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/callRecord',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/callRecord/' + id,
+    method: 'delete'
+  })
+}

+ 53 - 0
src/api/callRecord/callRecord.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询外呼记录质检列表
+export function listApi(query) {
+  return request({
+    url: '/callRecord/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询外呼记录质检详细
+export function getApi(id) {
+  return request({
+    url: '/callRecord/' + id,
+    method: 'get'
+  })
+}
+
+// 新增外呼记录质检
+export function addApi(data) {
+  return request({
+    url: '/callRecord',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改外呼记录质检
+export function updateApi(data) {
+  return request({
+    url: '/callRecord',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除外呼记录质检
+export function delApi(id) {
+  return request({
+    url: '/callRecord/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出外呼记录质检
+export function exportApi(query) {
+  return request({
+    url: '/callRecord/export',
+    method: 'post',
+    params: query
+  })
+}

+ 44 - 0
src/api/company.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/company/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/company/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/company',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/company',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/company/' + id,
+    method: 'delete'
+  })
+}

+ 76 - 0
src/api/company/addwx.js

@@ -0,0 +1,76 @@
+import request from '@/utils/request'
+
+export function listAddwx(query) {
+  return request({
+    url: '/company/addwxLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function listAllAddWx(query) {
+  return request({
+    url: '/company/addwxLog/listAll',
+    method: 'get',
+    params: query
+  })
+}
+
+export function exportAddwx(query) {
+  return request({
+    url: '/company/addwxLog/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除调用日志_加微信
+export function delCompanyClient(logId) {
+  return request({
+    url: '/company/addwxLog/' + logId,
+    method: 'delete'
+  })
+}
+
+// // 查询调用日志_加微信详细
+// export function getAddwx(logId) {
+//   return request({
+//     url: '/company/addwx/' + logId,
+//     method: 'get'
+//   })
+// }
+
+// // 新增调用日志_加微信
+// export function addAddwx(data) {
+//   return request({
+//     url: '/company/addwx',
+//     method: 'post',
+//     data: data
+//   })
+// }
+
+// // 修改调用日志_加微信
+// export function updateAddwx(data) {
+//   return request({
+//     url: '/company/addwx',
+//     method: 'put',
+//     data: data
+//   })
+// }
+
+// // 删除调用日志_加微信
+// export function delAddwx(logId) {
+//   return request({
+//     url: '/company/addwx/' + logId,
+//     method: 'delete'
+//   })
+// }
+
+// // 导出调用日志_加微信
+// export function exportAddwx(query) {
+//   return request({
+//     url: '/company/addwx/export',
+//     method: 'get',
+//     params: query
+//   })
+// }

+ 8 - 0
src/api/company/aiCall.js

@@ -0,0 +1,8 @@
+import request from '@/utils/request'
+
+export function all() {
+    return request({
+        url: '/aicall/kbcat/all',
+        method: 'get'
+    })
+}

+ 49 - 0
src/api/company/aiModel.js

@@ -0,0 +1,49 @@
+import request from '@/utils/request'
+
+export function list(data) {
+    return request({
+        url: '/aicall/account/list',
+        method: 'post',
+        data: data
+    })
+}
+
+
+export function add(data) {
+    return request({
+        url: '/aicall/account/add',
+        method: 'post',
+        data: data
+    })
+}
+
+export function update(data) {
+    return request({
+        url: '/aicall/account/edit',
+        method: 'post',
+        data: data
+    })
+}
+
+
+export function remove(ids) {
+    return request({
+        url: '/aicall/account/remove',
+        method: 'post',
+        params: { ids: ids }
+    })
+}
+
+export function copy(id) {
+    return request({
+        url: `/aicall/account/copy/${id}`,
+        method: 'get'
+    })
+}
+
+export function getCidConfig() {
+    return request({
+        url: '/aicall/account/getCidConfig',
+        method: 'get'
+    })
+}

+ 8 - 0
src/api/company/aiProvider.js

@@ -0,0 +1,8 @@
+import request from '@/utils/request'
+
+export function all() {
+    return request({
+        url: '/aicall/provider/all',
+        method: 'get'
+    })
+}

+ 43 - 0
src/api/company/aiWorkflow.js

@@ -0,0 +1,43 @@
+import request from '@/utils/request'
+
+/**
+ * 获取我的节点语音列表(分页)
+ * @param {Object} query - 查询参数
+ * @param {number} query.pageNum - 页码
+ * @param {number} query.pageSize - 每页数量
+ * @param {string} query.workflowName - 工作流名称(可选)
+ * @param {string} query.nodeName - 节点名称(可选)
+ * @param {string} query.nodeType - 节点类型(可选)
+ */
+export function getMyNodes(query) {
+  return request({
+    url: '/company/aiWorkflow/myNodes',
+    method: 'get',
+    params: query
+  })
+}
+
+/**
+ * 上传节点语音
+ * @param {Object} data - 上传数据
+ * @param {number} data.nodeId - 节点ID
+ * @param {string} data.voiceUrl - 语音URL
+ */
+export function uploadNodeVoice(data) {
+  return request({
+    url: '/company/aiWorkflow/uploadVoice',
+    method: 'post',
+    data: data
+  })
+}
+
+/**
+ * 删除节点语音
+ * @param {number} nodeId - 节点ID
+ */
+export function deleteNodeVoice(nodeId) {
+  return request({
+    url: '/company/aiWorkflow/deleteVoice/' + nodeId,
+    method: 'delete'
+  })
+}

+ 88 - 0
src/api/company/callphone.js

@@ -0,0 +1,88 @@
+import request from '@/utils/request'
+
+// 查询调用日志_ai打电话列表
+export function listCallphone(query) {
+  return request({
+    url: '/company/callphoneLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function groupList(query) {
+    return request({
+        url: '/company/callphoneLog/groupList',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询调用日志_ai打电话详细
+export function listCallPhoneByRoboticId(query) {
+    return request({
+        url: '/company/callphoneLog/listByCallerIdAndRoboticId',
+        method: 'get',
+        params: query
+    })
+}
+
+
+// 获取统计数据
+export function getCallPhoneLogCount() {
+    return request({
+        url: '/company/callphoneLog/count',
+        method: 'get'
+    })
+}
+
+// 导出调用日志_ai打电话
+export function exportCallphone(query) {
+    return request({
+        url: '/company/callphoneLog/export',
+        method: 'get',
+        params: query
+    })
+}
+
+// // 查询调用日志_ai打电话详细
+// export function getCallphone(logId) {
+//   return request({
+//     url: '/company/callphone/' + logId,
+//     method: 'get'
+//   })
+// }
+
+// // 新增调用日志_ai打电话
+// export function addCallphone(data) {
+//   return request({
+//     url: '/company/callphone',
+//     method: 'post',
+//     data: data
+//   })
+// }
+
+// // 修改调用日志_ai打电话
+// export function updateCallphone(data) {
+//   return request({
+//     url: '/company/callphone',
+//     method: 'put',
+//     data: data
+//   })
+// }
+
+// // 删除调用日志_ai打电话
+// export function delCallphone(logId) {
+//   return request({
+//     url: '/company/callphone/' + logId,
+//     method: 'delete'
+//   })
+// }
+
+// // 导出调用日志_ai打电话
+// export function exportCallphone(query) {
+//   return request({
+//     url: '/company/callphone/export',
+//     method: 'get',
+//     params: query
+//   })
+// }

+ 27 - 0
src/api/company/companyApply.js

@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 查询更换会员归属申请列表
+export function listApply(query) {
+  return request({
+    url: '/company/apply/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询更换会员归属申请详细
+export function getApply(id) {
+  return request({
+    url: '/company/apply/' + id,
+    method: 'get'
+  })
+}
+
+// 审核更换会员归属申请
+export function auditApply(data) {
+  return request({
+    url: '/company/apply/audit',
+    method: 'post',
+    data: data
+  })
+}

+ 0 - 61
src/api/company/companyDeduct.js

@@ -1,61 +0,0 @@
-import request from '@/utils/request'
-
-// 查询扣款列表
-export function listCompanyDeduct(query) {
-  return request({
-    url: '/company/companyDeduct/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询扣款详细
-export function getCompanyDeduct(deductId) {
-  return request({
-    url: '/company/companyDeduct/' + deductId,
-    method: 'get'
-  })
-}
-
-// 新增扣款
-export function addCompanyDeduct(data) {
-  return request({
-    url: '/company/companyDeduct',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改扣款
-export function updateCompanyDeduct(data) {
-  return request({
-    url: '/company/companyDeduct',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除扣款
-export function delCompanyDeduct(deductId) {
-  return request({
-    url: '/company/companyDeduct/' + deductId,
-    method: 'delete'
-  })
-}
-
-// 导出扣款
-export function exportCompanyDeduct(query) {
-  return request({
-    url: '/company/companyDeduct/export',
-    method: 'get',
-    params: query
-  })
-}
-
-export function audit(data) {
-  return request({
-    url: '/company/companyDeduct/audit',
-    method: 'post',
-    data: data
-  })
-}

+ 13 - 30
src/api/company/companyDept.js

@@ -1,7 +1,15 @@
 import request from '@/utils/request'
 
+// 查询部门下拉树结构
+export function treeselect() {
+  return request({
+    url: '/company/companyDept/treeselect',
+    method: 'get'
+  })
+}
+
 // 查询部门列表
-export function listCompanyDept(query) {
+export function listDept(query) {
   return request({
     url: '/company/companyDept/list',
     method: 'get',
@@ -10,7 +18,7 @@ export function listCompanyDept(query) {
 }
 
 // 查询部门详细
-export function getCompanyDept(deptId) {
+export function getDept(deptId) {
   return request({
     url: '/company/companyDept/' + deptId,
     method: 'get'
@@ -18,7 +26,7 @@ export function getCompanyDept(deptId) {
 }
 
 // 新增部门
-export function addCompanyDept(data) {
+export function addDept(data) {
   return request({
     url: '/company/companyDept',
     method: 'post',
@@ -27,7 +35,7 @@ export function addCompanyDept(data) {
 }
 
 // 修改部门
-export function updateCompanyDept(data) {
+export function updateDept(data) {
   return request({
     url: '/company/companyDept',
     method: 'put',
@@ -36,34 +44,9 @@ export function updateCompanyDept(data) {
 }
 
 // 删除部门
-export function delCompanyDept(deptId) {
+export function delDept(deptId) {
   return request({
     url: '/company/companyDept/' + deptId,
     method: 'delete'
   })
 }
-
-// 导出部门
-export function exportCompanyDept(query) {
-  return request({
-    url: '/company/companyDept/export',
-    method: 'get',
-    params: query
-  })
-}
-
-export function treeselect(query) {
-  return request({
-    url: '/company/companyDept/treeselect',
-    method: 'get',
-    params: query
-  })
-}
-
-export function treeselectByCompanyId(query) {
-  return request({
-    url: '/company/companyDept/treeselectByCompanyId/' + query,
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 68
src/api/company/companyDomain.js

@@ -1,68 +0,0 @@
-import request from '@/utils/request'
-
-// 查询域名管路列表
-export function listCompanyDomain(query) {
-  return request({
-    url: '/company/companyDomain/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询域名管路详细
-export function getCompanyDomain(id) {
-  return request({
-    url: '/company/companyDomain/' + id,
-    method: 'get'
-  })
-}
-
-// 新增域名管路
-export function addCompanyDomain(data) {
-  return request({
-    url: '/company/companyDomain',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改域名管路
-export function updateCompanyDomain(data) {
-  return request({
-    url: '/company/companyDomain',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除域名管路
-export function delCompanyDomain(id) {
-  return request({
-    url: '/company/companyDomain/' + id,
-    method: 'delete'
-  })
-}
-
-// 导出域名管路
-export function exportCompanyDomain(query) {
-  return request({
-    url: '/company/companyDomain/export',
-    method: 'get',
-    params: query
-  })
-}
-
-export function domainBatchBinding(data){
-  return request({
-    url: '/company/companyDomain/domainBatchBinding',
-    method: 'post',
-    data: data
-  })
-}
-
-export function exportTemplate(){
-  return request({
-    url: '/company/companyDomain/exportTemplate',
-    method: 'get',
-  })
-}

+ 1 - 7
src/api/company/companyDomainBind.js

@@ -1,6 +1,5 @@
 import request from '@/utils/request'
 
-// 查询域名绑定销售公司列表
 export function listCompanyDomainBind(query) {
   return request({
     url: '/company/companyDomainBind/list',
@@ -9,7 +8,6 @@ export function listCompanyDomainBind(query) {
   })
 }
 
-// 查询域名绑定销售公司详细
 export function getCompanyDomainBind(id) {
   return request({
     url: '/company/companyDomainBind/' + id,
@@ -17,7 +15,6 @@ export function getCompanyDomainBind(id) {
   })
 }
 
-// 新增域名绑定销售公司
 export function addCompanyDomainBind(data) {
   return request({
     url: '/company/companyDomainBind',
@@ -26,7 +23,6 @@ export function addCompanyDomainBind(data) {
   })
 }
 
-// 修改域名绑定销售公司
 export function updateCompanyDomainBind(data) {
   return request({
     url: '/company/companyDomainBind',
@@ -35,7 +31,6 @@ export function updateCompanyDomainBind(data) {
   })
 }
 
-// 删除域名绑定销售公司
 export function delCompanyDomainBind(id) {
   return request({
     url: '/company/companyDomainBind/' + id,
@@ -43,7 +38,6 @@ export function delCompanyDomainBind(id) {
   })
 }
 
-// 导出域名绑定销售公司
 export function exportCompanyDomainBind(query) {
   return request({
     url: '/company/companyDomainBind/export',
@@ -52,7 +46,7 @@ export function exportCompanyDomainBind(query) {
   })
 }
 
-export function domainBatchBinding(data){
+export function domainBatchBinding(data) {
   return request({
     url: '/company/companyDomainBind/domainBatchBinding',
     method: 'post',

+ 0 - 53
src/api/company/companyLogininfor.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询系统访问记录列表
-export function listCompanyLogininfor(query) {
-  return request({
-    url: '/company/companyLogininfor/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询系统访问记录详细
-export function getCompanyLogininfor(infoId) {
-  return request({
-    url: '/company/companyLogininfor/' + infoId,
-    method: 'get'
-  })
-}
-
-// 新增系统访问记录
-export function addCompanyLogininfor(data) {
-  return request({
-    url: '/company/companyLogininfor',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改系统访问记录
-export function updateCompanyLogininfor(data) {
-  return request({
-    url: '/company/companyLogininfor',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除系统访问记录
-export function delCompanyLogininfor(infoId) {
-  return request({
-    url: '/company/companyLogininfor/' + infoId,
-    method: 'delete'
-  })
-}
-
-// 导出系统访问记录
-export function exportCompanyLogininfor(query) {
-  return request({
-    url: '/company/companyLogininfor/export',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 53
src/api/company/companyRoleDept.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询角色和部门关联列表
-export function listCompanyRoleDept(query) {
-  return request({
-    url: '/company/companyRoleDept/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询角色和部门关联详细
-export function getCompanyRoleDept(roleId) {
-  return request({
-    url: '/company/companyRoleDept/' + roleId,
-    method: 'get'
-  })
-}
-
-// 新增角色和部门关联
-export function addCompanyRoleDept(data) {
-  return request({
-    url: '/company/companyRoleDept',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改角色和部门关联
-export function updateCompanyRoleDept(data) {
-  return request({
-    url: '/company/companyRoleDept',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除角色和部门关联
-export function delCompanyRoleDept(roleId) {
-  return request({
-    url: '/company/companyRoleDept/' + roleId,
-    method: 'delete'
-  })
-}
-
-// 导出角色和部门关联
-export function exportCompanyRoleDept(query) {
-  return request({
-    url: '/company/companyRoleDept/export',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 53
src/api/company/companyRoleMenu.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询角色和菜单关联列表
-export function listCompanyRoleMenu(query) {
-  return request({
-    url: '/company/companyRoleMenu/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询角色和菜单关联详细
-export function getCompanyRoleMenu(roleId) {
-  return request({
-    url: '/company/companyRoleMenu/' + roleId,
-    method: 'get'
-  })
-}
-
-// 新增角色和菜单关联
-export function addCompanyRoleMenu(data) {
-  return request({
-    url: '/company/companyRoleMenu',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改角色和菜单关联
-export function updateCompanyRoleMenu(data) {
-  return request({
-    url: '/company/companyRoleMenu',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除角色和菜单关联
-export function delCompanyRoleMenu(roleId) {
-  return request({
-    url: '/company/companyRoleMenu/' + roleId,
-    method: 'delete'
-  })
-}
-
-// 导出角色和菜单关联
-export function exportCompanyRoleMenu(query) {
-  return request({
-    url: '/company/companyRoleMenu/export',
-    method: 'get',
-    params: query
-  })
-}

+ 64 - 0
src/api/company/companyUserCard.js

@@ -0,0 +1,64 @@
+import request from '@/utils/request'
+
+// 查询card列表
+export function listCard(query) {
+  return request({
+    url: '/company/companUsercard/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询card详细
+export function getCard(id) {
+  return request({
+    url: '/company/companUsercard/' + id,
+    method: 'get'
+  })
+}
+
+// 新增card
+export function addCard(data) {
+  return request({
+    url: '/company/companUsercard',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改card
+export function updateCard(data) {
+  return request({
+    url: '/company/companUsercard',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除card
+export function delCard(id) {
+  return request({
+    url: '/company/companUsercard/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出card
+export function exportCard(query) {
+  return request({
+      url: '/company/companUsercard/export',
+      method: 'get',
+      params: query
+  })
+}
+
+
+//群发短信
+export function sendCustomerBatchMsg(data) {
+    return request({
+        url: '/company/companUsercard/sendCustomerBatchMsg',
+        method: 'post',
+        data: data
+    })
+ }
+ 

+ 0 - 53
src/api/company/companyUserPost.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询用户与岗位关联列表
-export function listCompanyUserPost(query) {
-  return request({
-    url: '/company/companyUserPost/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询用户与岗位关联详细
-export function getCompanyUserPost(userId) {
-  return request({
-    url: '/company/companyUserPost/' + userId,
-    method: 'get'
-  })
-}
-
-// 新增用户与岗位关联
-export function addCompanyUserPost(data) {
-  return request({
-    url: '/company/companyUserPost',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改用户与岗位关联
-export function updateCompanyUserPost(data) {
-  return request({
-    url: '/company/companyUserPost',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除用户与岗位关联
-export function delCompanyUserPost(userId) {
-  return request({
-    url: '/company/companyUserPost/' + userId,
-    method: 'delete'
-  })
-}
-
-// 导出用户与岗位关联
-export function exportCompanyUserPost(query) {
-  return request({
-    url: '/company/companyUserPost/export',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 53
src/api/company/companyUserRole.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询用户和角色关联列表
-export function listCompanyUserRole(query) {
-  return request({
-    url: '/company/companyUserRole/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询用户和角色关联详细
-export function getCompanyUserRole(userId) {
-  return request({
-    url: '/company/companyUserRole/' + userId,
-    method: 'get'
-  })
-}
-
-// 新增用户和角色关联
-export function addCompanyUserRole(data) {
-  return request({
-    url: '/company/companyUserRole',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改用户和角色关联
-export function updateCompanyUserRole(data) {
-  return request({
-    url: '/company/companyUserRole',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除用户和角色关联
-export function delCompanyUserRole(userId) {
-  return request({
-    url: '/company/companyUserRole/' + userId,
-    method: 'delete'
-  })
-}
-
-// 导出用户和角色关联
-export function exportCompanyUserRole(query) {
-  return request({
-    url: '/company/companyUserRole/export',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 53
src/api/company/companyVoice.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询企业通话列表
-export function listCompanyVoice(query) {
-  return request({
-    url: '/company/companyVoice/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询企业通话详细
-export function getCompanyVoice(voiceId) {
-  return request({
-    url: '/company/companyVoice/' + voiceId,
-    method: 'get'
-  })
-}
-
-// 新增企业通话
-export function addCompanyVoice(data) {
-  return request({
-    url: '/company/companyVoice',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改企业通话
-export function updateCompanyVoice(data) {
-  return request({
-    url: '/company/companyVoice',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除企业通话
-export function delCompanyVoice(voiceId) {
-  return request({
-    url: '/company/companyVoice/' + voiceId,
-    method: 'delete'
-  })
-}
-
-// 导出企业通话
-export function exportCompanyVoice(query) {
-  return request({
-    url: '/company/companyVoice/export',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 53
src/api/company/companyVoiceBlacklist.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询黑名单列表
-export function listCompanyVoiceBlacklist(query) {
-  return request({
-    url: '/company/companyVoiceBlacklist/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询黑名单详细
-export function getCompanyVoiceBlacklist(blacklistId) {
-  return request({
-    url: '/company/companyVoiceBlacklist/' + blacklistId,
-    method: 'get'
-  })
-}
-
-// 新增黑名单
-export function addCompanyVoiceBlacklist(data) {
-  return request({
-    url: '/company/companyVoiceBlacklist',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改黑名单
-export function updateCompanyVoiceBlacklist(data) {
-  return request({
-    url: '/company/companyVoiceBlacklist',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除黑名单
-export function delCompanyVoiceBlacklist(blacklistId) {
-  return request({
-    url: '/company/companyVoiceBlacklist/' + blacklistId,
-    method: 'delete'
-  })
-}
-
-// 导出黑名单
-export function exportCompanyVoiceBlacklist(query) {
-  return request({
-    url: '/company/companyVoiceBlacklist/export',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 53
src/api/company/companyVoiceConfig.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询呼叫频率配置列表
-export function listCompanyVoiceConfig(query) {
-  return request({
-    url: '/company/companyVoiceConfig/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询呼叫频率配置详细
-export function getCompanyVoiceConfig(configId) {
-  return request({
-    url: '/company/companyVoiceConfig/' + configId,
-    method: 'get'
-  })
-}
-
-// 新增呼叫频率配置
-export function addCompanyVoiceConfig(data) {
-  return request({
-    url: '/company/companyVoiceConfig',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改呼叫频率配置
-export function updateCompanyVoiceConfig(data) {
-  return request({
-    url: '/company/companyVoiceConfig',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除呼叫频率配置
-export function delCompanyVoiceConfig(configId) {
-  return request({
-    url: '/company/companyVoiceConfig/' + configId,
-    method: 'delete'
-  })
-}
-
-// 导出呼叫频率配置
-export function exportCompanyVoiceConfig(query) {
-  return request({
-    url: '/company/companyVoiceConfig/export',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 61
src/api/company/companyVoiceMobile.js

@@ -1,61 +0,0 @@
-import request from '@/utils/request'
-
-// 查询中间号列表
-export function listCompanyVoiceMobile(query) {
-  return request({
-    url: '/company/companyVoiceMobile/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询中间号详细
-export function getCompanyVoiceMobile(mobileId) {
-  return request({
-    url: '/company/companyVoiceMobile/' + mobileId,
-    method: 'get'
-  })
-}
-
-// 新增中间号
-export function addCompanyVoiceMobile(data) {
-  return request({
-    url: '/company/companyVoiceMobile',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改中间号
-export function updateCompanyVoiceMobile(data) {
-  return request({
-    url: '/company/companyVoiceMobile',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除中间号
-export function delCompanyVoiceMobile(mobileId) {
-  return request({
-    url: '/company/companyVoiceMobile/' + mobileId,
-    method: 'delete'
-  })
-}
-
-// 导出中间号
-export function exportCompanyVoiceMobile(query) {
-  return request({
-    url: '/company/companyVoiceMobile/export',
-    method: 'get',
-    params: query
-  })
-}
-
-// 下载用户导入模板
-export function importTemplate() {
-  return request({
-    url: '/company/companyVoiceMobile/importTemplate',
-    method: 'get'
-  })
-}

+ 0 - 53
src/api/company/companyVoicePackage.js

@@ -1,53 +0,0 @@
-import request from '@/utils/request'
-
-// 查询套餐列表
-export function listCompanyVoicePackage(query) {
-  return request({
-    url: '/company/companyVoicePackage/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询套餐详细
-export function getCompanyVoicePackage(packageId) {
-  return request({
-    url: '/company/companyVoicePackage/' + packageId,
-    method: 'get'
-  })
-}
-
-// 新增套餐
-export function addCompanyVoicePackage(data) {
-  return request({
-    url: '/company/companyVoicePackage',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改套餐
-export function updateCompanyVoicePackage(data) {
-  return request({
-    url: '/company/companyVoicePackage',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除套餐
-export function delCompanyVoicePackage(packageId) {
-  return request({
-    url: '/company/companyVoicePackage/' + packageId,
-    method: 'delete'
-  })
-}
-
-// 导出套餐
-export function exportCompanyVoicePackage(query) {
-  return request({
-    url: '/company/companyVoicePackage/export',
-    method: 'get',
-    params: query
-  })
-}

+ 53 - 0
src/api/company/companyVoiceRoboticCallBlacklist.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询外呼黑名单列表
+export function listVoiceRoboticCallBlacklist(query) {
+    return request({
+        url: '/company/companyVoiceRoboticCallBlacklist/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询外呼黑名单详情
+export function getVoiceRoboticCallBlacklist(id) {
+    return request({
+        url: '/company/companyVoiceRoboticCallBlacklist/' + id,
+        method: 'get'
+    })
+}
+
+// 新增外呼黑名单
+export function addVoiceRoboticCallBlacklist(data) {
+    return request({
+        url: '/company/companyVoiceRoboticCallBlacklist',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改外呼黑名单
+export function updateVoiceRoboticCallBlacklist(data) {
+    return request({
+        url: '/company/companyVoiceRoboticCallBlacklist',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除外呼黑名单
+export function delVoiceRoboticCallBlacklist(id) {
+    return request({
+        url: '/company/companyVoiceRoboticCallBlacklist/' + id,
+        method: 'delete'
+    })
+}
+
+// 修改状态
+export function changeVoiceRoboticCallBlacklistStatus(data) {
+    return request({
+        url: '/company/companyVoiceRoboticCallBlacklist/changeStatus',
+        method: 'put',
+        data: data
+    })
+}

+ 149 - 0
src/api/company/companyWorkflow.js

@@ -0,0 +1,149 @@
+import request from '@/utils/request'
+
+// 查询AI工作流列表
+export function listWorkflow(query) {
+  return request({
+    url: '/company/companyWorkflow/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function myListWorkflow(query) {
+    return request({
+        url: '/company/companyWorkflow/myList',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询AI工作流详细
+export function getWorkflow(workflowId) {
+  return request({
+    url: '/company/companyWorkflow/' + workflowId,
+    method: 'get'
+  })
+}
+
+// 新增AI工作流
+export function addWorkflow(data) {
+  return request({
+    url: '/company/companyWorkflow/save',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI工作流
+export function updateWorkflow(data) {
+  return request({
+    url: '/company/companyWorkflow/save',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI工作流状态
+export function updateWorkflowStatus(workflowId, status) {
+  return request({
+    url: '/company/companyWorkflow/status/' + workflowId + '/' + status,
+    method: 'put'
+  })
+}
+
+// 删除AI工作流
+export function delWorkflow(workflowId) {
+  return request({
+    url: '/company/companyWorkflow/' + workflowId,
+    method: 'delete'
+  })
+}
+
+// 复制AI工作流
+export function copyWorkflow(workflowId) {
+  return request({
+    url: '/company/companyWorkflow/copy/' + workflowId,
+    method: 'post'
+  })
+}
+
+// 获取节点类型列表
+export function getNodeTypes() {
+  return request({
+    url: '/company/companyWorkflow/nodeTypes',
+    method: 'get'
+  })
+}
+
+// 导出AI工作流
+export function exportWorkflow(query) {
+  return request({
+    url: '/company/companyWorkflow/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据workflowId获取绑定的销售列表
+export function getBindCompanyUserByWorkflowId(workflowId) {
+  return request({
+    url: '/company/companyWorkflow/getBindCompanyUserByWorkflowId/' + workflowId,
+    method: 'get'
+  })
+}
+
+// 获取销售列表
+export function listCompanyUser() {
+  return request({
+    url: '/company/companyWorkflow/listCompanyUser',
+    method: 'get'
+  })
+}
+
+// 检查销售是否已被绑定
+export function checkCompanyUserBeUsed(companyUserId) {
+  return request({
+    url: '/company/companyWorkflow/checkCompanyUserBeUsed/' + companyUserId,
+    method: 'get'
+  })
+}
+
+// 更新工作流绑定销售
+export function updateWorkflowBindCompanyUser(data) {
+  return request({
+    url: '/company/companyWorkflow/updateWorkflowBindCompanyUser',
+    method: 'post',
+    data: data
+  })
+}
+// 更新工作流绑定销售
+export function optionList() {
+  return request({
+    url: '/company/companyWorkflow/optionList',
+    method: 'get'
+  })
+}
+
+//查看工作流历史版本
+export function getWorkflowVersionList(workflowId) {
+    return request({
+        url: '/company/companyWorkflow/versionList/' + workflowId,
+        method: 'get'
+    })
+}
+
+// 查询版本详情
+export function getWorkflowVersionDetail(versionId) {
+    return request({
+        url: '/company/companyWorkflow/versionDetail/' + versionId,
+        method: 'get'
+    })
+}
+
+// 回退到指定版本
+export function rollbackWorkflowVersion(versionId) {
+    return request({
+        url: '/company/companyWorkflow/versionRollback/' + versionId,
+        method: 'post'
+    })
+}

+ 33 - 0
src/api/company/easyCall.js

@@ -0,0 +1,33 @@
+import request from '@/utils/request'
+
+// 获取外呼网关列表(外呼线路)
+export function getGatewayList() {
+  return request({
+    url: '/company/easyCall/gateway/list',
+    method: 'get'
+  })
+}
+
+// 获取大模型配置列表(大模型底座)
+export function getLlmAccountList() {
+  return request({
+    url: '/company/easyCall/llmAccount/list',
+    method: 'get'
+  })
+}
+
+// 获取音色列表
+export function getVoiceCodeList() {
+  return request({
+    url: '/company/easyCall/voiceCode/list',
+    method: 'get'
+  })
+}
+
+// 获取技能组列表(tts厂商)
+export function getBusiGroupList() {
+  return request({
+    url: '/company/easyCall/busiGroup/list',
+    method: 'get'
+  })
+}

+ 27 - 0
src/api/company/firstDiagnosis.js

@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 新增初诊单
+export function addFsFirstDiagnosis(data) {
+  return request({
+    url: '/his/diagnosis',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改初诊单
+export function updateFsFirstDiagnosis(data) {
+  return request({
+    url: '/his/diagnosis',
+    method: 'put',
+    data: data
+  })
+}
+
+// 查询初诊单详细
+export function getFsFirstDiagnosis(userId) {
+  return request({
+    url: '/his/diagnosis/' + userId,
+    method: 'get'
+  })
+}

+ 162 - 0
src/api/company/knowledge.js

@@ -0,0 +1,162 @@
+import request from '@/utils/request'
+
+// 知识库API
+export const knowledgeApi = {
+  // 获取知识库列表
+  getList: (params) => {
+    return request({
+      url: '/knowledge/base/list',
+      method: 'get',
+      params
+    })
+  },
+
+  // 搜索知识
+  search: (keyword, industryType) => {
+    return request({
+      url: '/knowledge/base/search',
+      method: 'get',
+      params: { keyword, industryType }
+    })
+  },
+
+  // 根据ID获取
+  getById: (id) => {
+    return request({
+      url: `/knowledge/base/${id}`,
+      method: 'get'
+    })
+  },
+
+  // 创建知识
+  create: (data) => {
+    return request({
+      url: '/knowledge/base',
+      method: 'post',
+      data
+    })
+  },
+
+  // 更新知识
+  update: (id, data) => {
+    return request({
+      url: `/knowledge/base/${id}`,
+      method: 'put',
+      data
+    })
+  },
+
+  // 删除知识
+  delete: (id) => {
+    return request({
+      url: `/knowledge/base/${id}`,
+      method: 'delete'
+    })
+  },
+
+  // 审核知识
+  audit: (id, auditStatus, comment) => {
+    return request({
+      url: `/knowledge/base/${id}/audit`,
+      method: 'post',
+      params: { auditStatus, comment }
+    })
+  },
+
+  // 同步到FastGPT
+  syncToFastGpt: (id) => {
+    return request({
+      url: `/knowledge/base/${id}/sync-fastgpt`,
+      method: 'post'
+    })
+  },
+
+  // 从聊天记录提取知识
+  extractFromChat: (chatRecordId, question, answer) => {
+    return request({
+      url: '/knowledge/base/extract-from-chat',
+      method: 'post',
+      params: { chatRecordId, question, answer }
+    })
+  },
+
+  // 双知识库校验
+  dualValidation: (query, fastgptResult) => {
+    return request({
+      url: '/knowledge/base/dual-validation',
+      method: 'post',
+      params: { query, fastgptResult }
+    })
+  }
+}
+
+// 知识审核API
+export const knowledgeAuditApi = {
+  // 获取待审核列表
+  getPendingList: () => {
+    return request({
+      url: '/knowledge/audit/pending',
+      method: 'get'
+    })
+  },
+
+  // 获取已审核列表
+  getAuditedList: () => {
+    return request({
+      url: '/knowledge/audit/audited',
+      method: 'get'
+    })
+  },
+
+  // 获取优化建议列表
+  getSuggestionList: (params) => {
+    return request({
+      url: '/knowledge/suggestion/list',
+      method: 'get',
+      params
+    })
+  },
+
+  // 通过审核
+  approve: (id, comment) => {
+    return request({
+      url: `/knowledge/audit/${id}/approve`,
+      method: 'post',
+      params: { comment }
+    })
+  },
+
+  // 驳回审核
+  reject: (id, comment) => {
+    return request({
+      url: `/knowledge/audit/${id}/reject`,
+      method: 'post',
+      params: { comment }
+    })
+  },
+
+  // 批量审核
+  batchAudit: (data) => {
+    return request({
+      url: '/knowledge/audit/batch',
+      method: 'post',
+      data
+    })
+  },
+
+  // 应用优化建议
+  applySuggestion: (id) => {
+    return request({
+      url: `/knowledge/suggestion/${id}/apply`,
+      method: 'post'
+    })
+  },
+
+  // 忽略优化建议
+  ignoreSuggestion: (id) => {
+    return request({
+      url: `/knowledge/suggestion/${id}/ignore`,
+      method: 'post'
+    })
+  }
+}

+ 39 - 0
src/api/company/pay.js

@@ -0,0 +1,39 @@
+import request from '@/utils/request'
+
+
+
+export function weixinPay(query) {
+  return request({
+    url: '/pay/wxPay/qrPay',
+    method: 'get',
+    params: query
+  })
+}
+
+/**
+ * 微信二维码支付
+ * @param query
+ * @returns {*}
+ */
+export function wxQrPay(query) {
+  return request({
+    url: '/company/companyRecharge/wxRecharge',
+    method: 'post',
+    data: query
+  })
+}
+
+/**
+ * 查询订单
+ * @param orderNo
+ * @returns {*}
+ */
+export function queryOrder(orderNo){
+  return request({
+    url: '/company/companyRecharge/queryOrder',
+    method: 'get',
+    params: {
+      orderNo: orderNo
+    }
+  })
+}

+ 9 - 0
src/api/company/redPacket.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+export function redPacketInfo(query) {
+  return request({
+    url: '/his/redPacket/info',
+    method: 'get',
+    params: query
+  })
+}

+ 87 - 0
src/api/company/sendmsg.js

@@ -0,0 +1,87 @@
+import request from '@/utils/request'
+
+// 查询调用日志_发送短信列表
+export function listSendmsg(query) {
+  return request({
+    url: '/company/sendmsgLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function listByCallerIdAndRoboticId(query) {
+  return request({
+    url: '/company/sendmsgLog/listByCallerIdAndRoboticId',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除调用日志_发送短信
+export function delSendmsg(logId) {
+    return request({
+        url: '/company/sendmsg/' + logId,
+        method: 'delete'
+    })
+}
+
+// 获取统计数据
+export function getSendMsgLogCount() {
+    return request({
+        url: '/company/sendmsgLog/count',
+        method: 'get'
+    })
+}
+
+// 导出调用日志_发送短信
+export function exportSendmsg(query) {
+    return request({
+        url: '/company/sendmsgLog/export',
+        method: 'get',
+        params: query
+    })
+}
+
+// // 查询调用日志_发送短信详细
+// export function getSendmsg(logId) {
+//   return request({
+//     url: '/company/sendmsg/' + logId,
+//     method: 'get'
+//   })
+// }
+
+// // 新增调用日志_发送短信
+// export function addSendmsg(data) {
+//   return request({
+//     url: '/company/sendmsg',
+//     method: 'post',
+//     data: data
+//   })
+// }
+
+// // 修改调用日志_发送短信
+// export function updateSendmsg(data) {
+//   return request({
+//     url: '/company/sendmsg',
+//     method: 'put',
+//     data: data
+//   })
+// }
+
+// // 删除调用日志_发送短信
+// export function delSendmsg(logId) {
+//   return request({
+//     url: '/company/sendmsg/' + logId,
+//     method: 'delete'
+//   })
+// }
+
+// // 导出调用日志_发送短信
+// export function exportSendmsg(query) {
+//   return request({
+//     url: '/company/sendmsg/export',
+//     method: 'get',
+//     params: query
+//   })
+// }

+ 90 - 0
src/api/company/tagBinding.js

@@ -0,0 +1,90 @@
+import request from '@/utils/request'
+
+// 标签模板绑定API
+export const tagBindingApi = {
+  // 获取绑定列表
+  getList: (params) => {
+    return request({
+      url: '/workflow/tag-binding/list',
+      method: 'get',
+      params
+    })
+  },
+    getListByStatus: (params) => {
+    return request({
+      url: '/workflow/tag-binding/listByStatus',
+      method: 'get',
+      params
+    })
+  },
+
+  // 根据ID获取
+  getById: (id) => {
+    return request({
+      url: `/workflow/tag-binding/${id}`,
+      method: 'get'
+    })
+  },
+
+  // 创建绑定
+  create: (data) => {
+    return request({
+      url: '/workflow/tag-binding',
+      method: 'post',
+      data
+    })
+  },
+
+  // 更新绑定
+  update: (id, data) => {
+    return request({
+      url: `/workflow/tag-binding/${id}`,
+      method: 'put',
+      data
+    })
+  },
+
+  // 删除绑定
+  delete: (id) => {
+    return request({
+      url: `/workflow/tag-binding/${id}`,
+      method: 'delete'
+    })
+  },
+
+  // 批量绑定
+  batchBind: (templateId, tagCodes) => {
+    return request({
+      url: `/workflow/tag-binding/batch-bind/${templateId}`,
+      method: 'post',
+      data: tagCodes
+    })
+  },
+
+  // 根据用户标签匹配模板
+  matchTemplate: (userTags) => {
+    return request({
+      url: '/workflow/tag-binding/match-template',
+      method: 'post',
+      data: userTags
+    })
+  },
+
+  // 测试标签匹配
+  testMatch: (id, testTags) => {
+    return request({
+      url: `/workflow/tag-binding/${id}/test-match`,
+      method: 'post',
+      data: testTags
+    })
+  },
+
+  // 批量添加龙虾标签给客户
+  batchBindLobsterTag: (data) => {
+    return request({
+      url: '/workflow/tag-binding/batch-bind-lobster-tag',
+      method: 'post',
+      data
+    })
+  }
+}

+ 36 - 37
src/api/company/scheduleReport.js → src/api/company/tcmScheduleReport.js

@@ -3,26 +3,7 @@ import request from '@/utils/request'
 // 查询中医档期业绩报表列表
 export function listTcmScheduleReport(query) {
   return request({
-    url: '/company/scheduleReport/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 中医档期业绩报表统计
-export function listTcmStatisticsReport(query) {
-  return request({
-    url: '/company/scheduleReport/statistics',
-    method: 'get',
-    params: query
-  })
-}
-
-
-// 查询指定档期各团队统计报表
-export function getStatisticsByScheduleId(query) {
-  return request({
-    url: '/company/scheduleReport/getStatisticsByScheduleId',
+    url: '/company/tcmScheduleReport/list',
     method: 'get',
     params: query
   })
@@ -31,7 +12,7 @@ export function getStatisticsByScheduleId(query) {
 // 查询中医档期业绩报表详细
 export function getTcmScheduleReport(id) {
   return request({
-    url: '/company/scheduleReport/' + id,
+    url: '/company/tcmScheduleReport/' + id,
     method: 'get'
   })
 }
@@ -39,7 +20,7 @@ export function getTcmScheduleReport(id) {
 // 新增中医档期业绩报表
 export function addTcmScheduleReport(data) {
   return request({
-    url: '/company/scheduleReport',
+    url: '/company/tcmScheduleReport',
     method: 'post',
     data: data
   })
@@ -48,7 +29,7 @@ export function addTcmScheduleReport(data) {
 // 修改中医档期业绩报表
 export function updateTcmScheduleReport(data) {
   return request({
-    url: '/company/scheduleReport',
+    url: '/company/tcmScheduleReport',
     method: 'put',
     data: data
   })
@@ -57,47 +38,65 @@ export function updateTcmScheduleReport(data) {
 // 删除中医档期业绩报表
 export function delTcmScheduleReport(id) {
   return request({
-    url: '/company/scheduleReport/' + id,
+    url: '/company/tcmScheduleReport/' + id,
     method: 'delete'
   })
 }
 
-// 导出中医档期业绩统计报
-export function exportStatisticsScheduleReport(query) {
+// 查询可用中医档期管理列
+export function listSchedule(query) {
   return request({
-    url: '/company/scheduleReport/exportStatistics',
+    url: '/company/tcmScheduleReport/getScheduleList',
     method: 'get',
     params: query
   })
 }
 
-// 导出中医档期业绩报表
-export function exportTcmScheduleReport(query) {
+export function getTcmScheduleList() {
+  return request({
+    url: '/company/tcmScheduleReport/getTcmScheduleList',
+    method: 'get'
+  })
+}
+
+// 查询中医档期管理列表
+export function listAllSchedule(query) {
   return request({
-    url: '/company/scheduleReport/export',
+    url: '/company/tcmScheduleReport/getAllScheduleList',
     method: 'get',
     params: query
   })
 }
 
 
+// 中医档期业绩报表统计
+export function statisticsReportList(query) {
+  return request({
+    url: '/company/tcmScheduleReport/statisticsList',
+    method: 'get',
+    params: query
+  })
+}
 
 
-// 查询中医档期管理列表
-export function listSchedule(query) {
+// 导出中医档期业绩报
+export function exportTcmScheduleReport(query) {
   return request({
-    url: '/company/scheduleReport/getScheduleList',
+    url: '/company/tcmScheduleReport/export',
     method: 'get',
     params: query
   })
 }
 
 
-// 查询中医档期管理列表
-export function listAllSchedule(query) {
+
+
+
+// 导出公司报表统计
+export function exportCompanyScheduleReport(query) {
   return request({
-    url: '/company/scheduleReport/getAllScheduleList',
+    url: '/company/tcmScheduleReport/exportCompany',
     method: 'get',
     params: query
   })
-}
+}

+ 53 - 0
src/api/company/tcmconsume.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询公司档期消费列表
+export function listConsume(query) {
+  return request({
+    url: '/company/consume/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询公司档期消费详细
+export function getConsume(id) {
+  return request({
+    url: '/company/consume/' + id,
+    method: 'get'
+  })
+}
+
+// 新增公司档期消费
+export function addConsume(data) {
+  return request({
+    url: '/company/consume',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改公司档期消费
+export function updateConsume(data) {
+  return request({
+    url: '/company/consume',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除公司档期消费
+export function delConsume(id) {
+  return request({
+    url: '/company/consume/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出公司档期消费
+export function exportConsume(query) {
+  return request({
+    url: '/company/consume/export',
+    method: 'get',
+    params: query
+  })
+}

+ 0 - 27
src/api/company/traffic.js

@@ -1,27 +0,0 @@
-import request from '@/utils/request'
-
-export function rechargeTraffic(data) {
-  return request({
-    url: '/company/traffic/rechargeTraffic',
-    method: 'post',
-    data: data
-  })
-}
-
-export function listTrafficRecords(query) {
-  return request({
-    url: '/company/traffic/list',
-    method: 'get',
-    params: query
-  })
-}
-
-///trafficConversion
-export function trafficConversion(data) {
-  return request({
-    url: '/company/traffic/trafficConversion',
-    method: 'get',
-    params: data
-  })
-}
-

+ 0 - 19
src/api/company/trafficLog.js

@@ -1,19 +0,0 @@
-import request from '@/utils/request'
-
-
-export function listTrafficLogExport(query) {
-  return request({
-    url: '/company/trafficLog/export',
-    method: 'get',
-    params: query
-  })
-}
-
-export function listTrafficLog(query) {
-  return request({
-    url: '/company/trafficLog/list',
-    method: 'get',
-    params: query
-  })
-}
-

+ 11 - 0
src/api/company/userIntegralLogs.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+// 查询积分记录列表
+export function listUserIntegralLogs(query) {
+  return request({
+    url: '/company/companyIntegral/list',
+    method: 'get',
+    params: query
+  })
+}
+

+ 27 - 0
src/api/company/voiceClone.js

@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+/**
+ * 上传音频文件并训练声音克隆音色
+ * @param {FormData} formData 包含 file / voice_name / speaker_id / language / model_type
+ */
+export function uploadAndTrain(formData) {
+  return request({
+    url: '/company/voiceClone/uploadAndTrain',
+    method: 'post',
+    data: formData,
+    headers: { 'Content-Type': 'multipart/form-data' }
+  })
+}
+
+/**
+ * TTS 语音合成测试
+ * @param {FormData} formData 包含 speakerId / language / text
+ */
+export function doubaoTtsTest(formData) {
+  return request({
+    url: '/company/voiceClone/doubaoTtsTest',
+    method: 'post',
+    data: formData,
+    headers: { 'Content-Type': 'multipart/form-data' }
+  })
+}

+ 71 - 0
src/api/company/workflowExec.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+export const workflowExecApi = {
+  start: (workflowId, contactId, initVariables) => {
+    return request({
+      url: '/workflow/lobster-exec/start',
+      method: 'post',
+      params: { workflowId, contactId },
+      data: initVariables
+    })
+  },
+  executeNextNode: (instanceId, customerReply) => {
+    return request({
+      url: '/workflow/lobster-exec/next-node',
+      method: 'post',
+      params: { instanceId, customerReply }
+    })
+  },
+  pause: (instanceId) => {
+    return request({ url: `/workflow/lobster-exec/pause/${instanceId}`, method: 'post' })
+  },
+  resume: (instanceId) => {
+    return request({ url: `/workflow/lobster-exec/resume/${instanceId}`, method: 'post' })
+  },
+  terminate: (instanceId, reason) => {
+    return request({
+      url: `/workflow/lobster-exec/terminate/${instanceId}`,
+      method: 'post',
+      params: { reason }
+    })
+  },
+  getInstanceState: (instanceId) => {
+    return request({ url: `/workflow/lobster-exec/instance/${instanceId}`, method: 'get' })
+  },
+  listInstances: (workflowId) => {
+    return request({
+      url: '/workflow/lobster-exec/instance/list',
+      method: 'get',
+      params: { workflowId }
+    })
+  },
+  getNodeLogs: (instanceId) => {
+    return request({ url: `/workflow/lobster-exec/node-logs/${instanceId}`, method: 'get' })
+  },
+  detectTakeover: (customerMessage, context) => {
+    return request({
+      url: '/workflow/lobster-exec/takeover-detect',
+      method: 'post',
+      params: { customerMessage, context }
+    })
+  },
+  complianceCheck: (content) => {
+    return request({
+      url: '/workflow/lobster-exec/compliance-check',
+      method: 'post',
+      params: { content }
+    })
+  },
+  getComplianceRules: () => {
+    return request({ url: '/workflow/lobster-exec/compliance-rules', method: 'get' })
+  },
+  addComplianceRule: (data) => {
+    return request({ url: '/workflow/lobster-exec/compliance-rule', method: 'post', data })
+  },
+  updateComplianceRule: (id, data) => {
+    return request({ url: `/workflow/lobster-exec/compliance-rule/${id}`, method: 'put', data })
+  },
+  deleteComplianceRule: (id) => {
+    return request({ url: `/workflow/lobster-exec/compliance-rule/${id}`, method: 'delete' })
+  }
+}

+ 97 - 0
src/api/company/workflowLobster.js

@@ -0,0 +1,97 @@
+import request from '@/utils/request'
+
+export function getActiveExternalApis() {
+  return request({
+    url: '/companyWorkflow/externalApi/activeList',
+    method: 'get'
+  })
+}
+
+export function getActiveExternalApisLegacy() {
+  return request({
+    url: '/api/admin/external-api/active-list',
+    method: 'get'
+  })
+}
+
+export function listWorkflowTemplate(query) {
+  return request({
+    url: '/workflow/template/list',
+    method: 'get',
+    params: query
+  })
+}
+export function listWorkflowTemplateByStatus(query) {
+  return request({
+    url: '/workflow/template/listTemplate',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getWorkflowTemplateDetail(id) {
+  return request({
+    url: '/workflow/template/' + id,
+    method: 'get'
+  })
+}
+
+export function updateWorkflowTemplate(id, data) {
+  return request({
+    url: '/workflow/template/' + id,
+    method: 'put',
+    data
+  })
+}
+
+export function updateWorkflowTemplateStatus(id, status) {
+  return request({
+    url: '/workflow/template/' + id + '/' + status,
+    method: 'put'
+  })
+}
+
+export function saveWorkflowCanvas(id, data) {
+  return request({
+    url: '/workflow/canvas/' + id,
+    method: 'put',
+    data
+  })
+}
+
+export function deleteWorkflowTemplate(id) {
+  return request({
+    url: '/workflow/template/' + id,
+    method: 'delete'
+  })
+}
+
+export function aiGenerateWorkflow(data) {
+  return request({
+    url: '/workflow/ai-generator/generate',
+    method: 'post',
+    data
+  })
+}
+
+export function getGenerateResultDetail(recordId) {
+  return request({
+    url: '/workflow/ai-generator/result/' + recordId + '/detail',
+    method: 'get'
+  })
+}
+
+export function confirmGenerateResult(recordId) {
+  return request({
+    url: '/workflow/ai-generator/confirm/' + recordId,
+    method: 'post'
+  })
+}
+
+export function confirmGenerateResultEdited(recordId, data) {
+  return request({
+    url: '/workflow/ai-generator/confirm/' + recordId + '/edited',
+    method: 'post',
+    data
+  })
+}

+ 44 - 0
src/api/course.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/' + id,
+    method: 'delete'
+  })
+}

+ 53 - 0
src/api/course/appIdList.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询小程序看课统计列表
+export function listSopAppidlist(query) {
+  return request({
+    url: '/course/sop/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询小程序看课统计详细
+export function getSopAppidlist(id) {
+  return request({
+    url: '/course/sop/' + id,
+    method: 'get'
+  })
+}
+
+// 新增小程序看课统计
+export function addSopAppidlist(data) {
+  return request({
+    url: '/course/sop',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改小程序看课统计
+export function updateSopAppidlist(data) {
+  return request({
+    url: '/course/sop',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除小程序看课统计
+export function delSopAppidlist(id) {
+  return request({
+    url: '/course/sop/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出小程序看课统计
+export function exportSopAppidlist(query) {
+  return request({
+    url: '/course/sop/export',
+    method: 'post',
+    params: query
+  })
+}

+ 44 - 0
src/api/course/courseAnswerLog.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/courseAnswerLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/courseAnswerLog/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/courseAnswerLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/courseAnswerLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/courseAnswerLog/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/course/courseQuestionCategory.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/courseQuestionCategory/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/courseQuestionCategory/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/courseQuestionCategory',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/courseQuestionCategory',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/courseQuestionCategory/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/course/period.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/period/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/period/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/period',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/period',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/period/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/course/playSourceConfig.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/playSourceConfig/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/playSourceConfig/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/playSourceConfig',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/playSourceConfig',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/playSourceConfig/' + id,
+    method: 'delete'
+  })
+}

+ 26 - 0
src/api/course/sopCourseLink.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 生成短链
+export function createLinkUrl(data) {
+  return request({
+    url: '/course/courseLink/createLinkUrl',
+    method: 'put',
+    data: data
+  })
+}
+
+
+export function queryQwIds() {
+  return request({
+    url: '/course/courseLink/queryQwIds',
+    method: 'get',
+  })
+}
+
+export function createRoomLinkUrl(data) {
+  return request({
+    url: '/course/courseLink/createRoomLink',
+    method: 'post',
+    data: data
+  })
+}

+ 44 - 0
src/api/course/trainingCamp.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/trainingCamp/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/trainingCamp/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/trainingCamp',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/trainingCamp',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/trainingCamp/' + id,
+    method: 'delete'
+  })
+}

+ 1 - 1
src/api/course/userCourseVideo.js

@@ -77,7 +77,7 @@ export function delUserCourseVideo(videoId) {
 
 // 同步课程模板
 export function syncTemplate(courseId) {
-  console.log(courseId)
+  
   return request({
     url: '/course/userCourse/syncTemplate/' + courseId,
     method: 'post'

+ 53 - 0
src/api/course/userIdList.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询完播统计列表
+export function listSopUseridlist(query) {
+  return request({
+    url: '/course/sop/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询完播统计详细
+export function getSopUseridlist(id) {
+  return request({
+    url: '/course/sop/' + id,
+    method: 'get'
+  })
+}
+
+// 新增完播统计
+export function addSopUseridlist(data) {
+  return request({
+    url: '/course/sop',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改完播统计
+export function updateSopUseridlist(data) {
+  return request({
+    url: '/course/sop',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除完播统计
+export function delSopUseridlist(id) {
+  return request({
+    url: '/course/sop/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出完播统计
+export function exportSopUseridlist(query) {
+  return request({
+    url: '/course/sop/export',
+    method: 'post',
+    params: query
+  })
+}

+ 18 - 0
src/api/course/userOperationLog.js

@@ -0,0 +1,18 @@
+import request from '@/utils/request'
+
+// 查询用户操作日志对象列表
+export function listUserOperationLog(query) {
+  return request({
+    url: '/his/userOperationLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询用户操作日志类型
+export function getOperationType() {
+  return request({
+    url: '/his/userOperationLog/getOperationType',
+    method: 'get'
+  })
+}

+ 44 - 0
src/api/course/userVideoCommentLike.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/userVideoCommentLike/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/userVideoCommentLike/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/userVideoCommentLike',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/userVideoCommentLike',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/userVideoCommentLike/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/course/userVideoFavorite.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/userVideoFavorite/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/userVideoFavorite/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/userVideoFavorite',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/userVideoFavorite',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/userVideoFavorite/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/course/userVideoLike.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/userVideoLike/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/userVideoLike/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/userVideoLike',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/userVideoLike',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/userVideoLike/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/course/userVideoView.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/userVideoView/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/userVideoView/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/userVideoView',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/userVideoView',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/userVideoView/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/course/videoTags.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/course/videoTags/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/course/videoTags/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/course/videoTags',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/course/videoTags',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/course/videoTags/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/courseFinishTemp/course.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/courseFinishTemp/course/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/courseFinishTemp/course/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/courseFinishTemp/course',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/courseFinishTemp/course',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/courseFinishTemp/course/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
src/api/crm.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询列表
+export function listApi(query) {
+  return request({
+    url: '/crm/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询详细
+export function getApi(id) {
+  return request({
+    url: '/crm/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addApi(data) {
+  return request({
+    url: '/crm',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateApi(data) {
+  return request({
+    url: '/crm',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delApi(id) {
+  return request({
+    url: '/crm/' + id,
+    method: 'delete'
+  })
+}

+ 62 - 0
src/api/crm/assist.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询客户员工协作列表
+export function listAssist(query) {
+  return request({
+    url: '/crm/assist/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户员工协作详细
+export function getAssist(id) {
+  return request({
+    url: '/crm/assist/' + id,
+    method: 'get'
+  })
+}
+
+// 新增客户员工协作
+export function addAssist(data) {
+  return request({
+    url: '/crm/assist',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户员工协作
+export function updateAssist(data) {
+  return request({
+    url: '/crm/assist',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户员工协作
+export function delAssist(id) {
+  return request({
+    url: '/crm/assist/' + id,
+    method: 'delete'
+  })
+}
+
+// 删除客户员工协作
+export function remove(data) {
+  return request({
+    url: '/crm/assist/remove',
+    method: 'post',
+    data: data
+  })
+}
+
+// 导出客户员工协作
+export function exportAssist(query) {
+  return request({
+    url: '/crm/assist/export',
+    method: 'get',
+    params: query
+  })
+}

+ 62 - 0
src/api/crm/crm/assist.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询客户员工协作列表
+export function listAssist(query) {
+  return request({
+    url: '/crm/assist/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户员工协作详细
+export function getAssist(id) {
+  return request({
+    url: '/crm/assist/' + id,
+    method: 'get'
+  })
+}
+
+// 新增客户员工协作
+export function addAssist(data) {
+  return request({
+    url: '/crm/assist',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户员工协作
+export function updateAssist(data) {
+  return request({
+    url: '/crm/assist',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户员工协作
+export function delAssist(id) {
+  return request({
+    url: '/crm/assist/' + id,
+    method: 'delete'
+  })
+}
+
+// 删除客户员工协作
+export function remove(data) {
+  return request({
+    url: '/crm/assist/remove',
+    method: 'post',
+    data: data
+  })
+}
+
+// 导出客户员工协作
+export function exportAssist(query) {
+  return request({
+    url: '/crm/assist/export',
+    method: 'get',
+    params: query
+  })
+}

+ 198 - 0
src/api/crm/crm/customer.js

@@ -0,0 +1,198 @@
+import request from '@/utils/request'
+
+export function getFullCustomerList(query) {
+  return request({
+    url: '/crm/customer/getFullCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getLineCustomerList(query) {
+  return request({
+    url: '/crm/customer/getLineCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+export function listCustomerAll(query) {
+  return request({
+    url: '/crm/customer/listAll',
+    method: 'get',
+    params: query
+  })
+}
+export function getCustomerList(query) {
+  return request({
+    url: '/crm/customer/getCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getCustomerListByIds(query) {
+  return request({
+    url: '/crm/customer/getCustomerListByIds',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+export function getMyCustomerList(query) {
+  return request({
+    url: '/crm/customer/getMyCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getCustomerDetails(query) {
+  return request({
+    url: '/crm/customer/getCustomerDetails/',
+    method: 'get',
+    params: query
+  })
+}
+export function getCustomerDetails1(query) {
+  return request({
+    url: '/crm/customer/getCustomerDetails1/',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getLineCustomerDetails(query) {
+  return request({
+    url: '/crm/customer/getLineCustomerDetails/',
+    method: 'get',
+    params: query
+  })
+}
+export function getCustomer1(customerId) {
+  return request({
+    url: '/crm/customer/query1/' + customerId,
+    method: 'get'
+  })
+}
+
+export function getCustomerListBySearch(query) {
+  return request({
+    url: '/crm/customer/getCustomerListBySearch',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function exportCustomer(query) {
+  return request({
+    url: '/crm/customer/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function exportCustomerByIds(customerId) {
+  return request({
+    url: '/crm/customer/'+ customerId,
+    method: 'post',
+  })
+}
+
+export function assignToUser(data) {
+  return request({
+    url: '/crm/customer/assignToUser',
+    method: 'post',
+    data: data
+  })
+}
+export function assignUser(data) {
+  return request({
+    url: '/crm/customer/assignUser',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+export function receive(data) {
+  return request({
+    url: '/crm/customer/receive',
+    method: 'post',
+    data: data
+  })
+}
+
+export function recover(data) {
+  return request({
+    url: '/crm/customer/recover',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+
+
+
+// 下载用户导入模板
+export function importLineTemplate() {
+  return request({
+    url: '/crm/customer/importLineTemplate',
+    method: 'get'
+  })
+}
+
+// 下载用户导入模板
+export function importVisitTemplate() {
+  return request({
+    url: '/crm/customer/importVisitTemplate',
+    method: 'get'
+  })
+}
+
+
+export function addCustomer(data) {
+  return request({
+    url: '/crm/customer/add',
+    method: 'post',
+    data: data
+  })
+}
+
+export function addMyCustomer(data) {
+  return request({
+    url: '/crm/customer/addMyCustomer',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 修改客户
+export function updateCustomer(data) {
+  return request({
+    url: '/crm/customer/edit',
+    method: 'put',
+    data: data
+  })
+}
+
+export function updateCustomerSource(data) {
+  return request({
+    url: '/crm/customer/updateCustomerSource',
+    method: 'post',
+    data: data
+  })
+}
+export function getMyAssistList(query) {
+  return request({
+    url: '/crm/customer/getMyAssistList',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/crm/crm/customerAnalyze.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询客户聊天记录分析列表
+export function listAnalyze(query) {
+  return request({
+    url: '/crm/analyze/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询客户聊天记录分析列表
+export function listAllAnalyze(data) {
+    return request({
+        url: '/crm/analyze/listAll',
+        method: 'post',
+        data: data
+    })
+}
+
+// 查询客户聊天记录分析详细
+export function getAnalyze(id) {
+  return request({
+    url: '/crm/analyze/' + id,
+    method: 'get'
+  })
+}
+
+// 新增客户聊天记录分析
+export function addAnalyze(data) {
+  return request({
+    url: '/crm/analyze',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户聊天记录分析
+export function updateAnalyze(data) {
+  return request({
+    url: '/crm/analyze',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户聊天记录分析
+export function delAnalyze(id) {
+  return request({
+    url: '/crm/analyze/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出客户聊天记录分析
+export function exportAnalyze(query) {
+  return request({
+    url: '/crm/analyze/export',
+    method: 'get',
+    params: query
+  })
+}

+ 21 - 0
src/api/crm/crm/customerAssign.js

@@ -0,0 +1,21 @@
+import request from '@/utils/request'
+
+// 查询客户分配记录列表
+export function listCustomerAssign(query) {
+  return request({
+    url: '/crm/customerAssign/list',
+    method: 'get',
+    params: query
+  })
+}
+
+ 
+ 
+export function cancelCustomerAssign(data) {
+  return request({
+    url: '/crm/customerAssign/cancel' ,
+    method: 'post',
+    data: data
+  })
+}
+ 

+ 53 - 0
src/api/crm/crm/customerContacts.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户联系人列表
+export function listCustomerContacts(query) {
+  return request({
+    url: '/crm/customerContacts/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户联系人详细
+export function getCustomerContacts(contactsId) {
+  return request({
+    url: '/crm/customerContacts/' + contactsId,
+    method: 'get'
+  })
+}
+
+// 新增客户联系人
+export function addCustomerContacts(data) {
+  return request({
+    url: '/crm/customerContacts',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户联系人
+export function updateCustomerContacts(data) {
+  return request({
+    url: '/crm/customerContacts',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户联系人
+export function delCustomerContacts(contactsId) {
+  return request({
+    url: '/crm/customerContacts/' + contactsId,
+    method: 'delete'
+  })
+}
+
+// 导出客户联系人
+export function exportCustomerContacts(query) {
+  return request({
+    url: '/crm/customerContacts/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/crm/crm/customerExt.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户字段扩展列表
+export function listCustomerExt(query) {
+  return request({
+    url: '/crm/customerExt/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户字段扩展详细
+export function getCustomerExt(extId) {
+  return request({
+    url: '/crm/customerExt/' + extId,
+    method: 'get'
+  })
+}
+
+// 新增客户字段扩展
+export function addCustomerExt(data) {
+  return request({
+    url: '/crm/customerExt',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户字段扩展
+export function updateCustomerExt(data) {
+  return request({
+    url: '/crm/customerExt',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户字段扩展
+export function delCustomerExt(extId) {
+  return request({
+    url: '/crm/customerExt/' + extId,
+    method: 'delete'
+  })
+}
+
+// 导出客户字段扩展
+export function exportCustomerExt(query) {
+  return request({
+    url: '/crm/customerExt/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/crm/crm/customerHisOrder.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户历史订单列表
+export function listCustomerHisOrder(query) {
+  return request({
+    url: '/crm/customerHisOrder/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户历史订单详细
+export function getCustomerHisOrder(orderId) {
+  return request({
+    url: '/crm/customerHisOrder/' + orderId,
+    method: 'get'
+  })
+}
+
+// 新增客户历史订单
+export function addCustomerHisOrder(data) {
+  return request({
+    url: '/crm/customerHisOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户历史订单
+export function updateCustomerHisOrder(data) {
+  return request({
+    url: '/crm/customerHisOrder',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户历史订单
+export function delCustomerHisOrder(orderId) {
+  return request({
+    url: '/crm/customerHisOrder/' + orderId,
+    method: 'delete'
+  })
+}
+
+// 导出客户历史订单
+export function exportCustomerHisOrder(query) {
+  return request({
+    url: '/crm/customerHisOrder/export',
+    method: 'get',
+    params: query
+  })
+}

+ 9 - 0
src/api/crm/crm/customerLevel.js

@@ -0,0 +1,9 @@
+import request from "@/utils/request";
+
+export const customerLevelOptions = (query) => {
+  return request({
+    url: "/crm/customerLevel/getCustomerLevelOption",
+    method: "get",
+    params: query,
+  });
+};

+ 53 - 0
src/api/crm/crm/customerLogs.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户日志列表
+export function listCustomerLogs(query) {
+  return request({
+    url: '/crm/customerLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户日志详细
+export function getCustomerLogs(logsId) {
+  return request({
+    url: '/crm/customerLogs/' + logsId,
+    method: 'get'
+  })
+}
+
+// 新增客户日志
+export function addCustomerLogs(data) {
+  return request({
+    url: '/crm/customerLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户日志
+export function updateCustomerLogs(data) {
+  return request({
+    url: '/crm/customerLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户日志
+export function delCustomerLogs(logsId) {
+  return request({
+    url: '/crm/customerLogs/' + logsId,
+    method: 'delete'
+  })
+}
+
+// 导出客户日志
+export function exportCustomerLogs(query) {
+  return request({
+    url: '/crm/customerLogs/export',
+    method: 'get',
+    params: query
+  })
+}

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio