此文件为Claude Code (claude.ai/code)在此代码库中工作时提供指导。
这是一个基于Java的多模块Maven保险报价平台项目,专门专注于与紫金保险公司集成。项目采用微服务架构,使用Spring Boot 3.0和WebFlux进行响应式编程。
# 构建整个项目
mvn clean compile
# 安装所有依赖
mvn clean install
# 构建并运行特定模块
mvn spring-boot:run -pl quotation-zijin
# 打包用于部署
mvn clean package
# 使用Spring Boot运行特定模块
mvn spring-boot:run -pl quotation-zijin
项目组织为多模块Maven项目:
tenant - 公共依赖和配置insurance - 保险相关子模块quotation-zijin、quotation-bohai、quotation-huatai等)quotation-commons - 共享工具和基础类quotation-zijin模块遵循分层架构:
com.jzg.quotation.zijin.api)component/: 业务组件(缓存、请求处理、错误处理)entity/request/: API请求DTOentity/response/: API响应DTOentity/po/: MongoDB实体service/: 业务服务接口和实现enums/: 业务枚举com.jzg.quotation.zijin.crawler)component/: 爬取组件entity/request/: 爬取请求DTOentity/response/: 爬取响应DTOservice/: 爬取服务接口和实现enums/: 爬取相关枚举车辆报价流程:
订单管理流程:
客户管理流程:
ZiJinApiRequestComponent: 处理API请求逻辑ZiJinCrawlerRequestComponent: 管理爬取请求ZiJinCrawlerOrderService: 订单管理和处理ResponseMessageAbstractHandler: 响应处理和错误处理CalculatePremiumRequest: 保费计算请求GetAccessTokenRequest: 认证令牌请求ModelQueryRequest: 车型查询请求ZiJinApiOrder: MongoDB的订单实体RequestUrl: API端点枚举RiskCodeEnum: 风险类型枚举OrderStatusEnum: 订单状态跟踪MotorVehicleInsuranceEnum: 保险类型枚举每个保险公司模块遵循相同模式但实现不同:
entity/po/包中当前结构中未找到特定的测试配置。应用标准Maven测试命令:
mvn test
mvn surefire:test