周洋 hace 2 semanas
commit
94efd3bc2c
Se han modificado 100 ficheros con 33653 adiciones y 0 borrados
  1. 22 0
      .editorconfig
  2. 24 0
      .env.development
  3. 24 0
      .env.production
  4. 10 0
      .eslintignore
  5. 199 0
      .eslintrc.js
  6. 30 0
      .gitignore
  7. 14 0
      Dockerfile
  8. 36 0
      README.en.md
  9. 37 0
      README.md
  10. 13 0
      babel.config.js
  11. 12 0
      bin/build.bat
  12. 12 0
      bin/package.bat
  13. 12 0
      bin/run-web.bat
  14. 35 0
      build/index.js
  15. 38 0
      nginx.conf
  16. 133 0
      package.json
  17. 568 0
      public/chat-aggregate.html
  18. 211 0
      public/index.html
  19. 2 0
      public/robots.txt
  20. 27672 0
      public/sdk.js
  21. 324 0
      public/workflow-canvas.html
  22. 254 0
      public/wx.html
  23. 11 0
      src/App.vue
  24. 53 0
      src/api/ad/AdDyAccount.js
  25. 60 0
      src/api/ad/AdIqiyiAccount.js
  26. 53 0
      src/api/ad/AdUploadLog.js
  27. 60 0
      src/api/ad/AdYouKuaccount.js
  28. 9 0
      src/api/ad/adAccount.js
  29. 60 0
      src/api/ad/adDomain.js
  30. 61 0
      src/api/ad/adSite.js
  31. 60 0
      src/api/ad/htmlTemplate.js
  32. 5 0
      src/api/admin/ad.js
  33. 78 0
      src/api/admin/aiChatQuality.js
  34. 29 0
      src/api/admin/aiProvider.js
  35. 59 0
      src/api/admin/article.js
  36. 94 0
      src/api/admin/callRecord.js
  37. 34 0
      src/api/admin/course.js
  38. 5 0
      src/api/admin/crm.js
  39. 34 0
      src/api/admin/live.js
  40. 92 0
      src/api/admin/lobster.js
  41. 21 0
      src/api/admin/moduleUsage.js
  42. 51 0
      src/api/admin/product.js
  43. 79 0
      src/api/admin/proxy.js
  44. 34 0
      src/api/admin/qwExternalContact.js
  45. 9 0
      src/api/admin/sop.js
  46. 61 0
      src/api/admin/statistics.js
  47. 5 0
      src/api/admin/storeOrder.js
  48. 44 0
      src/api/admin/sysCompany.js
  49. 61 0
      src/api/admin/sysUser.js
  50. 62 0
      src/api/adv/advertiser.js
  51. 70 0
      src/api/adv/callbackAccount.js
  52. 29 0
      src/api/adv/channel.js
  53. 18 0
      src/api/adv/configuration.js
  54. 10 0
      src/api/adv/conversionLog.js
  55. 63 0
      src/api/adv/domain.js
  56. 73 0
      src/api/adv/landingPageTemplate.js
  57. 19 0
      src/api/adv/project.js
  58. 54 0
      src/api/adv/promotionAccount.js
  59. 60 0
      src/api/adv/site.js
  60. 34 0
      src/api/adv/siteStatistics.js
  61. 36 0
      src/api/adv/trackingLink.js
  62. 62 0
      src/api/aiDpctorChat/aiDoctorChat.js
  63. 53 0
      src/api/aiDpctorChat/role.js
  64. 53 0
      src/api/aiSipCall/aiSipCallBizGroup.js
  65. 62 0
      src/api/aiSipCall/aiSipCallGateway.js
  66. 53 0
      src/api/aiSipCall/aiSipCallLlmAgentAccount.js
  67. 88 0
      src/api/aiSipCall/aiSipCallOutboundCdr.js
  68. 61 0
      src/api/aiSipCall/aiSipCallPhone.js
  69. 86 0
      src/api/aiSipCall/aiSipCallTask.js
  70. 77 0
      src/api/aiSipCall/aiSipCallUser.js
  71. 53 0
      src/api/aiSipCall/aiSipCallVoiceTtsAliyun.js
  72. 53 0
      src/api/aiob/AiobBaiduCallApi.js
  73. 53 0
      src/api/aiob/AiobBaiduEncryption.js
  74. 60 0
      src/api/aiob/AiobBaiduTask.js
  75. 101 0
      src/api/baidu/BdAccount.js
  76. 38 0
      src/api/baidu/statistics.js
  77. 53 0
      src/api/bill/billLog.js
  78. 31 0
      src/api/billing/wallet.js
  79. 53 0
      src/api/callRecord/callRecord.js
  80. 53 0
      src/api/chat/chatDataset.js
  81. 53 0
      src/api/chat/chatDatasetFile.js
  82. 53 0
      src/api/chat/chatKeyword.js
  83. 53 0
      src/api/chat/chatMsg.js
  84. 61 0
      src/api/chat/chatMsgLogs.js
  85. 62 0
      src/api/chat/chatRole.js
  86. 53 0
      src/api/chat/chatSession.js
  87. 11 0
      src/api/chat/chatUpload.js
  88. 53 0
      src/api/chat/chatUser.js
  89. 25 0
      src/api/common.js
  90. 53 0
      src/api/company/VoiceRoboticWx.js
  91. 76 0
      src/api/company/addwx.js
  92. 8 0
      src/api/company/aiCall.js
  93. 49 0
      src/api/company/aiModel.js
  94. 105 0
      src/api/company/aiModel/inboundCallManage.js
  95. 8 0
      src/api/company/aiProvider.js
  96. 43 0
      src/api/company/aiWorkflow.js
  97. 47 0
      src/api/company/approval.js
  98. 88 0
      src/api/company/callphone.js
  99. 51 0
      src/api/company/company.js
  100. 126 0
      src/api/company/companyAccount.js

+ 22 - 0
.editorconfig

@@ -0,0 +1,22 @@
+# 告诉EditorConfig插件,这是根文件,不用继续往上查找
+root = true
+
+# 匹配全部文件
+[*]
+# 设置字符集
+charset = utf-8
+# 缩进风格,可选space、tab
+indent_style = space
+# 缩进的空格数
+indent_size = 2
+# 结尾换行符,可选lf、cr、crlf
+end_of_line = lf
+# 在文件结尾插入新行
+insert_final_newline = true
+# 删除一行中的前后空格
+trim_trailing_whitespace = true
+
+# 匹配md结尾的文件
+[*.md]
+insert_final_newline = false
+trim_trailing_whitespace = false

+ 24 - 0
.env.development

@@ -0,0 +1,24 @@
+# 页面标题
+VUE_APP_TITLE =云联融智销售端
+# 公司名称
+VUE_APP_COMPANY_NAME =云联融智医药有限公司
+# ICP备案号
+VUE_APP_ICP_RECORD =
+# ICP网站访问地址
+VUE_APP_ICP_URL =https://beian.miit.gov.cn
+# 网站LOG
+VUE_APP_LOG_URL =@/assets/logo/ylrz.png
+
+# 生产环境配置
+ENV = 'production'
+
+# FS管理系统/开发环境
+VUE_APP_BASE_API = '/prod-api'
+
+
+#项目所属
+VUE_APP_PROJECT_FROM=ylrz
+
+# 路由懒加载
+VUE_CLI_BABEL_TRANSPILE_MODULES = true
+

+ 24 - 0
.env.production

@@ -0,0 +1,24 @@
+# 页面标题
+VUE_APP_TITLE =云联融智销售端
+# 公司名称
+VUE_APP_COMPANY_NAME =云联融智医药有限公司
+# ICP备案号
+VUE_APP_ICP_RECORD =
+# ICP网站访问地址
+VUE_APP_ICP_URL =https://beian.miit.gov.cn
+# 网站LOG
+VUE_APP_LOG_URL =@/assets/logo/ylrz.png
+
+# 生产环境配置
+ENV = 'production'
+
+# FS管理系统/开发环境
+VUE_APP_BASE_API = '/prod-api'
+
+
+#项目所属
+VUE_APP_PROJECT_FROM=ylrz
+
+# 路由懒加载
+VUE_CLI_BABEL_TRANSPILE_MODULES = true
+

+ 10 - 0
.eslintignore

