# 风控平台 **Repository Path**: shaoxi/risk-control-platform ## Basic Information - **Project Name**: 风控平台 - **Description**: 风控平台demo - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-03-18 - **Last Updated**: 2024-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 风控平台 #### 介绍 风控平台化支持多业务的建设思路 1. 领域能力抽象沉淀 2. 配置化 3. 业务和平台隔离,支持业务居于业务身份扩展定制 特别说明:本项目仅仅做交流学习用 #### 软件架构 ![架构图](architecture.jpg) #### 模块说明 - risk-platform-starter spring容器启动入口,用于管理spring相关配置 - risk-platform-api 对外提供的API服务定义 - risk-platform-app 应用层,用于业务流程编排。调用领域服务实现业务功能 - risk-platform-domain 领域层,提供领域能力 - ext-framework 扩展框架,用于实现扩展点管理路由,核心能力是居于业务身份匹配业务的扩展点实现 - risk-platform-ext-sdk 领域扩展SDK - risk-platform-ext-default 平台默认实现 - risk-platform-ext-mc 猫超业务扩展实现 - risk-platform-ext-tmg 天猫国际扩展实现 #### 核心代码导读 1. com.shaoxi.risk.app.RiskControlFacadeImpl#priceRiskCheck 风控价格风险校验服务入口,调用风险识别、风险处置实现完整的业务功能。 2. com.shaoxi.risk.domain.service.RiskControlService#judeRisk 风险识别领域服务,提供风险识别的核心逻辑,调用到手价计算、成本获取领域能力来实现风险识别 3. com.shaoxi.risk.domain.ability.PromotionPriceCalAbility#calPromotionPrice 到手价计算领域能力,并且提供优惠过滤的扩展SDK,可以居于业务身份定制 4. com.shaoxi.ext.framework.impl.ExtManagerImpl#register 扩展点的注册,应用启动时,将业务扩展点实现注册到扩展点管理容器中 5. com.shaoxi.ext.framework.impl.ExtManagerImpl#getExt 根据业务身份获取对应的扩展实现,如果业务没有订正则返回默认实现