功能:在保险、规则、交易、积分和短信模块中实现初始功能和基础组件。

This commit is contained in:
abcv7
2026-03-03 04:04:22 +08:00
parent e050eb3317
commit e156d625bf
1999 changed files with 146080 additions and 63 deletions
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.itheima.sfbx</groupId>
<artifactId>sfbx-points</artifactId>
<version>2.0-SNAPSHOT</version>
</parent>
<!--数据埋点接口模块-->
<artifactId>points-interface</artifactId>
<name>points-interface</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<dependencies>
<dependency>
<groupId>com.itheima.sfbx</groupId>
<artifactId>framework-feign</artifactId>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,13 @@
package com.itheima.sfbx.points.config;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
/**
* @ClassName DictFenginConfig.java
* @Description feign的最优化配置
*/
@EnableFeignClients(basePackages = "com.itheima.sfbx.points.feign")
@Configuration
public class LogBusinessFeignConfig {
}
@@ -0,0 +1,25 @@
package com.itheima.sfbx.points.feign;
import com.itheima.sfbx.framework.commons.dto.log.LogBusinessVO;
import com.itheima.sfbx.points.hystrix.BusinessLogHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
* @ClassName BusinessLogFeign.java
* @Description 业务统计
*/
@FeignClient(value = "points-web",fallback = BusinessLogHystrix.class)
public interface BusinessLogFeign {
/**
* 持久化日志信息
* @param logBusinessVO 日志对象
* @return 是否执行成功
*/
@PostMapping("business-log-feign/create-business-log")
public Boolean createBusinessLog(@RequestBody LogBusinessVO logBusinessVO);
}
@@ -0,0 +1,72 @@
package com.itheima.sfbx.points.feign;
import com.itheima.sfbx.points.hystrix.BusinessLogHystrix;
import com.itheima.sfbx.points.hystrix.BusinessReportHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
/**
* @ClassName BusinessReportFeign.java
* @Description 业务统计
*/
@FeignClient(value = "points-web",fallback = BusinessReportHystrix.class)
public interface BusinessReportFeign {
/**
* 日投保访页面量
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("business-report-feign/do-insure-dpv-job/{reportTime}")
Boolean doInsureDpvJob(@PathVariable("reportTime") String reportTime);
/**
* 日投保用户访问数
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("business-report-feign/do-insure-duv-job/{reportTime}")
Boolean doInsureDuvJob(@PathVariable("reportTime") String reportTime);
/**
* 日保险分类访问页面量
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("business-report-feign/category-dpv-job/{reportTime}")
Boolean categoryDpvJob(@PathVariable("reportTime") String reportTime);
/**
* 性别日投保用户访问数
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("business-report-feign/do-insure-gender-duv-job/{reportTime}")
Boolean doInsureGenderDuvJob(@PathVariable("reportTime") String reportTime);
/**
* 城市日投保用户访问数
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("business-report-feign/do-insure-city-duv-job/{reportTime}")
Boolean doInsureCityDuvJob(@PathVariable("reportTime") String reportTime);
/**
* 投保转换率
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("business-report-feign/do-insure-conversion-dpv-job/{reportTime}")
Boolean doInsureConversionDpvJob(@PathVariable("reportTime") String reportTime);
/**
* 日投保访问失败页面量
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("business-report-feign/do-insure-fail-dpv-job/{reportTime}")
Boolean doInsureFailDpvJob(@PathVariable("reportTime") String reportTime);
}
@@ -0,0 +1,72 @@
package com.itheima.sfbx.points.feign;
import com.itheima.sfbx.points.hystrix.CustomerReportHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
/**
* @ClassName CustomerReportFeign.java
* @Description 用户统计
*/
@FeignClient(value = "points-web",fallback = CustomerReportHystrix.class)
public interface CustomerReportFeign {
/**
* 日新增用户数
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("customer-report-feign/dnu-job/{reportTime}")
Boolean dnuJob(@PathVariable("reportTime") String reportTime);
/**
* 日新增注册用户归属城市
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("customer-report-feign/dnu-city-job/{reportTime}")
Boolean dnuCityJob(@PathVariable("reportTime") String reportTime);
/**
* 用户日活跃数
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("customer-report-feign/dau-job/{reportTime}")
Boolean dauJob(@PathVariable("reportTime") String reportTime);
/**
* 用户每时活跃数
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("customer-report-feign/dau-time-job/{reportTime}")
Boolean dauTimeJob(@PathVariable("reportTime") String reportTime);
/**
* 日访问量
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("customer-report-feign/dpv-job/{reportTime}")
Boolean dpvJob(@PathVariable("reportTime") String reportTime);
/**
* 日用户访问数
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("customer-report-feign/duv-job/{reportTime}")
Boolean duvJob(@PathVariable("reportTime") String reportTime);
/**
* 用户日活跃数范围
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("customer-report-feign/dau-range-job/{reportTime}")
Boolean dauRangeJob(@PathVariable("reportTime") String reportTime);
}
@@ -0,0 +1,32 @@
package com.itheima.sfbx.points.feign;
import com.itheima.sfbx.points.hystrix.SaleReportFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
/**
* @ClassName SaleReportFeign.java
* @Description 销售统计
*/
@FeignClient(value = "points-web",fallback = SaleReportFeignHystrix.class)
public interface SaleReportFeign {
/**
* 日投保额度明细
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("sale-report-feign/do-insure-details-day-job/{reportTime}")
public Boolean doInsureDetailsDayJob(@PathVariable("reportTime") String reportTime);
/**
* 日投保分类明细
* @param reportTime 统计时间
* @return 是否执行成功
*/
@PostMapping("sale-report-feign/doInsure-category-job/{reportTime}")
public Boolean doInsureCategoryJob(@PathVariable("reportTime") String reportTime);
}
@@ -0,0 +1,16 @@
package com.itheima.sfbx.points.hystrix;
import com.itheima.sfbx.framework.commons.dto.log.LogBusinessVO;
import com.itheima.sfbx.points.feign.BusinessLogFeign;
/**
* @ClassName BusinessLogHystrix.java
* @Description TODO
*/
public class BusinessLogHystrix implements BusinessLogFeign {
@Override
public Boolean createBusinessLog(LogBusinessVO logBusinessVO) {
return null;
}
}
@@ -0,0 +1,46 @@
package com.itheima.sfbx.points.hystrix;
import com.itheima.sfbx.points.feign.BusinessReportFeign;
/**
* @ClassName BusinessLogHystrix.java
* @Description TODO
*/
public class BusinessReportHystrix implements BusinessReportFeign {
@Override
public Boolean doInsureDpvJob(String reportTime) {
return null;
}
@Override
public Boolean doInsureDuvJob(String reportTime) {
return null;
}
@Override
public Boolean categoryDpvJob(String reportTime) {
return null;
}
@Override
public Boolean doInsureGenderDuvJob(String reportTime) {
return null;
}
@Override
public Boolean doInsureCityDuvJob(String reportTime) {
return null;
}
@Override
public Boolean doInsureConversionDpvJob(String reportTime) {
return null;
}
@Override
public Boolean doInsureFailDpvJob(String reportTime) {
return null;
}
}
@@ -0,0 +1,45 @@
package com.itheima.sfbx.points.hystrix;
import com.itheima.sfbx.points.feign.CustomerReportFeign;
/**
* @ClassName CustomerReportHystrix.java
* @Description TODO
*/
public class CustomerReportHystrix implements CustomerReportFeign {
@Override
public Boolean dnuJob(String reportTime) {
return null;
}
@Override
public Boolean dnuCityJob(String reportTime) {
return null;
}
@Override
public Boolean dauJob(String reportTime) {
return null;
}
@Override
public Boolean dauTimeJob(String reportTime) {
return null;
}
@Override
public Boolean dpvJob(String reportTime) {
return null;
}
@Override
public Boolean duvJob(String reportTime) {
return null;
}
@Override
public Boolean dauRangeJob(String reportTime) {
return null;
}
}
@@ -0,0 +1,17 @@
package com.itheima.sfbx.points.hystrix;
import com.itheima.sfbx.framework.commons.dto.log.LogBusinessVO;
import com.itheima.sfbx.points.feign.BusinessLogFeign;
/**
* @ClassName SaleReportFeignHystrix.java
* @Description TODO
*/
public class SaleReportFeignHystrix implements BusinessLogFeign {
@Override
public Boolean createBusinessLog(LogBusinessVO logBusinessVO) {
return null;
}
}