@@ -0,0 +1,10 @@
+# 忽略build目录下类型为js的文件的语法检查
+build/*.js
+# 忽略src/assets目录下文件的语法检查
+src/assets
+# 忽略public目录下文件的语法检查
+public
+# 忽略当前目录下为js的文件的语法检查
+*.js
+# 忽略当前目录下为vue的文件的语法检查
+*.vue

+ 199 - 0
.eslintrc.js

@@ -0,0 +1,199 @@
+// ESlint 检查配置
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint',
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+    node: true,
+    es6: true,
+  },
+  extends: ['plugin:vue/recommended', 'eslint:recommended'],
+
+  // add your custom rules here
+  //it is base on https://github.com/vuejs/eslint-config-vue
+  rules: {
+    "vue/max-attributes-per-line": [2, {
+      "singleline": 10,
+      "multiline": {
+        "max": 1,
+        "allowFirstLine": false
+      }
+    }],
+    "vue/singleline-html-element-content-newline": "off",
+    "vue/multiline-html-element-content-newline":"off",
+    "vue/name-property-casing": ["error", "PascalCase"],
+    "vue/no-v-html": "off",
+    'accessor-pairs': 2,
+    'arrow-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'block-spacing': [2, 'always'],
+    'brace-style': [2, '1tbs', {
+      'allowSingleLine': true
+    }],
+    'camelcase': [0, {
+      'properties': 'always'
+    }],
+    'comma-dangle': [2, 'never'],
+    'comma-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'comma-style': [2, 'last'],
+    'constructor-super': 2,
+    'curly': [2, 'multi-line'],
+    'dot-location': [2, 'property'],
+    'eol-last': 2,
+    'eqeqeq': ["error", "always", {"null": "ignore"}],
+    'generator-star-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'handle-callback-err': [2, '^(err|error)$'],
+    'indent': [2, 2, {
+      'SwitchCase': 1
+    }],
+    'jsx-quotes': [2, 'prefer-single'],
+    'key-spacing': [2, {
+      'beforeColon': false,
+      'afterColon': true
+    }],
+    'keyword-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'new-cap': [2, {
+      'newIsCap': true,
+      'capIsNew': false
+    }],
+    'new-parens': 2,
+    'no-array-constructor': 2,
+    'no-caller': 2,
+    'no-console': 'off',
+    'no-class-assign': 2,
+    'no-cond-assign': 2,
+    'no-const-assign': 2,
+    'no-control-regex': 0,
+    'no-delete-var': 2,
+    'no-dupe-args': 2,
+    'no-dupe-class-members': 2,
+    'no-dupe-keys': 2,
+    'no-duplicate-case': 2,
+    'no-empty-character-class': 2,
+    'no-empty-pattern': 2,
+    'no-eval': 2,
+    'no-ex-assign': 2,
+    'no-extend-native': 2,
+    'no-extra-bind': 2,
+    'no-extra-boolean-cast': 2,
+    'no-extra-parens': [2, 'functions'],
+    'no-fallthrough': 2,
+    'no-floating-decimal': 2,
+    'no-func-assign': 2,
+    'no-implied-eval': 2,
+    'no-inner-declarations': [2, 'functions'],
+    'no-invalid-regexp': 2,
+    'no-irregular-whitespace': 2,
+    'no-iterator': 2,
+    'no-label-var': 2,
+    'no-labels': [2, {
+      'allowLoop': false,
+      'allowSwitch': false
+    }],
+    'no-lone-blocks': 2,
+    'no-mixed-spaces-and-tabs': 2,
+    'no-multi-spaces': 2,
+    'no-multi-str': 2,
+    'no-multiple-empty-lines': [2, {
+      'max': 1
+    }],
+    'no-native-reassign': 2,
+    'no-negated-in-lhs': 2,
+    'no-new-object': 2,
+    'no-new-require': 2,
+    'no-new-symbol': 2,
+    'no-new-wrappers': 2,
+    'no-obj-calls': 2,
+    'no-octal': 2,
+    'no-octal-escape': 2,
+    'no-path-concat': 2,
+    'no-proto': 2,
+    'no-redeclare': 2,
+    'no-regex-spaces': 2,
+    'no-return-assign': [2, 'except-parens'],
+    'no-self-assign': 2,
+    'no-self-compare': 2,
+    'no-sequences': 2,
+    'no-shadow-restricted-names': 2,
+    'no-spaced-func': 2,
+    'no-sparse-arrays': 2,
+    'no-this-before-super': 2,
+    'no-throw-literal': 2,
+    'no-trailing-spaces': 2,
+    'no-undef': 2,
+    'no-undef-init': 2,
+    'no-unexpected-multiline': 2,
+    'no-unmodified-loop-condition': 2,
+    'no-unneeded-ternary': [2, {
+      'defaultAssignment': false
+    }],
+    'no-unreachable': 2,
+    'no-unsafe-finally': 2,
+    'no-unused-vars': [2, {
+      'vars': 'all',
+      'args': 'none'
+    }],
+    'no-useless-call': 2,
+    'no-useless-computed-key': 2,
+    'no-useless-constructor': 2,
+    'no-useless-escape': 0,
+    'no-whitespace-before-property': 2,
+    'no-with': 2,
+    'one-var': [2, {
+      'initialized': 'never'
+    }],
+    'operator-linebreak': [2, 'after', {
+      'overrides': {
+        '?': 'before',
+        ':': 'before'
+      }
+    }],
+    'padded-blocks': [2, 'never'],
+    'quotes': [2, 'single', {
+      'avoidEscape': true,
+      'allowTemplateLiterals': true
+    }],
+    'semi': [2, 'never'],
+    'semi-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'space-before-blocks': [2, 'always'],
+    'space-before-function-paren': [2, 'never'],
+    'space-in-parens': [2, 'never'],
+    'space-infix-ops': 2,
+    'space-unary-ops': [2, {
+      'words': true,
+      'nonwords': false
+    }],
+    'spaced-comment': [2, 'always', {
+      'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
+    }],
+    'template-curly-spacing': [2, 'never'],
+    'use-isnan': 2,
+    'valid-typeof': 2,
+    'wrap-iife': [2, 'any'],
+    'yield-star-spacing': [2, 'both'],
+    'yoda': [2, 'never'],
+    'prefer-const': 2,
+    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+    'object-curly-spacing': [2, 'always', {
+      objectsInObjects: false
+    }],
+    'array-bracket-spacing': [2, 'never']
+  }
+}

+ 30 - 0
.gitignore

@@ -0,0 +1,30 @@
+.DS_Store
+node_modules
+/dist
+
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.log
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+package-lock.json
+yarn.lock
+
+# AGENTS.md - 项目指导文档,不上传到远程仓库
+AGENTS.md

+ 14 - 0
Dockerfile

@@ -0,0 +1,14 @@
+#基于官方 NGINX 镜像部署(精简镜像)
+FROM swr.cn-east-2.myhuaweicloud.com/library/nginx:alpine
+
+# 复制本地打包好的 dist 目录到 NGINX 静态资源目录
+COPY ./dist /usr/share/nginx/html
+
+# 替换 NGINX 默认配置(用我们自定义的 nginx.conf)
+COPY ./nginx.conf /etc/nginx/nginx.conf
+
+# 暴露容器端口(与 nginx.conf 中 listen 一致)
+#EXPOSE 80
+
+# 启动 NGINX(前台运行,避免容器启动后退出)
+CMD ["nginx", "-g", "daemon off;"]

+ 36 - 0
README.en.md

@@ -0,0 +1,36 @@
+# his_companyui
+
+#### Description
+his_companyui
+
+#### Software Architecture
+Software architecture description
+
+#### Installation
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Instructions
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Contribution
+
+1.  Fork the repository
+2.  Create Feat_xxx branch
+3.  Commit your code
+4.  Create Pull Request
+
+
+#### Gitee Feature
+
+1.  You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
+2.  Gitee blog [blog.gitee.com](https://blog.gitee.com)
+3.  Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
+4.  The most valuable open source project [GVP](https://gitee.com/gvp)
+5.  The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
+6.  The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 37 - 0
README.md

@@ -0,0 +1,37 @@
+# his_companyui
+
+#### 介绍
+his_companyui
+
+#### 软件架构
+软件架构说明
+
+
+#### 安装教程
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### 使用说明
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### 参与贡献
+
+1.  Fork 本仓库
+2.  新建 Feat_xxx 分支
+3.  提交代码
+4.  新建 Pull Request
+
+
+#### 特技
+
+1.  使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
+2.  Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
+3.  你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
+4.  [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
+5.  Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
+6.  Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 13 - 0
babel.config.js

@@ -0,0 +1,13 @@
+module.exports = {
+  presets: [
+    // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
+    '@vue/cli-plugin-babel/preset'
+  ],
+  'env': {
+    'development': {
+      // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
+      // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
+      'plugins': ['dynamic-import-node']
+    }
+  }
+}

+ 12 - 0
bin/build.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 打包Web工程,生成dist文件。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run build:prod
+
+pause

+ 12 - 0
bin/package.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 安装Web工程,生成node_modules文件。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm install --registry=https://registry.npm.taobao.org
+
+pause

+ 12 - 0
bin/run-web.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 使用 Vue CLI 命令运行 Web 工程。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run dev
+
+pause

+ 35 - 0
build/index.js

@@ -0,0 +1,35 @@
+const { run } = require('runjs')
+const chalk = require('chalk')
+const config = require('../vue.config.js')
+const rawArgv = process.argv.slice(2)
+const args = rawArgv.join(' ')
+
+if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
+  const report = rawArgv.includes('--report')
+
+  run(`vue-cli-service build ${args}`)
+
+  const port = 9526
+  const publicPath = config.publicPath
+
+  var connect = require('connect')
+  var serveStatic = require('serve-static')
+  const app = connect()
+
+  app.use(
+    publicPath,
+    serveStatic('./dist', {
+      index: ['index.html', '/']
+    })
+  )
+
+  app.listen(port, function () {
+    console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`))
+    if (report) {
+      console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}report.html`))
+    }
+
+  })
+} else {
+  run(`vue-cli-service build ${args}`)
+}

+ 38 - 0
nginx.conf

@@ -0,0 +1,38 @@
+# nginx.conf
+worker_processes  5;
+
+events {
+    worker_connections  1024;
+}
+
+http {
+    include       mime.types;
+    default_type  application/octet-stream;
+    client_max_body_size 200m;
+    sendfile        on;
+    keepalive_timeout  65;
+
+    server {
+        listen       80;  # 容器内端口
+        server_name  localhost;
+
+        # 前端静态资源目录(对应容器内的 /usr/share/nginx/html)
+        root   /usr/share/nginx/html;
+        index  index.html;
+
+        # 关键:处理 VUE Router history 模式(避免刷新 404)
+        location / {
+            try_files $uri $uri/ /index.html;  # 所有路由指向 index.html
+        }
+
+        # 关键:反向代理 API(解决跨域,替换为你的真实后端地址)
+        location /prod-api/ {
+            proxy_pass http://192.168.52.215:7773/;  # 后端 API 地址(末尾加 / 避免路径拼接问题)
+            proxy_set_header Host $host;
+            proxy_set_header X-Real-IP $remote_addr;
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            proxy_set_header X-Forwarded-Proto $scheme;  # 传递 HTTPS 协议
+        }
+
+     }
+}

+ 133 - 0
package.json

@@ -0,0 +1,133 @@
+{
+  "name": "fs",
+  "version": "1.1.0",
+  "description": "互联网医院销售管理平台",
+  "author": "FS",
+  "license": "MIT",
+  "scripts": {
+    "dev": "vue-cli-service serve",
+    "build:prod": "vue-cli-service build",
+    "build:stage": "vue-cli-service build --mode staging",
+    "preview": "node build/index.js --preview",
+    "lint": "eslint --ext .js,.vue src",
+    "test:unit": "jest --clearCache && vue-cli-service test:unit",
+    "test:ci": "npm run lint && npm run test:unit",
+    "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
+    "new": "plop"
+  },
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  },
+  "lint-staged": {
+    "src/**/*.{js,vue}": [
+      "eslint --fix",
+      "git add"
+    ]
+  },
+  "keywords": [
+    "vue",
+    "admin",
+    "dashboard",
+    "element-ui",
+    "boilerplate",
+    "admin-template",
+    "management-system"
+  ],
+  "dependencies": {
+    "@amap/amap-jsapi-loader": "^1.0.1",
+    "@jridgewell/gen-mapping": "^0.3.5",
+    "@riophae/vue-treeselect": "0.4.0",
+    "axios": "0.18.1",
+    "chart.js": "^2.9.4",
+    "clipboard": "2.0.4",
+    "compression-webpack-plugin": "^5.0.1",
+    "core-js": "3.6.5",
+    "cos-js-sdk-v5": "^1.10.1",
+    "dayjs": "^1.11.13",
+    "echarts": "4.2.1",
+    "element-ui": "2.15.5",
+    "esdk-obs-browserjs": "^3.25.6",
+    "file-saver": "2.0.1",
+    "form-making": "^1.2.9",
+    "fuse.js": "^3.4.4",
+    "hls.js": "^1.6.13",
+    "js-beautify": "1.10.2",
+    "js-cookie": "2.2.0",
+    "jsencrypt": "3.0.0-rc.1",
+    "lodash.clonedeep": "^4.5.0",
+    "lodash.merge": "^4.6.2",
+    "moment": "^2.29.4",
+    "normalize.css": "7.0.0",
+    "nprogress": "0.2.0",
+    "path-to-regexp": "2.4.0",
+    "qrcode": "^1.5.4",
+    "qrcode.vue": "^1.7.0",
+    "qrcodejs2": "0.0.2",
+    "quill": "1.3.7",
+    "screenfull": "4.2.0",
+    "sortablejs": "1.8.4",
+    "stylus": "^0.54.7",
+    "stylus-loader": "^3.0.2",
+    "tt-uploader": "^1.6.1",
+    "v-clipboard": "^2.2.3",
+    "vod-js-sdk-v6": "^1.7.1-beta.1",
+    "vue": "2.6.10",
+    "vue-baidu-map": "^0.21.22",
+    "vue-clipboard2": "^0.3.1",
+    "vue-count-to": "1.0.13",
+    "vue-cropper": "0.4.9",
+    "vue-full-calendar": "^2.8.1-0",
+    "vue-jsonp": "^2.1.0",
+    "vue-meta": "^2.4.0",
+    "vue-mobile-audio": "^0.1.3",
+    "vue-mobile-calendar": "^3.3.0",
+    "vue-monaco": "^1.2.2",
+    "vue-router": "3.0.2",
+    "vue-splitpane": "1.0.4",
+    "vue2-ace-editor": "0.0.15",
+    "vuedraggable": "^2.20.0",
+    "vuex": "3.1.0",
+    "wangeditor": "^4.6.13",
+    "xlsx": "^0.18.5"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "4.4.4",
+    "@vue/cli-plugin-eslint": "4.4.4",
+    "@vue/cli-plugin-unit-jest": "4.4.4",
+    "@vue/cli-service": "4.4.4",
+    "@vue/test-utils": "1.0.0-beta.29",
+    "autoprefixer": "9.5.1",
+    "babel-eslint": "10.1.0",
+    "babel-jest": "23.6.0",
+    "babel-plugin-dynamic-import-node": "2.3.3",
+    "chalk": "2.4.2",
+    "chokidar": "2.1.5",
+    "connect": "3.6.6",
+    "eslint": "6.7.2",
+    "eslint-plugin-vue": "6.2.2",
+    "html-webpack-plugin": "3.2.0",
+    "husky": "1.3.1",
+    "lint-staged": "8.1.5",
+    "mockjs": "1.0.1-beta3",
+    "plop": "2.3.0",
+    "runjs": "4.3.2",
+    "sass": "^1.97.1",
+    "sass-loader": "8.0.2",
+    "script-ext-html-webpack-plugin": "2.1.3",
+    "script-loader": "0.7.2",
+    "serve-static": "1.13.2",
+    "svg-sprite-loader": "4.1.3",
+    "svgo": "1.2.0",
+    "vue-template-compiler": "2.6.10"
+  },
+  "engines": {
+    "node": ">=8.9",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions"
+  ]
+}

