# dolphin **Repository Path**: bx_newL/dolphin ## Basic Information - **Project Name**: dolphin - **Description**: 海豚通话卫士 crm多租户外呼系统 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.haituntelecom.com/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2024-08-28 - **Last Updated**: 2026-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dolphin 微服务项目 ## 项目简介 Dolphin 是一个基于 Spring Boot 的企业级微服务架构项目,提供完整的通话管理、客户关系管理、数据权限等企业级功能模块。项目采用模块化设计,包含核心框架、通话模块、客户模块等多个子系统,支持多租户、高并发、分布式部署等企业级特性。 ## 技术栈 - **核心框架**: Spring Boot 3.x / JDK 21 - **数据库**: MySQL + MyBatis Plus - **缓存**: Redis + Redisson - **消息队列**: RabbitMQ / RocketMQ / Kafka - **API 网关**: Spring Cloud Gateway - **安全框架**: Spring Security + OAuth2 - **任务调度**: XXL-JOB - **监控**: SkyWalking + Prometheus - **容器化**: Docker ## 项目结构 ``` dolphin/ ├── dolphin-framework/ # 核心框架模块 │ ├── dolphin-common/ # 公共组件 │ ├── dolphin-spring-boot-starter-*/ # Spring Boot Starter 组件 │ │ ├── biz-data-permission/ # 数据权限 │ │ ├── biz-dict/ # 字典管理 │ │ ├── biz-ip/ # IP地区解析 │ │ ├── biz-pay/ # 支付模块 │ │ ├── biz-tenant/ # 多租户支持 │ │ ├── env/ # 环境配置 │ │ ├── flowable/ # 工作流 │ │ ├── job/ # 任务调度 │ │ ├── monitor/ # 监控追踪 │ │ ├── mq/ # 消息队列 │ │ ├── mybatis/ # MyBatis Plus │ │ ├── protection/ # 业务防护 │ │ ├── redis/ # Redis 封装 │ │ ├── rpc/ # RPC 远程调用 │ │ ├── security/ # 安全认证 │ │ ├── test/ # 测试工具 │ │ ├── web/ # Web 基础 │ │ └── websocket/ # WebSocket ├── dolphin-gateway/ # API 网关服务 ├── dolphin-module-call/ # 通话管理模块 │ ├── dolphin-module-call-api/ # API 接口定义 │ └── dolphin-module-call-biz/ # 业务实现 └── dolphin-module-customer/ # 客户管理模块 ├── dolphin-module-customer-api/ # API 接口定义 └── dolphin-module-customer-biz/ # 业务实现 ``` ## 核心特性 ### 多租户支持 - 基于租户的数据隔离 - 租户上下文传递(RPC/MQ/WebSocket) - 灵活的租户忽略机制 ### 数据权限 - 细粒度的数据权限控制 - 基于注解的权限声明 - 与 MyBatis Plus 无缝集成 ### 支付能力 - 统一的支付接口 - 支持支付宝、微信支付 - 退款、转账等高级功能 ### 通话管理 - 通话记录管理 - 外呼任务分配 - 通话质检统计 - 客户线索管理 ### 安全防护 - 统一的认证授权 - 接口幂等性保证 - 分布式锁支持 - XSS/CSRF 防护 ### 消息通信 - Redis Pub/Sub - RabbitMQ 消息队列 - RocketMQ 消息队列 - Kafka 消息队列 ## 快速开始 ### 环境要求 - JDK 21+ - MySQL 8.0+ - Redis 6.0+ - RabbitMQ / RocketMQ / Kafka - Maven 3.8+ ### 构建部署 ```bash # 克隆项目 git clone https://gitee.com/bx_newL/dolphin.git cd dolphin # 构建项目 mvn clean install -DskipTests # 运行各模块 java -jar dolphin-gateway/target/dolphin-gateway.jar java -jar dolphin-module-call/dolphin-module-call-biz/target/dolphin-module-call-biz.jar ``` ### 配置说明 项目支持多环境配置,通过 `application-{profile}.yaml` 切换: ```yaml # application.yaml 示例 spring: application: name: dolphin-gateway profiles: active: local # local/test/prod server: port: 48080 ``` ## 模块说明 ### dolphin-gateway API 网关服务,提供路由转发、负载均衡、灰度发布、跨域处理等功能。 ### dolphin-module-call-biz 通话业务模块,包含: - 通话记录管理 - 外呼任务管理 - 通话质检 - 客户线索分配 ### dolphin-module-customer-biz 客户业务模块,包含: - 客户信息管理 - 客户标签管理 - 客户池管理 - 商机管理 ## 许可证 本项目基于 Apache License 2.0 协议开源。