+ 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>

+ 211 - 0
public/index.html

@@ -0,0 +1,211 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="renderer" content="webkit">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <title><%= webpackConfig.name %></title>
+    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=ONIBZ-44LLJ-QHYFI-KGG6Y-5ADJT-A7BIO&libraries=drawing"></script>
+    <script src="/sdk.js" charset="utf-8"></script>
+
+	  <style>
+    html,
+    body,
+    #app {
+      height: 100%;
+      margin: 0px;
+      padding: 0px;
+    }
+    .chromeframe {
+      margin: 0.2em 0;
+      background: #ccc;
+      color: #000;
+      padding: 0.2em 0;
+    }
+
+    #loader-wrapper {
+      position: fixed;
+      top: 0;
+      left: 0;
+      width: 100%;
+      height: 100%;
+      z-index: 999999;
+    }
+
+    #loader {
+      display: block;
+      position: relative;
+      left: 50%;
+      top: 50%;
+      width: 150px;
+      height: 150px;
+      margin: -75px 0 0 -75px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 2s linear infinite;
+      -ms-animation: spin 2s linear infinite;
+      -moz-animation: spin 2s linear infinite;
+      -o-animation: spin 2s linear infinite;
+      animation: spin 2s linear infinite;
+      z-index: 1001;
+    }
+
+    #loader:before {
+      content: "";
+      position: absolute;
+      top: 5px;
+      left: 5px;
+      right: 5px;
+      bottom: 5px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 3s linear infinite;
+      -moz-animation: spin 3s linear infinite;
+      -o-animation: spin 3s linear infinite;
+      -ms-animation: spin 3s linear infinite;
+      animation: spin 3s linear infinite;
+    }
+
+    #loader:after {
+      content: "";
+      position: absolute;
+      top: 15px;
+      left: 15px;
+      right: 15px;
+      bottom: 15px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -moz-animation: spin 1.5s linear infinite;
+      -o-animation: spin 1.5s linear infinite;
+      -ms-animation: spin 1.5s linear infinite;
+      -webkit-animation: spin 1.5s linear infinite;
+      animation: spin 1.5s linear infinite;
+    }
+
+
+    @-webkit-keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+    @keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+
+    #loader-wrapper .loader-section {
+      position: fixed;
+      top: 0;
+      width: 51%;
+      height: 100%;
+      background: #7171C6;
+      z-index: 1000;
+      -webkit-transform: translateX(0);
+      -ms-transform: translateX(0);
+      transform: translateX(0);
+    }
+
+    #loader-wrapper .loader-section.section-left {
+      left: 0;
+    }
+
+    #loader-wrapper .loader-section.section-right {
+      right: 0;
+    }
+
+
+    .loaded #loader-wrapper .loader-section.section-left {
+      -webkit-transform: translateX(-100%);
+      -ms-transform: translateX(-100%);
+      transform: translateX(-100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader-wrapper .loader-section.section-right {
+      -webkit-transform: translateX(100%);
+      -ms-transform: translateX(100%);
+      transform: translateX(100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader {
+      opacity: 0;
+      -webkit-transition: all 0.3s ease-out;
+      transition: all 0.3s ease-out;
+    }
+
+    .loaded #loader-wrapper {
+      visibility: hidden;
+      -webkit-transform: translateY(-100%);
+      -ms-transform: translateY(-100%);
+      transform: translateY(-100%);
+      -webkit-transition: all 0.3s 1s ease-out;
+      transition: all 0.3s 1s ease-out;
+    }
+
+    .no-js #loader-wrapper {
+      display: none;
+    }
+
+    .no-js h1 {
+      color: #222222;
+    }
+
+    #loader-wrapper .load_title {
+      font-family: 'Open Sans';
+      color: #FFF;
+      font-size: 16px;
+      width: 100%;
+      text-align: center;
+      z-index: 9999999999999;
+      position: absolute;
+      top: 60%;
+      opacity: 1;
+      line-height: 30px;
+    }
+
+    #loader-wrapper .load_title span {
+      font-weight: normal;
+      font-style: italic;
+      font-size: 13px;
+      color: #FFF;
+      opacity: 0.5;
+    }
+  </style>
+  </head>
+  <body>
+    <audio id='remoteAudio'  autoPlay></audio>
+    <div id="app">
+	    <div id="loader-wrapper">
+		    <div id="loader"></div>
+		    <div class="loader-section section-left"></div>
+		    <div class="loader-section section-right"></div>
+		    <div class="load_title">正在加载系统资源,请耐心等待</div>
+        </div>
+	</div>
+  </body>
+</html>

+ 2 - 0
public/robots.txt

@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 27672 - 0
public/sdk.js


+ 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>

+ 254 - 0
public/wx.html

@@ -0,0 +1,254 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <link rel="icon" href="data:;base64,=">
+  <meta charset="UTF-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title></title>
+  <meta name="description" content="">
+  <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.4.1/weui.min.css"></link>
+  <script src="https://n.stcfile.com/inner/wlh5/jquery.min.js"></script>
+  <link rel="stylesheet" type="text/css" href="https://n.stcfile.com/inner/wlh5/home_links.css">
+  <script>
+    window.onerror = e => {
+      console.error(e)
+    }
+  </script>
+</head>
+<body>
+  <div class="page full">
+    <div id="public-web-container" class="public-container">
+        <div id="safe-notice" style="display:none;">
+            <div class="safe-notice">
+                <img src="https://n.stcfile.com/inner/wlh5/safe.png">
+                <p>本链接经过<font style="font-weight: 500;color: #333333;">SSL安全加密</font>,请放心点击!</p>
+            </div>
+        </div>
+        <div id="style_normal" style="display:none;">
+            <img class="logo" src="">
+            <p class="notice-msg"><small style="font-weight: 500;">正在跳转中...</small><br>如未自动打开微信请点击下方按钮</p>
+            <div class="button-container" onclick="getInfos()">
+                <a id="public-web-jump-button" type="button" class="default" style="width: 66%; margin-top: 20px;">
+                    <span id="public-web-jump-button-loading" class="weui-primary-loading weui-primary-loading_transparent">
+                        <i class="weui-primary-loading__dot"></i>
+                    </span>
+                    <span style="font-weight: 500;">正在打开微信</span>
+                  </a>
+            </div>
+            <a id="dianjiimg_links" href="">
+            </a>
+            <div class="qrcodes-container" id="qrcodes"></div>
+        </div>
+        <div id="style_full" style="display:none;">
+            <a id="dianjiimg_links_full" href="">
+                <img class="fullimg" src="">
+            </a>
+            <div id="button_container_full" class="button-container-none">
+                <a id="public-web-jump-button-full" href="" style="">
+                </a>
+            </div>
+        </div>
+    </div>
+  </div>
+
+  <script type="text/javascript">
+    var cid=0;
+    $(document).ready(function() {
+        cid=getQueryString("id");
+        htmlInfo();
+        getInfos();
+    });
+
+    function  getQueryString(name){
+      var  reg = new  RegExp( "(^|&)" + name + "=([^&]*)(&|$)" );
+      var  r = window.location.search.substr(1).match(reg);
+      if (r!= null ) return   unescape(r[2]); return  null ;
+    }
+
+    
+    function htmlInfo() {
+      var mobile_flag = isMobile();
+        if (mobile_flag) {
+          $("#safe-notice").show();
+          $("#style_normal").show();
+          $(".logo").attr("src","https://n.stcfile.com/inner/wlh5/wx_202204.png")
+        } else {
+          $("#safe-notice").hide();
+          $("#style_normal").hide();
+          $(".public-container").html('请使用手机访问本链接'+'</p>');
+        }
+    }
+
+    function getInfos() {
+      
+      var weixin = isWeiXin();
+    //   var res={
+    //         "code": 200,
+    //         "msg": "success",
+    //         "result": {
+    //                 "openlink": "weixin:\/\/dl\/business\/?t=Dyq5kn9Vfyf"
+    //             }
+    //     };
+	   
+	//    if (res.code === 200) {
+    //     if (!weixin) {
+    //       $("#dianjiimg_links").attr('href', res.result.openlink)
+    //       // $("#public-web-jump-button").attr("href", res.result.openlink)
+    //       jsUpdate(res)
+    //     }
+	//    } else {
+	//    	    $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
+	//    }
+      
+      $.ajax({
+            type: "get",
+            //async: false,
+            //dataType: "jsonp",
+            //jsonp: "callback",//传递给请求处理程序或页面的,标识jsonp回调函数名(一般为:callback)
+            //jsonpCallback: "GetData",//callback的function名称
+            //url: "http://127.0.0.1:7015/app/user/getAppletScheme", 
+            url: "http://139.186.77.83:7015/app/user/getAppletScheme",
+            data: {
+              "cardId":cid,
+              // "domain": "eturl.cn",
+              // "cookie":"ca77320dfefbda77f218b15fb5e64e96",
+              // "f":"bd084627"
+            },
+            success: function(res) {
+                  if (res.code === 200) {
+                      if (!weixin) {
+                        $("#dianjiimg_links").attr('href', res.result.openlink)
+                        // $("#public-web-jump-button").attr("href", res.result.openlink)
+                        jsUpdate(res)
+                      }
+                  } 
+                  else {
+                        $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
+                  }
+              }
+      });
+   
+	}
+    function jsUpdate(res) {
+            var mobile_flag = isMobile();
+            var weixin = isWeiXin();
+            if(mobile_flag){
+                var baidu = isBaidu();
+                var uc = isUc();
+                var weibo = isWeibo();
+                var douyin = isDouyin();
+                if (weixin) {
+
+                } 
+                else if (uc) {
+                    $("#public-web-jump-button").html("点击立即前往微信");
+                    $("#dianjiimg").show();
+                    window.location.href = res.result.openlink;
+                } 
+                else if (douyin) {
+                    if (res.result.openlink !== '') {
+                      window.location.href = res.result.openlink;
+                      // $("#public-web-jump-button span").click();
+                    }
+                } 
+                else if (weibo) {
+                  window.location.href = res.result.openlink;
+                } 
+                else {
+                    $("#dianjiimg").show();
+                    if (res.result.openlink !== '') {
+                      window.location.href = res.result.openlink;
+                      // $("#public-web-jump-button span").click();
+                    }
+                    setTimeout(function (){
+                        $("#public-web-jump-button").html("点击立即前往微信");
+                        $("#dianjiimg").show();
+                    }, 3000);
+                }
+            } else {
+                // 强行调用一波URLScheme
+                if (res.result.openlink !== '') {
+                  window.location.href = res.result.openlink;
+                }
+                $(".notice-msg").html("请使用手机访问本网页!");
+            }
+        }
+
+    function isWeiXin(){
+        var ua = navigator.userAgent.toLowerCase()
+        var isWXWork = ua.match(/wxwork/i) == 'wxwork'
+        var isWeixin = !isWXWork && ua.match(/micromessenger/i) == 'micromessenger'
+        return isWeixin;
+    }
+
+    function isDouyin(){
+            ua = navigator.userAgent.toLowerCase();
+            if (ua.indexOf('aweme') >-1){
+                return true;
+            } else {
+                return false;
+            }
+        }
+
+    function isBaidu(){
+        ua = navigator.userAgent.toLowerCase();
+        if (ua.indexOf('baiduboxapp/') >-1){
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    function isUc() {
+        if (navigator.userAgent.match(/(UCBrowser|Quark)/i)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    function isWeibo() {
+        var ua = navigator.userAgent;
+        if(ua.indexOf('Weibo') > -1) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    function getQueryVariable(variable)
+    {
+        var query = window.location.search.substring(1);
+        var vars = query.split("&");
+        for (var i=0;i<vars.length;i++) {
+            var pair = vars[i].split("=");
+            if(pair[0] == variable){return pair[1];}
+        }
+        return(false);
+    }
+
+    function isMobile() {
+        var mobile_flag = true;
+        if (navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|XiaoMi|IEMobile)/i)) {
+            mobile_flag = true;
+        } else {
+            mobile_flag = false;
+        }
+        var screen_width = window.screen.availWidth;
+        if(screen_width < 700){
+            mobile_flag = true;
+        }
+        return mobile_flag;
+    }
+
+    function isIphone() {
+        if (navigator.userAgent.match(/(iPhone|iPod|ios|iPad)/i)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+  </script>
+</body>
+</html>

+ 11 - 0
src/App.vue

@@ -0,0 +1,11 @@
+<template>
+  <div id="app">
+    <router-view />
+  </div>
+</template>
+
+<script>
+export default  {
+  name:  'App'
+}
+</script>

+ 53 - 0
src/api/ad/AdDyAccount.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询抖音账户列表
+export function listAdDyAccount(query) {
+  return request({
+    url: '/ad/AdDyAccount/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询抖音账户详细
+export function getAdDyAccount(id) {
+  return request({
+    url: '/ad/AdDyAccount/' + id,
+    method: 'get'
+  })
+}
+
+// 新增抖音账户
+export function addAdDyAccount(data) {
+  return request({
+    url: '/ad/AdDyAccount',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改抖音账户
+export function updateAdDyAccount(data) {
+  return request({
+    url: '/ad/AdDyAccount',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除抖音账户
+export function delAdDyAccount(id) {
+  return request({
+    url: '/ad/AdDyAccount/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出抖音账户
+export function exportAdDyAccount(query) {
+  return request({
+    url: '/ad/AdDyAccount/export',
+    method: 'get',
+    params: query
+  })
+}

+ 60 - 0
src/api/ad/AdIqiyiAccount.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询爱奇艺广告账号列表
+export function listAdIqiyiAccount(query) {
+  return request({
+    url: '/ad/AdIqiyiAccount/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询爱奇艺广告账号详细
+export function getAdIqiyiAccount(id) {
+  return request({
+    url: '/ad/AdIqiyiAccount/' + id,
+    method: 'get'
+  })
+}
+
+// 查询优酷广告账号详细
+export function listAll() {
+  return request({
+    url: '/ad/AdIqiyiAccount/listAll',
+    method: 'get'
+  })
+}
+// 新增爱奇艺广告账号
+export function addAdIqiyiAccount(data) {
+  return request({
+    url: '/ad/AdIqiyiAccount',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改爱奇艺广告账号
+export function updateAdIqiyiAccount(data) {
+  return request({
+    url: '/ad/AdIqiyiAccount',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除爱奇艺广告账号
+export function delAdIqiyiAccount(id) {
+  return request({
+    url: '/ad/AdIqiyiAccount/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出爱奇艺广告账号
+export function exportAdIqiyiAccount(query) {
+  return request({
+    url: '/ad/AdIqiyiAccount/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/ad/AdUploadLog.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询百度回传日志列表
+export function listAdUploadLog(query) {
+  return request({
+    url: '/ad/AdUploadLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询百度回传日志详细
+export function getAdUploadLog(id) {
+  return request({
+    url: '/ad/AdUploadLog/' + id,
+    method: 'get'
+  })
+}
+
+// 新增百度回传日志
+export function addAdUploadLog(data) {
+  return request({
+    url: '/ad/AdUploadLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改百度回传日志
+export function updateAdUploadLog(data) {
+  return request({
+    url: '/ad/AdUploadLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除百度回传日志
+export function delAdUploadLog(id) {
+  return request({
+    url: '/ad/AdUploadLog/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出百度回传日志
+export function exportAdUploadLog(query) {
+  return request({
+    url: '/ad/AdUploadLog/export',
+    method: 'get',
+    params: query
+  })
+}

+ 60 - 0
src/api/ad/AdYouKuaccount.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询优酷广告账号列表
+export function listAdYouKuAccount(query) {
+  return request({
+    url: '/ad/AdYouKuAccount/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询优酷广告账号详细
+export function getAdYouKuAccount(id) {
+  return request({
+    url: '/ad/AdYouKuAccount/' + id,
+    method: 'get'
+  })
+}
+// 查询优酷广告账号详细
+export function listAll() {
+  return request({
+    url: '/ad/AdYouKuAccount/listAll',
+    method: 'get'
+  })
+}
+
+// 新增优酷广告账号
+export function addAdYouKuAccount(data) {
+  return request({
+    url: '/ad/AdYouKuAccount',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改优酷广告账号
+export function updateAdYouKuAccount(data) {
+  return request({
+    url: '/ad/AdYouKuAccount',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除优酷广告账号
+export function delAdYouKuAccount(id) {
+  return request({
+    url: '/ad/AdYouKuAccount/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出优酷广告账号
+export function exportAdYouKuAccount(query) {
+  return request({
+    url: '/ad/AdYouKuAccount/export',
+    method: 'get',
+    params: query
+  })
+}

+ 9 - 0
src/api/ad/adAccount.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+// 查询推广账户列表
+export function listAll() {
+  return request({
+    url: '/ad/adAccount/listAll',
+    method: 'get',
+  })
+}

+ 60 - 0
src/api/ad/adDomain.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询广告域名列表
+export function listAdDomain(query) {
+  return request({
+    url: '/ad/adDomain/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询广告域名列表
+export function listAll() {
+  return request({
+    url: '/ad/adDomain/listAll',
+    method: 'get',
+  })
+}
+
+// 查询广告域名详细
+export function getAdDomain(id) {
+  return request({
+    url: '/ad/adDomain/' + id,
+    method: 'get'
+  })
+}
+
+// 新增广告域名
+export function addAdDomain(data) {
+  return request({
+    url: '/ad/adDomain',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改广告域名
+export function updateAdDomain(data) {
+  return request({
+    url: '/ad/adDomain',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除广告域名
+export function delAdDomain(id) {
+  return request({
+    url: '/ad/adDomain/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出广告域名
+export function exportAdDomain(query) {
+  return request({
+    url: '/ad/adDomain/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/ad/adSite.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询站点管理列表
+export function listAdSite(query) {
+  return request({
+    url: '/ad/adSite/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询站点管理详细
+export function getAdSite(id) {
+  return request({
+    url: '/ad/adSite/' + id,
+    method: 'get'
+  })
+}
+
+// 新增站点管理
+export function addAdSite(data) {
+  return request({
+    url: '/ad/adSite',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改站点管理
+export function updateAdSite(data) {
+  return request({
+    url: '/ad/adSite',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除站点管理
+export function delAdSite(id) {
+  return request({
+    url: '/ad/adSite/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出站点管理
+export function exportAdSite(query) {
+  return request({
+    url: '/ad/adSite/export',
+    method: 'get',
+    params: query
+  })
+}
+// 导出站点管理
+export function listAll(query) {
+  return request({
+    url: '/ad/adSite/listAll',
+    method: 'get',
+    params: query
+  })
+}

+ 60 - 0
src/api/ad/htmlTemplate.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询广告信息流链接列表
+export function listHtml(query) {
+  return request({
+    url: '/ad/html/template/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询广告信息流链接列表
+export function listAll() {
+  return request({
+    url: '/ad/html/template/listAll',
+    method: 'get',
+  })
+}
+
+// 查询广告信息流链接详细
+export function getHtml(id) {
+  return request({
+    url: '/ad/html/template/' + id,
+    method: 'get'
+  })
+}
+
+// 新增广告信息流链接
+export function addHtml(data) {
+  return request({
+    url: '/ad/html/template',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改广告信息流链接
+export function updateHtml(data) {
+  return request({
+    url: '/ad/html/template',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除广告信息流链接
+export function delHtml(id) {
+  return request({
+    url: '/ad/html/template/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出广告信息流链接
+export function exportHtml(query) {
+  return request({
+    url: '/ad/html/template/export',
+    method: 'get',
+    params: query
+  })
+}

+ 5 - 0
src/api/admin/ad.js

@@ -0,0 +1,5 @@
+import request from '@/utils/request'
+
+export function listAdAccount(query) {
+  return request({ url: '/admin/ad/list', method: 'get', params: query })
+}

+ 78 - 0
src/api/admin/aiChatQuality.js

@@ -0,0 +1,78 @@
+import request from '@/utils/request'
+
+// 查询AI聊天会话列表
+export function listChatSessions(query) {
+  return request({
+    url: '/admin/aiChatQuality/sessions',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据租户ID查询会话列表
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/aiChatQuality/sessions',
+    method: 'get',
+    params: { companyId }
+  })
+}
+
+// 获取会话详情
+export function getSessionDetail(sessionId) {
+  return request({
+    url: '/admin/aiChatQuality/session/' + sessionId,
+    method: 'get'
+  })
+}
+
+// 获取会话消息列表
+export function getSessionMessages(sessionId) {
+  return request({
+    url: '/admin/aiChatQuality/messages/' + sessionId,
+    method: 'get'
+  })
+}
+
+// 添加质检记录
+export function addQualityRecord(data) {
+  return request({
+    url: '/admin/aiChatQuality/record',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询质检记录列表
+export function listQualityRecords(query) {
+  return request({
+    url: '/admin/aiChatQuality/records',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取质检记录详情
+export function getQualityRecord(id) {
+  return request({
+    url: '/admin/aiChatQuality/record/' + id,
+    method: 'get'
+  })
+}
+
+// 修改质检记录
+export function updateQualityRecord(data) {
+  return request({
+    url: '/admin/aiChatQuality/record',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除质检记录
+export function deleteQualityRecord(id) {
+  return request({
+    url: '/admin/aiChatQuality/record/' + id,
+    method: 'delete'
+  })
+}

+ 29 - 0
src/api/admin/aiProvider.js

@@ -0,0 +1,29 @@
+import request from '@/utils/request'
+
+export function listAiProvider() {
+  return request({ url: '/knowledge/ai-provider/list', method: 'get' })
+}
+
+export function getAiProvider(id) {
+  return request({ url: '/knowledge/ai-provider/' + id, method: 'get' })
+}
+
+export function addAiProvider(data) {
+  return request({ url: '/knowledge/ai-provider', method: 'post', data })
+}
+
+export function updateAiProvider(id, data) {
+  return request({ url: '/knowledge/ai-provider/' + id, method: 'put', data })
+}
+
+export function deleteAiProvider(id) {
+  return request({ url: '/knowledge/ai-provider/' + id, method: 'delete' })
+}
+
+export function setDefaultAiProvider(id) {
+  return request({ url: '/knowledge/ai-provider/' + id + '/set-default', method: 'post' })
+}
+
+export function testAiProvider(data) {
+  return request({ url: '/knowledge/ai-provider/test', method: 'post', data })
+}

+ 59 - 0
src/api/admin/article.js

@@ -0,0 +1,59 @@
+import request from '@/utils/request'
+
+// 查询所有租户文章列表
+export function listAllArticles(query) {
+  return request({
+    url: '/admin/article/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询待审计文章列表
+export function listPendingArticles() {
+  return request({
+    url: '/admin/article/pending',
+    method: 'get'
+  })
+}
+
+// 根据租户ID查询文章列表
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/article/byCompany/' + companyId,
+    method: 'get'
+  })
+}
+
+// 获取文章详情
+export function getArticleInfo(articleId) {
+  return request({
+    url: '/admin/article/' + articleId,
+    method: 'get'
+  })
+}
+
+// 审计文章
+export function auditArticle(articleId, status, auditRemark) {
+  return request({
+    url: '/admin/article/audit/' + articleId,
+    method: 'put',
+    params: { status, auditRemark }
+  })
+}
+
+// 删除文章
+export function deleteArticle(articleId) {
+  return request({
+    url: '/admin/article/' + articleId,
+    method: 'delete'
+  })
+}
+
+// 获取文章统计信息
+export function getArticleStatistics() {
+  return request({
+    url: '/admin/article/statistics',
+    method: 'get'
+  })
+}

+ 94 - 0
src/api/admin/callRecord.js

@@ -0,0 +1,94 @@
+import request from '@/utils/request'
+
+// 查询所有租户外呼通话记录列表
+export function listAllCallRecords(query) {
+  return request({
+    url: '/admin/callRecord/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据租户ID查询外呼记录
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/callRecord/byCompany/' + companyId,
+    method: 'get'
+  })
+}
+
+// 获取外呼记录详情
+export function getCallRecordInfo(logId) {
+  return request({
+    url: '/admin/callRecord/' + logId,
+    method: 'get'
+  })
+}
+
+// 获取通话录音
+export function getCallAudio(logId) {
+  return request({
+    url: '/admin/callRecord/audio/' + logId,
+    method: 'get'
+  })
+}
+
+// 查询质检记录列表
+export function listQualityRecords(query) {
+  return request({
+    url: '/admin/callRecord/quality/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取质检记录详情
+export function getQualityRecord(id) {
+  return request({
+    url: '/admin/callRecord/quality/' + id,
+    method: 'get'
+  })
+}
+
+// 新增质检记录
+export function addQualityRecord(data) {
+  return request({
+    url: '/admin/callRecord/quality',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改质检记录
+export function updateQualityRecord(data) {
+  return request({
+    url: '/admin/callRecord/quality',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除质检记录
+export function deleteQualityRecord(id) {
+  return request({
+    url: '/admin/callRecord/quality/' + id,
+    method: 'delete'
+  })
+}
+
+// 报备质检
+export function reportQuality(logIds) {
+  return request({
+    url: '/admin/callRecord/report',
+    method: 'post',
+    data: logIds
+  })
+}
+
+// 获取通话统计信息
+export function getCallStatistics() {
+  return request({
+    url: '/admin/callRecord/statistics',
+    method: 'get'
+  })
+}

+ 34 - 0
src/api/admin/course.js

@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询所有租户课程列表
+export function listAllCourses(query) {
+  return request({
+    url: '/admin/course/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据租户ID查询课程列表
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/course/byCompany/' + companyId,
+    method: 'get'
+  })
+}
+
+// 获取课程详情
+export function getCourseInfo(courseId) {
+  return request({
+    url: '/admin/course/' + courseId,
+    method: 'get'
+  })
+}
+
+// 获取课程统计信息
+export function getCourseStatistics() {
+  return request({
+    url: '/admin/course/statistics',
+    method: 'get'
+  })
+}

+ 5 - 0
src/api/admin/crm.js

@@ -0,0 +1,5 @@
+import request from '@/utils/request'
+
+export function listCrmCustomer(query) {
+  return request({ url: '/admin/crm/list', method: 'get', params: query })
+}

+ 34 - 0
src/api/admin/live.js

@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询所有租户直播列表
+export function listAllLives(query) {
+  return request({
+    url: '/admin/live/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据租户ID查询直播列表
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/live/byCompany/' + companyId,
+    method: 'get'
+  })
+}
+
+// 获取直播详情
+export function getLiveInfo(liveId) {
+  return request({
+    url: '/admin/live/' + liveId,
+    method: 'get'
+  })
+}
+
+// 获取直播统计信息
+export function getLiveStatistics() {
+  return request({
+    url: '/admin/live/statistics',
+    method: 'get'
+  })
+}

+ 92 - 0
src/api/admin/lobster.js

@@ -0,0 +1,92 @@
+import request from '@/utils/request'
+
+// ======== 全局工作流实例监控 ========
+
+// 查看所有租户的工作流实例列表
+export function listAllInstances(params) {
+  return request({ url: '/admin/lobster/instance/list', method: 'get', params })
+}
+
+// 查看指定实例详情(跨租户)
+export function getInstanceDetail(instanceId) {
+  return request({ url: `/admin/lobster/instance/${instanceId}`, method: 'get' })
+}
+
+// 查看指定实例的节点执行日志
+export function getInstanceNodeLogs(instanceId) {
+  return request({ url: `/admin/lobster/instance/node-logs/${instanceId}`, method: 'get' })
+}
+
+// 强制终止指定实例(管理级操作)
+export function forceTerminateInstance(instanceId, reason) {
+  return request({ url: `/admin/lobster/instance/terminate/${instanceId}`, method: 'post', params: { reason } })
+}
+
+// 全局工作流运行统计
+export function getInstanceStats() {
+  return request({ url: '/admin/lobster/instance/stats', method: 'get' })
+}
+
+// ======== 全局死信队列管理 ========
+
+export function listAllDeadLetters(params) {
+  return request({ url: '/admin/lobster/dead-letter/list', method: 'get', params })
+}
+
+export function retryAllDeadLetters() {
+  return request({ url: '/admin/lobster/dead-letter/retry-all', method: 'post' })
+}
+
+export function getDeadLetterStats() {
+  return request({ url: '/admin/lobster/dead-letter/stats', method: 'get' })
+}
+
+// ======== 全局节点审核 ========
+
+export function listAllEventAudits(params) {
+  return request({ url: '/admin/lobster/event-audit/list', method: 'get', params })
+}
+
+export function approveEventAudit(id) {
+  return request({ url: `/admin/lobster/event-audit/approve/${id}`, method: 'post' })
+}
+
+export function rejectEventAudit(id, data) {
+  return request({ url: `/admin/lobster/event-audit/reject/${id}`, method: 'post', data })
+}
+
+export function getEventAuditDetail(id) {
+  return request({ url: `/admin/lobster/event-audit/${id}`, method: 'get' })
+}
+
+// ======== 全局优化建议 ========
+
+export function listAllOptimization(params) {
+  return request({ url: '/admin/lobster/optimization/list', method: 'get', params })
+}
+
+export function batchAuditOptimization(data) {
+  return request({ url: '/admin/lobster/optimization/batch-audit', method: 'post', data })
+}
+
+export function getOptimizationStats() {
+  return request({ url: '/admin/lobster/optimization/stats', method: 'get' })
+}
+
+// ======== 全局Token计费统计 ========
+
+export function listAllBillingRecords(params) {
+  return request({ url: '/admin/lobster/billing/records', method: 'get', params })
+}
+
+export function getBillingStats() {
+  return request({ url: '/admin/lobster/billing/stats', method: 'get' })
+}
+
+export function getTokenCoefficient() {
+  return request({ url: '/admin/lobster/billing/token-coefficient', method: 'get' })
+}
+
+export function updateTokenCoefficient(data) {
+  return request({ url: '/admin/lobster/billing/token-coefficient', method: 'put', data })
+}

+ 21 - 0
src/api/admin/moduleUsage.js

@@ -0,0 +1,21 @@
+import request from '@/utils/request'
+
+export function listModuleUsage(query) {
+  return request({ url: '/admin/module-usage/list', method: 'get', params: query })
+}
+
+export function getProxyDetail(proxyId, statDate) {
+  return request({ url: `/admin/module-usage/proxy/${proxyId}`, method: 'get', params: { statDate } })
+}
+
+export function getTenantDetail(tenantId) {
+  return request({ url: `/admin/module-usage/tenant/${tenantId}`, method: 'get' })
+}
+
+export function refreshStatistics() {
+  return request({ url: '/admin/module-usage/refresh', method: 'post' })
+}
+
+export function refreshTenantStatistics(tenantId) {
+  return request({ url: `/admin/module-usage/refresh/${tenantId}`, method: 'post' })
+}

+ 51 - 0
src/api/admin/product.js

@@ -0,0 +1,51 @@
+import request from '@/utils/request'
+
+// 查询所有租户商品列表
+export function listAllProducts(query) {
+  return request({
+    url: '/admin/product/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询待审核商品列表
+export function listPendingProducts() {
+  return request({
+    url: '/admin/product/pending',
+    method: 'get'
+  })
+}
+
+// 根据租户ID查询商品列表
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/product/byCompany/' + companyId,
+    method: 'get'
+  })
+}
+
+// 获取商品详情
+export function getProductInfo(productId) {
+  return request({
+    url: '/admin/product/' + productId,
+    method: 'get'
+  })
+}
+
+// 审核商品
+export function auditProduct(productId, status, auditRemark) {
+  return request({
+    url: '/admin/product/audit/' + productId,
+    method: 'put',
+    params: { status, auditRemark }
+  })
+}
+
+// 获取商品统计信息
+export function getProductStatistics() {
+  return request({
+    url: '/admin/product/statistics',
+    method: 'get'
+  })
+}

+ 79 - 0
src/api/admin/proxy.js

@@ -0,0 +1,79 @@
+import request from '@/utils/request'
+
+// ======== 代理 CRUD ========
+
+export function listProxy(query) {
+  return request({ url: '/admin/proxy/list', method: 'get', params: query })
+}
+
+export function getProxy(proxyId) {
+  return request({ url: `/admin/proxy/${proxyId}`, method: 'get' })
+}
+
+export function addProxy(data) {
+  return request({ url: '/admin/proxy', method: 'post', data })
+}
+
+export function updateProxy(data) {
+  return request({ url: '/admin/proxy', method: 'put', data })
+}
+
+export function delProxy(proxyIds) {
+  return request({ url: `/admin/proxy/${proxyIds}`, method: 'delete' })
+}
+
+export function changeProxyStatus(proxyId, status) {
+  return request({ url: `/admin/proxy/changeStatus/${proxyId}`, method: 'put', params: { status } })
+}
+
+export function allEnabledProxies() {
+  return request({ url: '/admin/proxy/allEnabled', method: 'get' })
+}
+
+// ======== 代理服务价格配置 ========
+
+export function listServicePrice(query) {
+  return request({ url: '/proxy/servicePrice/list', method: 'get', params: query })
+}
+
+export function getServicePriceByProxy(proxyId) {
+  return request({ url: `/proxy/servicePrice/byProxy/${proxyId}`, method: 'get' })
+}
+
+export function addServicePrice(data) {
+  return request({ url: '/proxy/servicePrice', method: 'post', data })
+}
+
+export function updateServicePrice(data) {
+  return request({ url: '/proxy/servicePrice', method: 'put', data })
+}
+
+export function batchUpdateServicePrice(data) {
+  return request({ url: '/proxy/servicePrice/batch', method: 'put', data })
+}
+
+export function initDefaultPriceConfig(proxyId, proxyName) {
+  return request({ url: `/proxy/servicePrice/init/${proxyId}`, method: 'post', params: { proxyName } })
+}
+
+// ======== 代理-租户关联 ========
+
+export function listProxyTenantRel(query) {
+  return request({ url: '/proxy/tenantRel/list', method: 'get', params: query })
+}
+
+export function getTenantsByProxy(proxyId) {
+  return request({ url: `/proxy/tenantRel/byProxy/${proxyId}`, method: 'get' })
+}
+
+export function bindTenant(proxyId, tenantId, profitShareRatio) {
+  return request({ url: '/proxy/tenantRel/bind', method: 'post', params: { proxyId, tenantId, profitShareRatio } })
+}
+
+export function unbindTenant(tenantId) {
+  return request({ url: `/proxy/tenantRel/unbind/${tenantId}`, method: 'post' })
+}
+
+export function checkTenantBind(tenantId) {
+  return request({ url: `/proxy/tenantRel/checkBind/${tenantId}`, method: 'get' })
+}

+ 34 - 0
src/api/admin/qwExternalContact.js

@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询所有租户企微用户列表
+export function listAllExternalContact(query) {
+  return request({
+    url: '/admin/qwContact/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询指定租户企微用户列表
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/qwContact/byCompany/' + companyId,
+    method: 'get'
+  })
+}
+
+// 获取企微用户详情
+export function getExternalContact(id) {
+  return request({
+    url: '/admin/qwContact/' + id,
+    method: 'get'
+  })
+}
+
+// 获取统计信息
+export function getStatistics() {
+  return request({
+    url: '/admin/qwContact/statistics',
+    method: 'get'
+  })
+}

+ 9 - 0
src/api/admin/sop.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+export function listSop(query) {
+  return request({ url: '/admin/sop/list', method: 'get', params: query })
+}
+
+export function listSopTemp(query) {
+  return request({ url: '/admin/sop/temp/list', method: 'get', params: query })
+}

+ 61 - 0
src/api/admin/statistics.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 平台总览
+export function getOverview() {
+  return request({ url: '/admin/statistics/overview', method: 'get' })
+}
+
+// 代理分佣统计
+export function getProxyProfitStatistics(params) {
+  return request({ url: '/admin/statistics/proxyProfit', method: 'get', params })
+}
+
+// 代理分佣详情
+export function getProxyProfitDetail(proxyId, params) {
+  return request({ url: `/admin/statistics/proxyProfit/${proxyId}`, method: 'get', params })
+}
+
+// 租户消费统计
+export function getTenantConsumeStatistics(params) {
+  return request({ url: '/admin/statistics/tenantConsume', method: 'get', params })
+}
+
+// 租户消费详情
+export function getTenantDetail(tenantId, params) {
+  return request({ url: `/admin/statistics/tenantDetail/${tenantId}`, method: 'get', params })
+}
+
+// 消费类型统计
+export function getConsumeTypeStatistics(params) {
+  return request({ url: '/admin/statistics/consumeType', method: 'get', params })
+}
+
+// 平台成本汇总
+export function getCostSummary(params) {
+  return request({ url: '/admin/statistics/costSummary', method: 'get', params })
+}
+
+// 平台趋势
+export function getPlatformTrend(params) {
+  return request({ url: '/admin/statistics/trend', method: 'get', params })
+}
+
+// 小时统计
+export function getHourlyStatistics(statDate, dimension) {
+  return request({ url: '/admin/statistics/hourly', method: 'get', params: { statDate, dimension } })
+}
+
+// 服务成本配置
+export function getCostConfigList() {
+  return request({ url: '/admin/statistics/costConfig', method: 'get' })
+}
+
+// 原始消费记录
+export function getConsumeRecords(params) {
+  return request({ url: '/admin/statistics/consumeRecords', method: 'get', params })
+}
+
+// 手动执行统计
+export function executeStatistics(type) {
+  return request({ url: '/admin/statistics/execute', method: 'post', params: { type } })
+}

+ 5 - 0
src/api/admin/storeOrder.js

@@ -0,0 +1,5 @@
+import request from '@/utils/request'
+
+export function listStoreOrder(query) {
+  return request({ url: '/admin/storeOrder/list', method: 'get', params: query })
+}

+ 44 - 0
src/api/admin/sysCompany.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询所有租户列表
+export function listAllCompanies(query) {
+  return request({
+    url: '/admin/company/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取租户详情
+export function getCompanyInfo(companyId) {
+  return request({
+    url: '/admin/company/' + companyId,
+    method: 'get'
+  })
+}
+
+// 禁用租户
+export function disableCompany(companyId) {
+  return request({
+    url: '/admin/company/status/' + companyId,
+    method: 'put',
+    params: { status: 1 }
+  })
+}
+
+// 启用租户
+export function enableCompany(companyId) {
+  return request({
+    url: '/admin/company/status/' + companyId,
+    method: 'put',
+    params: { status: 0 }
+  })
+}
+
+// 获取租户统计信息
+export function getStatistics() {
+  return request({
+    url: '/admin/company/statistics',
+    method: 'get'
+  })
+}

+ 61 - 0
src/api/admin/sysUser.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询所有租户员工列表
+export function listAllUsers(query) {
+  return request({
+    url: '/admin/companyUser/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据租户ID查询员工列表
+export function listByCompany(companyId) {
+  return request({
+    url: '/admin/companyUser/byCompany/' + companyId,
+    method: 'get'
+  })
+}
+
+// 获取员工详情
+export function getUserInfo(userId) {
+  return request({
+    url: '/admin/companyUser/' + userId,
+    method: 'get'
+  })
+}
+
+// 禁用员工账户
+export function disableUser(userId) {
+  return request({
+    url: '/admin/companyUser/status/' + userId,
+    method: 'put',
+    params: { status: 1 }
+  })
+}
+
+// 启用员工账户
+export function enableUser(userId) {
+  return request({
+    url: '/admin/companyUser/status/' + userId,
+    method: 'put',
+    params: { status: 0 }
+  })
+}
+
+// 查询员工账户变化记录
+export function listChangeLogs(query) {
+  return request({
+    url: '/admin/companyUser/changeList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取统计信息
+export function getStatistics() {
+  return request({
+    url: '/admin/companyUser/statistics',
+    method: 'get'
+  })
+}

+ 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'
+  })
+}
+

+ 62 - 0
src/api/aiDpctorChat/aiDoctorChat.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询对话关系列表
+export function listSession(query) {
+  return request({
+    url: '/doctorChat/session/list',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function listMsg(query) {
+  return request({
+    url: '/doctorChat/msg/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询对话关系详细
+export function getChatSession(sessionId) {
+  return request({
+    url: '/doctorChat/session/' + sessionId,
+    method: 'get'
+  })
+}
+
+// 新增对话关系
+export function addSession(data) {
+  return request({
+    url: '/doctorChat/session',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改对话关系
+export function updateSession(data) {
+  return request({
+    url: '/doctorChat/session',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除对话关系
+export function delSession(sessionId) {
+  return request({
+    url: '/doctorChat/session/' + sessionId,
+    method: 'delete'
+  })
+}
+
+// 导出对话关系
+export function exportSession(query) {
+  return request({
+    url: '/doctorChat/session/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/aiDpctorChat/role.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询应用列表
+export function listRole(query) {
+  return request({
+    url: '/fastGpt/fastGptRole/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询应用详细
+export function getRole(roleId) {
+  return request({
+    url: '/fastGpt/fastGptRole/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增应用
+export function addRole(data) {
+  return request({
+    url: '/fastGpt/fastGptRole',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改应用
+export function updateRole(data) {
+  return request({
+    url: '/fastGpt/fastGptRole/',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除应用
+export function delRole(roleId) {
+  return request({
+    url: '/fastGpt/fastGptRole/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 导出应用
+export function exportRole(query) {
+  return request({
+    url: '/fastGpt/fastGptRoles/export',
+    method: 'get',
+    params: query
+  })
+}

+ 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
+  })
+}

+ 53 - 0
src/api/aiob/AiobBaiduCallApi.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询百度外呼接口配置列表
+export function listAiobBaiduCallApi(query) {
+  return request({
+    url: '/aiob/AiobBaiduCallApi/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询百度外呼接口配置详细
+export function getAiobBaiduCallApi(id) {
+  return request({
+    url: '/aiob/AiobBaiduCallApi/' + id,
+    method: 'get'
+  })
+}
+
+// 新增百度外呼接口配置
+export function addAiobBaiduCallApi(data) {
+  return request({
+    url: '/aiob/AiobBaiduCallApi',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改百度外呼接口配置
+export function updateAiobBaiduCallApi(data) {
+  return request({
+    url: '/aiob/AiobBaiduCallApi',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除百度外呼接口配置
+export function delAiobBaiduCallApi(id) {
+  return request({
+    url: '/aiob/AiobBaiduCallApi/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出百度外呼接口配置
+export function exportAiobBaiduCallApi(query) {
+  return request({
+    url: '/aiob/AiobBaiduCallApi/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/aiob/AiobBaiduEncryption.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询百度AI外呼加密列表
+export function listAiobBaiduEncryption(query) {
+  return request({
+    url: '/aiob/AiobBaiduEncryption/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询百度AI外呼加密详细
+export function getAiobBaiduEncryption(id) {
+  return request({
+    url: '/aiob/AiobBaiduEncryption/' + id,
+    method: 'get'
+  })
+}
+
+// 新增百度AI外呼加密
+export function addAiobBaiduEncryption(data) {
+  return request({
+    url: '/aiob/AiobBaiduEncryption',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改百度AI外呼加密
+export function updateAiobBaiduEncryption(data) {
+  return request({
+    url: '/aiob/AiobBaiduEncryption',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除百度AI外呼加密
+export function delAiobBaiduEncryption(id) {
+  return request({
+    url: '/aiob/AiobBaiduEncryption/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出百度AI外呼加密
+export function exportAiobBaiduEncryption(query) {
+  return request({
+    url: '/aiob/AiobBaiduEncryption/export',
+    method: 'get',
+    params: query
+  })
+}

+ 60 - 0
src/api/aiob/AiobBaiduTask.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询百度AI外呼任务列表
+export function listAiobBaiduTask(query) {
+  return request({
+    url: '/aiob/AiobBaiduTask/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询百度AI外呼任务详细
+export function getAiobBaiduTask(id) {
+  return request({
+    url: '/aiob/AiobBaiduTask/' + id,
+    method: 'get'
+  })
+}
+
+// 新增百度AI外呼任务
+export function addAiobBaiduTask(data) {
+  return request({
+    url: '/aiob/AiobBaiduTask',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改百度AI外呼任务
+export function updateAiobBaiduTask(data) {
+  return request({
+    url: '/aiob/AiobBaiduTask',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除百度AI外呼任务
+export function delAiobBaiduTask(id) {
+  return request({
+    url: '/aiob/AiobBaiduTask/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出百度AI外呼任务
+export function exportAiobBaiduTask(query) {
+  return request({
+    url: '/aiob/AiobBaiduTask/export',
+    method: 'get',
+    params: query
+  })
+}
+// 导出百度AI外呼任务
+export function robotList() {
+  return request({
+    url: '/aiob/AiobBaiduTask/robotList',
+    method: 'get'
+  })
+}

+ 101 - 0
src/api/baidu/BdAccount.js

@@ -0,0 +1,101 @@
+import request from '@/utils/request'
+
+// 查询百度账号列表
+export function listBdAccount(query) {
+  return request({
+    url: '/bd/BdAccount/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询百度账号列表
+export function listAll(query) {
+  return request({
+    url: '/bd/BdAccount/listAll',
+    method: 'get',
+    params: query
+  })
+}
+// 查询百度账号列表
+export function listAllPlan(query) {
+  return request({
+    url: '/bd/BdAccount/listAllPlan',
+    method: 'get',
+    params: query
+  })
+}
+// 查询百度账号列表
+export function listAllUnit(query) {
+  return request({
+    url: '/bd/BdAccount/listAllUnit',
+    method: 'get',
+    params: query
+  })
+}
+// 查询百度账号列表
+export function listAllCreative(query) {
+  return request({
+    url: '/bd/BdAccount/listAllCreative',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询百度账号详细
+export function getBdAccount(id) {
+  return request({
+    url: '/bd/BdAccount/' + id,
+    method: 'get'
+  })
+}
+
+// 新增百度账号
+export function addBdAccount(data) {
+  return request({
+    url: '/bd/BdAccount',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改百度账号
+export function updateBdAccount(data) {
+  return request({
+    url: '/bd/BdAccount',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除百度账号
+export function delBdAccount(id) {
+  return request({
+    url: '/bd/BdAccount/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出百度账号
+export function exportBdAccount(query) {
+  return request({
+    url: '/bd/BdAccount/export',
+    method: 'get',
+    params: query
+  })
+}
+// 导出百度账号
+export function authorizationUrl() {
+  return request({
+    url: '/bd/BdAccount/authorizationUrl',
+    method: 'get',
+  })
+}
+// 导出百度账号
+export function syncAccount(id) {
+  return request({
+    url: '/bd/BdAccount/syncAccount',
+    method: 'get',
+    params:{id}
+  })
+}

+ 38 - 0
src/api/baidu/statistics.js

@@ -0,0 +1,38 @@
+import request from '@/utils/request'
+
+// 查询百度账号列表
+export function conversionStatistics(query) {
+  return request({
+    url: '/baiduStatistics/conversionStatistics',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询百度账号列表
+export function getReportData(query) {
+  return request({
+    url: '/baiduStatistics/getReportData',
+    method: 'get',
+    params: query
+  })
+}
+
+// app投放报表
+export function advSemStatisticsList(query) {
+  return request({
+    url: '/baiduStatistics/selectFsAdvSemStatisticsByDayVo',
+    method: 'get',
+    params: query
+  })
+}
+
+// 导出app投放报表
+export function fsAdvSemStatisticsExport(query) {
+  return request({
+    url: '/baiduStatistics/fsAdvSemStatisticsExport',
+    method: 'get',
+    params: query
+  })
+}
+

+ 53 - 0
src/api/bill/billLog.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询订单开票记录列表
+export function listBillLog(query) {
+  return request({
+    url: '/bill/billLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询订单开票记录详细
+export function getBillLog(id) {
+  return request({
+    url: '/bill/billLog/' + id,
+    method: 'get'
+  })
+}
+
+// 新增订单开票记录
+export function addBillLog(data) {
+  return request({
+    url: '/bill/billLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改订单开票记录
+export function updateBillLog(data) {
+  return request({
+    url: '/bill/billLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除订单开票记录
+export function delBillLog(id) {
+  return request({
+    url: '/bill/billLog/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出订单开票记录
+export function exportBillLog(query) {
+  return request({
+    url: '/bill/billLog/export',
+    method: 'get',
+    params: query
+  })
+}

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

@@ -0,0 +1,31 @@
+import request from '@/utils/request'
+
+export function getMyWallet() {
+  return request({
+    url: '/company/balance/my',
+    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'
+  })
+}

+ 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
+  })
+}

+ 53 - 0
src/api/chat/chatDataset.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询知识库列表
+export function listChatDataset(query) {
+  return request({
+    url: '/chat/chatDataset/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询知识库详细
+export function getChatDataset(datasetId) {
+  return request({
+    url: '/chat/chatDataset/' + datasetId,
+    method: 'get'
+  })
+}
+
+// 新增知识库
+export function addChatDataset(data) {
+  return request({
+    url: '/chat/chatDataset',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改知识库
+export function updateChatDataset(data) {
+  return request({
+    url: '/chat/chatDataset',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除知识库
+export function delChatDataset(datasetId) {
+  return request({
+    url: '/chat/chatDataset/' + datasetId,
+    method: 'delete'
+  })
+}
+
+// 导出知识库
+export function exportChatDataset(query) {
+  return request({
+    url: '/chat/chatDataset/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatDatasetFile.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询文件列表
+export function listChatDatasetFile(query) {
+  return request({
+    url: '/chat/chatDatasetFile/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询文件详细
+export function getChatDatasetFile(fileId) {
+  return request({
+    url: '/chat/chatDatasetFile/' + fileId,
+    method: 'get'
+  })
+}
+
+// 新增文件
+export function addChatDatasetFile(data) {
+  return request({
+    url: '/chat/chatDatasetFile',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改文件
+export function updateChatDatasetFile(data) {
+  return request({
+    url: '/chat/chatDatasetFile',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除文件
+export function delChatDatasetFile(fileId) {
+  return request({
+    url: '/chat/chatDatasetFile/' + fileId,
+    method: 'delete'
+  })
+}
+
+// 导出文件
+export function exportChatDatasetFile(query) {
+  return request({
+    url: '/chat/chatDatasetFile/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatKeyword.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询关键字列表
+export function listChatKeyword(query) {
+  return request({
+    url: '/chat/chatKeyword/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询关键字详细
+export function getChatKeyword(keywordId) {
+  return request({
+    url: '/chat/chatKeyword/' + keywordId,
+    method: 'get'
+  })
+}
+
+// 新增关键字
+export function addChatKeyword(data) {
+  return request({
+    url: '/chat/chatKeyword',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改关键字
+export function updateChatKeyword(data) {
+  return request({
+    url: '/chat/chatKeyword',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除关键字
+export function delChatKeyword(keywordId) {
+  return request({
+    url: '/chat/chatKeyword/' + keywordId,
+    method: 'delete'
+  })
+}
+
+// 导出关键字
+export function exportChatKeyword(query) {
+  return request({
+    url: '/chat/chatKeyword/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatMsg.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询聊天消息记录列表
+export function listChatMsg(query) {
+  return request({
+    url: '/chat/chatMsg/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询聊天消息记录详细
+export function getChatMsg(msgId) {
+  return request({
+    url: '/chat/chatMsg/' + msgId,
+    method: 'get'
+  })
+}
+
+// 新增聊天消息记录
+export function addChatMsg(data) {
+  return request({
+    url: '/chat/chatMsg',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改聊天消息记录
+export function updateChatMsg(data) {
+  return request({
+    url: '/chat/chatMsg',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除聊天消息记录
+export function delChatMsg(msgId) {
+  return request({
+    url: '/chat/chatMsg/' + msgId,
+    method: 'delete'
+  })
+}
+
+// 导出聊天消息记录
+export function exportChatMsg(query) {
+  return request({
+    url: '/chat/chatMsg/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/chat/chatMsgLogs.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询消息操作日志列表
+export function listChatMsgLogs(query) {
+  return request({
+    url: '/chat/chatMsgLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getChatMsgLogsList(query) {
+  return request({
+    url: '/chat/chatMsgLogs/logsList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询消息操作日志详细
+export function getChatMsgLogs(logsId) {
+  return request({
+    url: '/chat/chatMsgLogs/' + logsId,
+    method: 'get'
+  })
+}
+
+// 新增消息操作日志
+export function addChatMsgLogs(data) {
+  return request({
+    url: '/chat/chatMsgLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改消息操作日志
+export function updateChatMsgLogs(data) {
+  return request({
+    url: '/chat/chatMsgLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除消息操作日志
+export function delChatMsgLogs(logsId) {
+  return request({
+    url: '/chat/chatMsgLogs/' + logsId,
+    method: 'delete'
+  })
+}
+
+// 导出消息操作日志
+export function exportChatMsgLogs(query) {
+  return request({
+    url: '/chat/chatMsgLogs/export',
+    method: 'get',
+    params: query
+  })
+}

+ 62 - 0
src/api/chat/chatRole.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询聊天角色列表
+export function listChatRole(query) {
+  return request({
+    url: '/chat/chatRole/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getAllRoleList(query) {
+  return request({
+    url: '/chat/chatRole/getAllRoleList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 查询聊天角色详细
+export function getChatRole(roleId) {
+  return request({
+    url: '/chat/chatRole/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增聊天角色
+export function addChatRole(data) {
+  return request({
+    url: '/chat/chatRole',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改聊天角色
+export function updateChatRole(data) {
+  return request({
+    url: '/chat/chatRole',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除聊天角色
+export function delChatRole(roleId) {
+  return request({
+    url: '/chat/chatRole/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 导出聊天角色
+export function exportChatRole(query) {
+  return request({
+    url: '/chat/chatRole/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatSession.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询会话列表
+export function listChatSession(query) {
+  return request({
+    url: '/chat/chatSession/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询会话详细
+export function getChatSession(sessionId) {
+  return request({
+    url: '/chat/chatSession/' + sessionId,
+    method: 'get'
+  })
+}
+
+// 新增会话
+export function addChatSession(data) {
+  return request({
+    url: '/chat/chatSession',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改会话
+export function updateChatSession(data) {
+  return request({
+    url: '/chat/chatSession',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除会话
+export function delChatSession(sessionId) {
+  return request({
+    url: '/chat/chatSession/' + sessionId,
+    method: 'delete'
+  })
+}
+
+// 导出会话
+export function exportChatSession(query) {
+  return request({
+    url: '/chat/chatSession/export',
+    method: 'get',
+    params: query
+  })
+}

+ 11 - 0
src/api/chat/chatUpload.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+ 
+export function getUrl(data) {
+  return request({
+    url: '/chat/upload/getUrl',
+    method: 'post',
+    data: data
+  })
+}
+ 

+ 53 - 0
src/api/chat/chatUser.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户列表
+export function listChatUser(query) {
+  return request({
+    url: '/chat/chatUser/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户详细
+export function getChatUser(userId) {
+  return request({
+    url: '/chat/chatUser/' + userId,
+    method: 'get'
+  })
+}
+
+// 新增客户
+export function addChatUser(data) {
+  return request({
+    url: '/chat/chatUser',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户
+export function updateChatUser(data) {
+  return request({
+    url: '/chat/chatUser',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户
+export function delChatUser(userId) {
+  return request({
+    url: '/chat/chatUser/' + userId,
+    method: 'delete'
+  })
+}
+
+// 导出客户
+export function exportChatUser(query) {
+  return request({
+    url: '/chat/chatUser/export',
+    method: 'get',
+    params: query
+  })
+}

+ 25 - 0
src/api/common.js

@@ -0,0 +1,25 @@
+import request from '@/utils/request'
+
+export function sendSmsCode(data) {
+  return request({
+    url: '/common/sendSmsCode',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getTask(taskId) {
+  return request({
+    url: '/common/getTask/'+taskId,
+    method: 'get'
+  })
+}
+
+export function getTmpSecretKey(query) {
+  return request({
+    url: '/common/getTmpSecretKey',
+    method: 'get',
+    params:query
+  })
+
+}

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

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询AI外呼任务加微方式列表
+export function listVoiceRoboticWx(query) {
+  return request({
+    url: '/company/VoiceRoboticWx/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询AI外呼任务加微方式详细
+export function getVoiceRoboticWx(id) {
+  return request({
+    url: '/company/VoiceRoboticWx/' + id,
+    method: 'get'
+  })
+}
+
+// 新增AI外呼任务加微方式
+export function addVoiceRoboticWx(data) {
+  return request({
+    url: '/company/VoiceRoboticWx',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI外呼任务加微方式
+export function updateVoiceRoboticWx(data) {
+  return request({
+    url: '/company/VoiceRoboticWx',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除AI外呼任务加微方式
+export function delVoiceRoboticWx(id) {
+  return request({
+    url: '/company/VoiceRoboticWx/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出AI外呼任务加微方式
+export function exportVoiceRoboticWx(query) {
+  return request({
+    url: '/company/VoiceRoboticWx/export',
+    method: 'get',
+    params: query
+  })
+}

+ 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'
+    })
+}

+ 105 - 0
src/api/company/aiModel/inboundCallManage.js

@@ -0,0 +1,105 @@
+import request from '@/utils/request'
+
+// 查询呼入配置列表
+export function listAimodelInboundcallmanage(query) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询呼入配置详细
+export function getAimodelInboundcallmanage(id) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/' + id,
+    method: 'get'
+  })
+}
+
+// 新增呼入配置
+export function addAimodelInboundcallmanage(data) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改呼入配置
+export function updateAimodelInboundcallmanage(data) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除呼入配置
+export function delAimodelInboundcallmanage(id) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出呼入配置
+export function exportAimodelInboundcallmanage(query) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/export',
+    method: 'post',
+    params: query
+  })
+}
+
+// 查询呼入记录列表
+export function listInboundcallmanageInboundcallrecord(query) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/record/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询呼入记录详细
+export function getInboundcallmanageInboundcallrecord(id) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/record/' + id,
+    method: 'get'
+  })
+}
+
+// 新增呼入记录
+export function addInboundcallmanageInboundcallrecord(data) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/record',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改呼入记录
+export function updateInboundcallmanageInboundcallrecord(data) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/record',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除呼入记录
+export function delInboundcallmanageInboundcallrecord(id) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/record/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出呼入记录
+export function exportInboundcallmanageInboundcallrecord(query) {
+  return request({
+    url: '/company/ai_model/inbound_call_manage/record/export',
+    method: 'post',
+    params: query
+  })
+}

+ 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'
+  })
+}

+ 47 - 0
src/api/company/approval.js

@@ -0,0 +1,47 @@
+import request from '@/utils/request'
+
+export function listSystemApproval(query) {
+  return request({
+    url: '/system/approval/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getSystemApproval(id) {
+  return request({
+    url: '/system/approval/' + id,
+    method: 'get'
+  })
+}
+
+export function addSystemApproval(data) {
+  return request({
+    url: '/system/approval',
+    method: 'post',
+    data: data
+  })
+}
+
+export function updateSystemApproval(data) {
+  return request({
+    url: '/system/approval',
+    method: 'put',
+    data: data
+  })
+}
+
+export function delSystemApproval(id) {
+  return request({
+    url: '/system/approval/' + id,
+    method: 'delete'
+  })
+}
+
+export function exportSystemApproval(query) {
+  return request({
+    url: '/system/approval/export',
+    method: 'post',
+    params: query
+  })
+}

+ 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
+//   })
+// }

+ 51 - 0
src/api/company/company.js

@@ -0,0 +1,51 @@
+import request from '@/utils/request'
+
+
+export function listCompany(query) {
+  return request({
+    url: '/company/company/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getCompanyInfo() {
+  return request({
+    url: '/company/company/getCompanyInfo',
+    method: 'get'
+  })
+}
+export function getCompanyVoice() {
+  return request({
+    url: '/company/company/getCompanyVoice',
+    method: 'get'
+  })
+}
+export function getCompanySms() {
+  return request({
+    url: '/company/company/getCompanySms',
+    method: 'get'
+  })
+}
+
+
+export function getCompanyList() {
+  return request({
+    url: '/company/company/getCompanyList',
+    method: 'get'
+  })
+}
+
+export function allList(query) {
+  return request({
+    url: '/company/company/allList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getCompanyListByCorId(corId) {
+  return request({
+    url: '/company/company/getCompanyListByCorId/' + corId,
+    method: 'get'
+  })
+}

+ 126 - 0
src/api/company/companyAccount.js

@@ -0,0 +1,126 @@
+import request from '@/utils/request'
+
+// 查询个微账号列表
+export function listCompanyAccount(query) {
+  return request({
+    url: '/company/companyWx/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询个微账号列表
+export function companyListAll(query) {
+  return request({
+    url: '/company/companyWx/companyListAll',
+    method: 'get',
+    params: query
+  })
+}
+// 查询个微账号列表
+export function listAll(query) {
+  return request({
+    url: '/company/companyWx/listAll',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询个微账号详细
+export function getCompanyAccount(id) {
+  return request({
+    url: '/company/companyWx/' + id,
+    method: 'get'
+  })
+}
+
+// 新增个微账号
+export function addCompanyAccount(data) {
+  return request({
+    url: '/company/companyWx',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改个微账号
+export function updateCompanyAccount(data) {
+  return request({
+    url: '/company/companyWx',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除个微账号
+export function delCompanyAccount(id) {
+  return request({
+    url: '/company/companyWx/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出个微账号
+export function exportCompanyAccount(query) {
+  return request({
+    url: '/company/companyWx/export',
+    method: 'get',
+    params: query
+  })
+}
+// 导出个微账号
+export function getWxQrCode(query) {
+  return request({
+    url: '/company/companyWx/getWxQrCode',
+    method: 'get',
+    params: query
+  })
+}
+
+// 导出个微账号
+export function getLoginStatus(query) {
+  return request({
+    url: '/company/companyWx/getLoginStatus',
+    method: 'get',
+    params: query
+  })
+}
+// 导出个微账号
+export function bindService(query) {
+  return request({
+    url: '/company/companyWx/bindService',
+    method: 'get',
+    params: query
+  })
+}
+// 导出个微账号
+export function wakeUpLogin(query) {
+  return request({
+    url: '/company/companyWx/wakeUpLogin',
+    method: 'get',
+    params: query
+  })
+}
+// 导出个微账号
+export function updateWxInfo(query) {
+  return request({
+    url: '/company/companyWx/updateWxInfo',
+    method: 'get',
+    params: query
+  })
+}
+// 导出个微账号
+export function wxLoginOut(query) {
+  return request({
+    url: '/company/companyWx/wxLoginOut',
+    method: 'get',
+    params: query
+  })
+}
+export function syncWx(query) {
+  return request({
+    url: '/company/companyWx/syncWx',
+    method: 'get',
+    params: query
+  })
+}

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio