From 50e8d29822f7149f9b99042872f99eb32a7b6a22 Mon Sep 17 00:00:00 2001 From: atsuc Date: Sun, 21 Jul 2024 23:05:01 +0800 Subject: [PATCH] ddd frame --- {xfg-frame-api => atsuc-frame-api}/pom.xml | 12 +++--- .../cn/atsuc}/frame/api/IAccountService.java | 2 +- .../java/cn/atsuc/frame/api/IRuleService.java | 14 +++++++ .../model/request/DecisionMatterRequest.java | 5 +-- .../response/DecisionMatterResponse.java | 5 +-- .../cn/atsuc}/frame/api/package-info.java | 2 +- {xfg-frame-app => atsuc-frame-app}/Dockerfile | 4 +- atsuc-frame-app/build.sh | 1 + {xfg-frame-app => atsuc-frame-app}/pom.xml | 18 ++++----- .../src/main/bin/start.sh | 4 +- atsuc-frame-app/src/main/bin/stop.sh | 1 + .../java/cn/atsuc}/frame/Application.java | 2 +- .../cn/atsuc}/frame/aop/RateLimiterAop.java | 9 +++-- .../java/cn/atsuc/frame/aop/package-info.java | 4 ++ .../frame/config/RateLimiterAopConfig.java | 11 +---- .../RateLimiterAopConfigProperties.java | 2 +- .../atsuc}/frame/config/ThreadPoolConfig.java | 2 +- .../config/ThreadPoolConfigProperties.java | 2 +- .../cn/atsuc/frame/config/package-info.java | 5 +++ .../src/main/resources/application-dev.yml | 6 +-- .../src/main/resources/application-prod.yml | 4 +- .../src/main/resources/application-test.yml | 4 +- .../src/main/resources/application.yml | 2 +- .../src/main/resources/logback-spring.xml | 0 .../mybatis/config/mybatis-config.xml | 0 .../mapper/RuleTreeNodeLine_Mapper.xml | 4 +- .../mybatis/mapper/RuleTreeNode_Mapper.xml | 4 +- .../mybatis/mapper/RuleTree_Mapper.xml | 4 +- .../java/cn/atsuc}/frame/test/AESTest.java | 7 +--- .../java/cn/atsuc}/frame/test/ApiTest.java | 8 ++-- .../java/cn/atsuc}/frame/test/RpcTest.java | 6 +-- .../pom.xml | 12 +++--- .../model/aggregates/OrderAggregate.java | 17 ++++++++ .../order/model/entity/OrderItemEntity.java | 7 ++++ .../order/model/entity/ProductEntity.java | 20 ++++++++++ .../domain/order/model/package-info.java | 2 +- .../domain/order/model/valobj/OrderIdVO.java | 17 ++++++++ .../model/valobj/ProductDescriptionVO.java | 17 ++++++++ .../order/model/valobj/ProductNameVO.java | 17 ++++++++ .../order/repository/IOrderRepository.java | 4 ++ .../domain/order/repository/package-info.java | 4 ++ .../domain/order/service/OrderService.java | 7 ++++ .../domain/order/service/package-info.java | 4 ++ .../model/aggregates/TreeRuleAggregate.java | 10 ++--- .../model/entity/DecisionMatterEntity.java | 5 +-- .../rule/model/entity/EngineResultEntity.java | 6 +-- .../frame/domain/rule/model/package-info.java | 2 +- .../rule/model/valobj/TreeNodeLineVO.java | 5 +-- .../domain/rule/model/valobj/TreeNodeVO.java | 5 +-- .../domain/rule/model/valobj/TreeRootVO.java | 5 +-- .../rule/repository/IRuleRepository.java | 18 +++++++++ .../domain/rule/repository/package-info.java | 4 ++ .../rule/service/engine/EngineBase.java | 26 +++++------- .../rule/service/engine/EngineConfig.java | 11 ++--- .../rule/service/engine/EngineFilter.java | 19 +++++++++ .../service/engine/impl/RuleEngineHandle.java | 35 ++++++++++++++++ .../domain/rule/service/logic/BaseLogic.java | 15 +++---- .../rule/service/logic/LogicFilter.java | 11 ++--- .../service/logic/impl/UserAgeFilter.java | 19 +++++++++ .../service/logic/impl/UserGenderFilter.java | 19 +++++++++ .../domain/rule/service/package-info.java | 4 ++ .../domain/user/model/valobj/UserVO.java | 2 +- .../user/repository/IUserRepository.java | 14 +++++++ .../domain/user/service/UserService.java | 11 +++++ .../user/service/impl/UserServiceImpl.java | 22 ++++++++++ .../pom.xml | 16 ++++---- .../frame/infrastructure/dao/IUserDao.java | 4 +- .../frame/infrastructure/dao/RuleTreeDao.java | 8 +--- .../infrastructure/dao/RuleTreeNodeDao.java | 8 +--- .../dao/RuleTreeNodeLineDao.java | 8 +--- .../frame/infrastructure/package-info.java | 4 ++ .../infrastructure/po/RuleTreeNodeLinePO.java | 5 +-- .../infrastructure/po/RuleTreeNodePO.java | 5 +-- .../frame/infrastructure/po/RuleTreePO.java | 6 +-- .../frame/infrastructure/po/UserPO.java | 2 +- .../repository/RuleRepository.java | 30 ++++++-------- .../repository/UserRepository.java | 16 +++----- .../pom.xml | 20 +++++----- .../atsuc}/frame/trigger/http/Controller.java | 6 +-- .../frame/trigger/http/package-info.java | 4 ++ .../atsuc/frame/trigger/mq/package-info.java | 4 ++ .../frame/trigger/rpc/AccountService.java | 4 +- .../atsuc}/frame/trigger/rpc/RuleService.java | 24 +++++------ .../atsuc/frame/trigger/rpc/package-info.java | 4 ++ .../frame/trigger/task/package-info.java | 4 ++ .../pom.xml | 8 ++-- .../java/cn/atsuc}/frame/types/Constants.java | 2 +- .../java/cn/atsuc}/frame/types/Response.java | 2 +- .../cn/atsuc/frame/types/package-info.java | 4 ++ .../environment-docker-compose.yml | 2 +- pom.xml | 20 +++++----- .../bugstack/xfg/frame/api/IRuleService.java | 17 -------- xfg-frame-app/build.sh | 1 - xfg-frame-app/src/main/bin/stop.sh | 1 - .../bugstack/xfg/frame/aop/package-info.java | 4 -- .../xfg/frame/config/package-info.java | 5 --- .../model/aggregates/OrderAggregate.java | 19 --------- .../order/model/entity/OrderItemEntity.java | 10 ----- .../order/model/entity/ProductEntity.java | 23 ----------- .../domain/order/model/valobj/OrderIdVO.java | 20 ---------- .../model/valobj/ProductDescriptionVO.java | 20 ---------- .../order/model/valobj/ProductNameVO.java | 20 ---------- .../order/repository/IOrderRepository.java | 10 ----- .../domain/order/repository/package-info.java | 4 -- .../domain/order/service/OrderService.java | 13 ------ .../domain/order/service/package-info.java | 4 -- .../rule/repository/IRuleRepository.java | 22 ---------- .../domain/rule/repository/package-info.java | 4 -- .../rule/service/engine/EngineFilter.java | 22 ---------- .../service/engine/impl/RuleEngineHandle.java | 40 ------------------- .../service/logic/impl/UserAgeFilter.java | 21 ---------- .../service/logic/impl/UserGenderFilter.java | 21 ---------- .../domain/rule/service/package-info.java | 4 -- .../user/repository/IUserRepository.java | 17 -------- .../domain/user/service/UserService.java | 18 --------- .../user/service/impl/UserServiceImpl.java | 30 -------------- .../frame/infrastructure/package-info.java | 4 -- .../xfg/frame/trigger/http/package-info.java | 4 -- .../xfg/frame/trigger/mq/package-info.java | 4 -- .../xfg/frame/trigger/rpc/package-info.java | 4 -- .../xfg/frame/trigger/task/package-info.java | 4 -- .../xfg/frame/types/package-info.java | 4 -- 122 files changed, 505 insertions(+), 659 deletions(-) rename {xfg-frame-api => atsuc-frame-api}/pom.xml (81%) rename {xfg-frame-api/src/main/java/cn/bugstack/xfg => atsuc-frame-api/src/main/java/cn/atsuc}/frame/api/IAccountService.java (67%) create mode 100644 atsuc-frame-api/src/main/java/cn/atsuc/frame/api/IRuleService.java rename {xfg-frame-api/src/main/java/cn/bugstack/xfg => atsuc-frame-api/src/main/java/cn/atsuc}/frame/api/model/request/DecisionMatterRequest.java (61%) rename {xfg-frame-api/src/main/java/cn/bugstack/xfg => atsuc-frame-api/src/main/java/cn/atsuc}/frame/api/model/response/DecisionMatterResponse.java (51%) rename {xfg-frame-api/src/main/java/cn/bugstack/xfg => atsuc-frame-api/src/main/java/cn/atsuc}/frame/api/package-info.java (50%) rename {xfg-frame-app => atsuc-frame-app}/Dockerfile (85%) create mode 100644 atsuc-frame-app/build.sh rename {xfg-frame-app => atsuc-frame-app}/pom.xml (91%) rename {xfg-frame-app => atsuc-frame-app}/src/main/bin/start.sh (83%) create mode 100644 atsuc-frame-app/src/main/bin/stop.sh rename {xfg-frame-app/src/main/java/cn/bugstack/xfg => atsuc-frame-app/src/main/java/cn/atsuc}/frame/Application.java (95%) rename {xfg-frame-app/src/main/java/cn/bugstack/xfg => atsuc-frame-app/src/main/java/cn/atsuc}/frame/aop/RateLimiterAop.java (90%) create mode 100644 atsuc-frame-app/src/main/java/cn/atsuc/frame/aop/package-info.java rename {xfg-frame-app/src/main/java/cn/bugstack/xfg => atsuc-frame-app/src/main/java/cn/atsuc}/frame/config/RateLimiterAopConfig.java (66%) rename {xfg-frame-app/src/main/java/cn/bugstack/xfg => atsuc-frame-app/src/main/java/cn/atsuc}/frame/config/RateLimiterAopConfigProperties.java (90%) rename {xfg-frame-app/src/main/java/cn/bugstack/xfg => atsuc-frame-app/src/main/java/cn/atsuc}/frame/config/ThreadPoolConfig.java (98%) rename {xfg-frame-app/src/main/java/cn/bugstack/xfg => atsuc-frame-app/src/main/java/cn/atsuc}/frame/config/ThreadPoolConfigProperties.java (96%) create mode 100644 atsuc-frame-app/src/main/java/cn/atsuc/frame/config/package-info.java rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/application-dev.yml (84%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/application-prod.yml (66%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/application-test.yml (66%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/application.yml (67%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/logback-spring.xml (100%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/mybatis/config/mybatis-config.xml (100%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/mybatis/mapper/RuleTreeNodeLine_Mapper.xml (83%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/mybatis/mapper/RuleTreeNode_Mapper.xml (85%) rename {xfg-frame-app => atsuc-frame-app}/src/main/resources/mybatis/mapper/RuleTree_Mapper.xml (84%) rename {xfg-frame-app/src/test/java/cn/bugstack/xfg => atsuc-frame-app/src/test/java/cn/atsuc}/frame/test/AESTest.java (94%) rename {xfg-frame-app/src/test/java/cn/bugstack/xfg => atsuc-frame-app/src/test/java/cn/atsuc}/frame/test/ApiTest.java (78%) rename {xfg-frame-app/src/test/java/cn/bugstack/xfg => atsuc-frame-app/src/test/java/cn/atsuc}/frame/test/RpcTest.java (92%) rename {xfg-frame-domain => atsuc-frame-domain}/pom.xml (85%) create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/aggregates/OrderAggregate.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/OrderItemEntity.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/ProductEntity.java rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/order/model/package-info.java (97%) create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/OrderIdVO.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductDescriptionVO.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductNameVO.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/IOrderRepository.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/package-info.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/OrderService.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/package-info.java rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/model/aggregates/TreeRuleAggregate.java (50%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/model/entity/DecisionMatterEntity.java (62%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/model/entity/EngineResultEntity.java (71%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/model/package-info.java (51%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/model/valobj/TreeNodeLineVO.java (63%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/model/valobj/TreeNodeVO.java (71%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/model/valobj/TreeRootVO.java (58%) create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/IRuleRepository.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/package-info.java rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/service/engine/EngineBase.java (59%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/service/engine/EngineConfig.java (54%) create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineFilter.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/impl/RuleEngineHandle.java rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/service/logic/BaseLogic.java (70%) rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/rule/service/logic/LogicFilter.java (50%) create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserAgeFilter.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserGenderFilter.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/package-info.java rename {xfg-frame-domain/src/main/java/cn/bugstack/xfg => atsuc-frame-domain/src/main/java/cn/atsuc}/frame/domain/user/model/valobj/UserVO.java (87%) create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/repository/IUserRepository.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/UserService.java create mode 100644 atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/impl/UserServiceImpl.java rename {xfg-frame-infrastructure => atsuc-frame-infrastructure}/pom.xml (78%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/dao/IUserDao.java (58%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/dao/RuleTreeDao.java (54%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/dao/RuleTreeNodeDao.java (65%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/dao/RuleTreeNodeLineDao.java (60%) create mode 100644 atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/package-info.java rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/po/RuleTreeNodeLinePO.java (67%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/po/RuleTreeNodePO.java (66%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/po/RuleTreePO.java (64%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/po/UserPO.java (91%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/repository/RuleRepository.java (73%) rename {xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg => atsuc-frame-infrastructure/src/main/java/cn/atsuc}/frame/infrastructure/repository/UserRepository.java (58%) rename {xfg-frame-trigger => atsuc-frame-trigger}/pom.xml (81%) rename {xfg-frame-trigger/src/main/java/cn/bugstack/xfg => atsuc-frame-trigger/src/main/java/cn/atsuc}/frame/trigger/http/Controller.java (89%) create mode 100644 atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/http/package-info.java create mode 100644 atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/mq/package-info.java rename {xfg-frame-trigger/src/main/java/cn/bugstack/xfg => atsuc-frame-trigger/src/main/java/cn/atsuc}/frame/trigger/rpc/AccountService.java (85%) rename {xfg-frame-trigger/src/main/java/cn/bugstack/xfg => atsuc-frame-trigger/src/main/java/cn/atsuc}/frame/trigger/rpc/RuleService.java (67%) create mode 100644 atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/package-info.java create mode 100644 atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/task/package-info.java rename {xfg-frame-types => atsuc-frame-types}/pom.xml (86%) rename {xfg-frame-types/src/main/java/cn/bugstack/xfg => atsuc-frame-types/src/main/java/cn/atsuc}/frame/types/Constants.java (97%) rename {xfg-frame-types/src/main/java/cn/bugstack/xfg => atsuc-frame-types/src/main/java/cn/atsuc}/frame/types/Response.java (89%) create mode 100644 atsuc-frame-types/src/main/java/cn/atsuc/frame/types/package-info.java delete mode 100644 xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/IRuleService.java delete mode 100644 xfg-frame-app/build.sh delete mode 100644 xfg-frame-app/src/main/bin/stop.sh delete mode 100644 xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/aop/package-info.java delete mode 100644 xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/package-info.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/aggregates/OrderAggregate.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/OrderItemEntity.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/ProductEntity.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/OrderIdVO.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductDescriptionVO.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductNameVO.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/IOrderRepository.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/package-info.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/OrderService.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/package-info.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/IRuleRepository.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/package-info.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineFilter.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/impl/RuleEngineHandle.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserAgeFilter.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserGenderFilter.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/package-info.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/repository/IUserRepository.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/UserService.java delete mode 100644 xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/impl/UserServiceImpl.java delete mode 100644 xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/package-info.java delete mode 100644 xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/http/package-info.java delete mode 100644 xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/mq/package-info.java delete mode 100644 xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/package-info.java delete mode 100644 xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/task/package-info.java delete mode 100644 xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/package-info.java diff --git a/xfg-frame-api/pom.xml b/atsuc-frame-api/pom.xml similarity index 81% rename from xfg-frame-api/pom.xml rename to atsuc-frame-api/pom.xml index b011bae..8e1c015 100644 --- a/xfg-frame-api/pom.xml +++ b/atsuc-frame-api/pom.xml @@ -4,12 +4,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - xfg-frame-ddd - cn.bugstack + atsuc-frame-ddd + cn.atsuc 1.0-SNAPSHOT - xfg-frame-api + atsuc-frame-api @@ -23,14 +23,14 @@ 3.0.2 - cn.bugstack - xfg-frame-types + cn.atsuc + atsuc-frame-types 1.0-SNAPSHOT - xfg-frame-api + atsuc-frame-api org.apache.maven.plugins diff --git a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/IAccountService.java b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/IAccountService.java similarity index 67% rename from xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/IAccountService.java rename to atsuc-frame-api/src/main/java/cn/atsuc/frame/api/IAccountService.java index 2843cd6..208b9aa 100644 --- a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/IAccountService.java +++ b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/IAccountService.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.api; +package cn.atsuc.frame.api; public interface IAccountService { diff --git a/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/IRuleService.java b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/IRuleService.java new file mode 100644 index 0000000..34268a7 --- /dev/null +++ b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/IRuleService.java @@ -0,0 +1,14 @@ +package cn.atsuc.frame.api; + +import cn.atsuc.frame.api.model.request.DecisionMatterRequest; +import cn.atsuc.frame.api.model.response.DecisionMatterResponse; +import cn.atsuc.frame.types.Response; + +/** + * @description 规则服务 + */ +public interface IRuleService { + + Response doRule(DecisionMatterRequest request); + +} diff --git a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/model/request/DecisionMatterRequest.java b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/model/request/DecisionMatterRequest.java similarity index 61% rename from xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/model/request/DecisionMatterRequest.java rename to atsuc-frame-api/src/main/java/cn/atsuc/frame/api/model/request/DecisionMatterRequest.java index d120ea4..1c97250 100644 --- a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/model/request/DecisionMatterRequest.java +++ b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/model/request/DecisionMatterRequest.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.api.model.request; +package cn.atsuc.frame.api.model.request; import lombok.AllArgsConstructor; import lombok.Data; @@ -7,10 +7,7 @@ import lombok.NoArgsConstructor; import java.util.Map; /** - * @author 小傅哥,微信:fustack * @description 决策请求对象 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/model/response/DecisionMatterResponse.java b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/model/response/DecisionMatterResponse.java similarity index 51% rename from xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/model/response/DecisionMatterResponse.java rename to atsuc-frame-api/src/main/java/cn/atsuc/frame/api/model/response/DecisionMatterResponse.java index c5b0abe..d8e3012 100644 --- a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/model/response/DecisionMatterResponse.java +++ b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/model/response/DecisionMatterResponse.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.api.model.response; +package cn.atsuc.frame.api.model.response; import lombok.AllArgsConstructor; import lombok.Builder; @@ -6,10 +6,7 @@ import lombok.Data; import lombok.NoArgsConstructor; /** - * @author 小傅哥,微信:fustack * @description 决策结果 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/package-info.java b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/package-info.java similarity index 50% rename from xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/package-info.java rename to atsuc-frame-api/src/main/java/cn/atsuc/frame/api/package-info.java index 6d16c5b..afc9542 100644 --- a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/package-info.java +++ b/atsuc-frame-api/src/main/java/cn/atsuc/frame/api/package-info.java @@ -1,4 +1,4 @@ /** * RPC 接口网关定义 */ -package cn.bugstack.xfg.frame.api; \ No newline at end of file +package cn.atsuc.frame.api; \ No newline at end of file diff --git a/xfg-frame-app/Dockerfile b/atsuc-frame-app/Dockerfile similarity index 85% rename from xfg-frame-app/Dockerfile rename to atsuc-frame-app/Dockerfile index 8ee2805..0dd6acf 100644 --- a/xfg-frame-app/Dockerfile +++ b/atsuc-frame-app/Dockerfile @@ -1,13 +1,13 @@ # 基础镜像 FROM openjdk:8-jre-slim # 作者 -MAINTAINER xiaofuge +MAINTAINER atsuc # 配置 ENV PARAMS="" # 时区 ENV TZ=PRC RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # 添加应用 -ADD /target/xfg-frame-app.jar /xfg-frame-app.jar +ADD /target/atsuc-frame-app.jar /atsuc-frame-app.jar ## 在镜像运行为容器后执行的命令 ENTRYPOINT ["java", "-Xmx512m", "-javaagent:/Users/fuzhengwei1/Documents/develop/skywalking/skywalking-agent-8-9/skywalking-agent.jar", "-Dskywalking.agent.service_name=xfg-frame", "-Dskywalking.collector.backend_service=10.253.3.8:11800", "-jar", "/xfg-frame-app.jar"] \ No newline at end of file diff --git a/atsuc-frame-app/build.sh b/atsuc-frame-app/build.sh new file mode 100644 index 0000000..6ed392c --- /dev/null +++ b/atsuc-frame-app/build.sh @@ -0,0 +1 @@ +docker build -f ./Dockerfile -t demowhite/atsuc-frame-app:1.3 . \ No newline at end of file diff --git a/xfg-frame-app/pom.xml b/atsuc-frame-app/pom.xml similarity index 91% rename from xfg-frame-app/pom.xml rename to atsuc-frame-app/pom.xml index e452eba..f1eb974 100644 --- a/xfg-frame-app/pom.xml +++ b/atsuc-frame-app/pom.xml @@ -3,13 +3,13 @@ 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"> - xfg-frame-ddd - cn.bugstack + atsuc-frame-ddd + cn.atsuc 1.0-SNAPSHOT 4.0.0 - xfg-frame-app + atsuc-frame-app jar @@ -94,20 +94,20 @@ - cn.bugstack - xfg-frame-trigger + cn.atsuc + atsuc-frame-trigger 1.0-SNAPSHOT - cn.bugstack - xfg-frame-infrastructure + cn.atsuc + atsuc-frame-infrastructure 1.0-SNAPSHOT - xfg-frame-app + atsuc-frame-app src/main/resources @@ -143,7 +143,7 @@ org.springframework.boot spring-boot-maven-plugin - cn.bugstack.xfg.frame.Application + cn.atsuc.frame.Application JAR diff --git a/xfg-frame-app/src/main/bin/start.sh b/atsuc-frame-app/src/main/bin/start.sh similarity index 83% rename from xfg-frame-app/src/main/bin/start.sh rename to atsuc-frame-app/src/main/bin/start.sh index 584d5a7..d5e1b82 100644 --- a/xfg-frame-app/src/main/bin/start.sh +++ b/atsuc-frame-app/src/main/bin/start.sh @@ -1,5 +1,5 @@ -CONTAINER_NAME=xfg-frame -IMAGE_NAME=fuzhengwei/xfg-frame-app:1.3 +CONTAINER_NAME=demowhite-frame +IMAGE_NAME=demowhite/demowhite-frame-app:1.3 PORT=8090 echo "容器部署开始 ${CONTAINER_NAME}" diff --git a/atsuc-frame-app/src/main/bin/stop.sh b/atsuc-frame-app/src/main/bin/stop.sh new file mode 100644 index 0000000..8faedca --- /dev/null +++ b/atsuc-frame-app/src/main/bin/stop.sh @@ -0,0 +1 @@ +docker stop atsuc-frame-app \ No newline at end of file diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/Application.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/Application.java similarity index 95% rename from xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/Application.java rename to atsuc-frame-app/src/main/java/cn/atsuc/frame/Application.java index 6ef55dd..8120dd6 100644 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/Application.java +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/Application.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame; +package cn.atsuc.frame; import org.apache.dubbo.config.spring.context.annotation.EnableDubbo; import org.springframework.beans.factory.annotation.Configurable; diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/aop/RateLimiterAop.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/aop/RateLimiterAop.java similarity index 90% rename from xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/aop/RateLimiterAop.java rename to atsuc-frame-app/src/main/java/cn/atsuc/frame/aop/RateLimiterAop.java index 2923e8f..1528b84 100644 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/aop/RateLimiterAop.java +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/aop/RateLimiterAop.java @@ -1,7 +1,8 @@ -package cn.bugstack.xfg.frame.aop; +package cn.atsuc.frame.aop; -import cn.bugstack.xfg.frame.types.Constants; -import cn.bugstack.xfg.frame.types.Response; + +import cn.atsuc.frame.types.Constants; +import cn.atsuc.frame.types.Response; import lombok.extern.slf4j.Slf4j; import org.apache.curator.shaded.com.google.common.util.concurrent.RateLimiter; import org.aspectj.lang.JoinPoint; @@ -29,7 +30,7 @@ public class RateLimiterAop { this.limiter = RateLimiter.create(permitsPerSecond); } - @Pointcut("execution(* cn.bugstack.xfg.frame.trigger..*.*(..))") + @Pointcut("execution(* cn.atsuc.xfg.frame.trigger..*.*(..))") public void pointCut() { } diff --git a/atsuc-frame-app/src/main/java/cn/atsuc/frame/aop/package-info.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/aop/package-info.java new file mode 100644 index 0000000..e3d55a2 --- /dev/null +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/aop/package-info.java @@ -0,0 +1,4 @@ +/** + * 统一切面管理 + */ +package cn.atsuc.frame.aop; \ No newline at end of file diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/RateLimiterAopConfig.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/RateLimiterAopConfig.java similarity index 66% rename from xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/RateLimiterAopConfig.java rename to atsuc-frame-app/src/main/java/cn/atsuc/frame/config/RateLimiterAopConfig.java index abe5b1b..0f0f39f 100644 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/RateLimiterAopConfig.java +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/RateLimiterAopConfig.java @@ -1,20 +1,13 @@ -package cn.bugstack.xfg.frame.config; +package cn.atsuc.frame.config; -import cn.bugstack.xfg.frame.aop.RateLimiterAop; +import cn.atsuc.frame.aop.RateLimiterAop; import lombok.extern.slf4j.Slf4j; -import org.apache.curator.shaded.com.google.common.util.concurrent.RateLimiter; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; -import org.aspectj.lang.annotation.Pointcut; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableAsync; -import java.util.concurrent.ThreadPoolExecutor; - @Slf4j @EnableAsync @Configuration diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/RateLimiterAopConfigProperties.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/RateLimiterAopConfigProperties.java similarity index 90% rename from xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/RateLimiterAopConfigProperties.java rename to atsuc-frame-app/src/main/java/cn/atsuc/frame/config/RateLimiterAopConfigProperties.java index 5393e9d..633d91f 100644 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/RateLimiterAopConfigProperties.java +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/RateLimiterAopConfigProperties.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.config; +package cn.atsuc.frame.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/ThreadPoolConfig.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/ThreadPoolConfig.java similarity index 98% rename from xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/ThreadPoolConfig.java rename to atsuc-frame-app/src/main/java/cn/atsuc/frame/config/ThreadPoolConfig.java index fb8a2e9..9ed7faf 100644 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/ThreadPoolConfig.java +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/ThreadPoolConfig.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.config; +package cn.atsuc.frame.config; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/ThreadPoolConfigProperties.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/ThreadPoolConfigProperties.java similarity index 96% rename from xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/ThreadPoolConfigProperties.java rename to atsuc-frame-app/src/main/java/cn/atsuc/frame/config/ThreadPoolConfigProperties.java index 08b934b..ff4003b 100644 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/ThreadPoolConfigProperties.java +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/ThreadPoolConfigProperties.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.config; +package cn.atsuc.frame.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; diff --git a/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/package-info.java b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/package-info.java new file mode 100644 index 0000000..ac609a1 --- /dev/null +++ b/atsuc-frame-app/src/main/java/cn/atsuc/frame/config/package-info.java @@ -0,0 +1,5 @@ +/** + * 配置启动项 + */ +package cn.atsuc.frame.config; + diff --git a/xfg-frame-app/src/main/resources/application-dev.yml b/atsuc-frame-app/src/main/resources/application-dev.yml similarity index 84% rename from xfg-frame-app/src/main/resources/application-dev.yml rename to atsuc-frame-app/src/main/resources/application-dev.yml index 21e1053..21d0161 100644 --- a/xfg-frame-app/src/main/resources/application-dev.yml +++ b/atsuc-frame-app/src/main/resources/application-dev.yml @@ -6,7 +6,7 @@ spring: username: root password: 123456 url: jdbc:mysql://127.0.0.1:3306/road-map?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC&useSSL=true - driver-class-name: com.mysql.jdbc.Driver + driver-class-name: com.mysql.cj.jdbc.Driver mybatis: mapper-locations: classpath:/mybatis/mapper/*.xml @@ -31,7 +31,7 @@ rate-limiter: # Dubbo dubbo: application: - name: xfg-frame-dev + name: atsuc-frame-dev version: 1.0.0 registry: address: zookeeper://127.0.0.1:2181 @@ -39,7 +39,7 @@ dubbo: name: dubbo port: 20883 scan: - base-packages: cn.bugstack.xfg.frame.api + base-packages: cn.atsuc.frame.api # 日志 logging: diff --git a/xfg-frame-app/src/main/resources/application-prod.yml b/atsuc-frame-app/src/main/resources/application-prod.yml similarity index 66% rename from xfg-frame-app/src/main/resources/application-prod.yml rename to atsuc-frame-app/src/main/resources/application-prod.yml index 02384db..06ebf24 100644 --- a/xfg-frame-app/src/main/resources/application-prod.yml +++ b/atsuc-frame-app/src/main/resources/application-prod.yml @@ -3,7 +3,7 @@ server: dubbo: application: - name: xfg-frame + name: atsuc-frame version: 1.0.0 registry: address: zookeeper://127.0.0.1:9181 @@ -11,7 +11,7 @@ dubbo: name: dubbo port: 20881 scan: - base-packages: cn.bugstack.xfg.frame.api + base-packages: cn.atsuc.frame.api logging: level: diff --git a/xfg-frame-app/src/main/resources/application-test.yml b/atsuc-frame-app/src/main/resources/application-test.yml similarity index 66% rename from xfg-frame-app/src/main/resources/application-test.yml rename to atsuc-frame-app/src/main/resources/application-test.yml index 10acca4..38ac79e 100644 --- a/xfg-frame-app/src/main/resources/application-test.yml +++ b/atsuc-frame-app/src/main/resources/application-test.yml @@ -3,7 +3,7 @@ server: dubbo: application: - name: xfg-frame + name: atsuc-frame version: 1.0.0 registry: address: zookeeper://192.168.1.100:9181 @@ -11,7 +11,7 @@ dubbo: name: dubbo port: 20881 scan: - base-packages: cn.bugstack.xfg.frame.api + base-packages: cn.atsuc.frame.api logging: level: diff --git a/xfg-frame-app/src/main/resources/application.yml b/atsuc-frame-app/src/main/resources/application.yml similarity index 67% rename from xfg-frame-app/src/main/resources/application.yml rename to atsuc-frame-app/src/main/resources/application.yml index ad0cce6..e08ff06 100644 --- a/xfg-frame-app/src/main/resources/application.yml +++ b/atsuc-frame-app/src/main/resources/application.yml @@ -1,5 +1,5 @@ spring: config: - name: xfg-frame + name: atsuc-frame profiles: active: dev diff --git a/xfg-frame-app/src/main/resources/logback-spring.xml b/atsuc-frame-app/src/main/resources/logback-spring.xml similarity index 100% rename from xfg-frame-app/src/main/resources/logback-spring.xml rename to atsuc-frame-app/src/main/resources/logback-spring.xml diff --git a/xfg-frame-app/src/main/resources/mybatis/config/mybatis-config.xml b/atsuc-frame-app/src/main/resources/mybatis/config/mybatis-config.xml similarity index 100% rename from xfg-frame-app/src/main/resources/mybatis/config/mybatis-config.xml rename to atsuc-frame-app/src/main/resources/mybatis/config/mybatis-config.xml diff --git a/xfg-frame-app/src/main/resources/mybatis/mapper/RuleTreeNodeLine_Mapper.xml b/atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTreeNodeLine_Mapper.xml similarity index 83% rename from xfg-frame-app/src/main/resources/mybatis/mapper/RuleTreeNodeLine_Mapper.xml rename to atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTreeNodeLine_Mapper.xml index 0748a70..d23a8f1 100644 --- a/xfg-frame-app/src/main/resources/mybatis/mapper/RuleTreeNodeLine_Mapper.xml +++ b/atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTreeNodeLine_Mapper.xml @@ -1,8 +1,8 @@ - + - + diff --git a/xfg-frame-app/src/main/resources/mybatis/mapper/RuleTreeNode_Mapper.xml b/atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTreeNode_Mapper.xml similarity index 85% rename from xfg-frame-app/src/main/resources/mybatis/mapper/RuleTreeNode_Mapper.xml rename to atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTreeNode_Mapper.xml index c13a864..be6c6cb 100644 --- a/xfg-frame-app/src/main/resources/mybatis/mapper/RuleTreeNode_Mapper.xml +++ b/atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTreeNode_Mapper.xml @@ -1,8 +1,8 @@ - + - + diff --git a/xfg-frame-app/src/main/resources/mybatis/mapper/RuleTree_Mapper.xml b/atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTree_Mapper.xml similarity index 84% rename from xfg-frame-app/src/main/resources/mybatis/mapper/RuleTree_Mapper.xml rename to atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTree_Mapper.xml index c8559c4..ea91319 100644 --- a/xfg-frame-app/src/main/resources/mybatis/mapper/RuleTree_Mapper.xml +++ b/atsuc-frame-app/src/main/resources/mybatis/mapper/RuleTree_Mapper.xml @@ -1,8 +1,8 @@ - + - + diff --git a/xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/AESTest.java b/atsuc-frame-app/src/test/java/cn/atsuc/frame/test/AESTest.java similarity index 94% rename from xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/AESTest.java rename to atsuc-frame-app/src/test/java/cn/atsuc/frame/test/AESTest.java index 24ff002..439c21e 100644 --- a/xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/AESTest.java +++ b/atsuc-frame-app/src/test/java/cn/atsuc/frame/test/AESTest.java @@ -1,15 +1,10 @@ -package cn.bugstack.xfg.frame.test; +package cn.atsuc.frame.test; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import java.util.Base64; -/** - * @author Fuzhengwei bugstack.cn @小傅哥 - * @description - * @create 2023-07-18 22:08 - */ public class AESTest { /** diff --git a/xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/ApiTest.java b/atsuc-frame-app/src/test/java/cn/atsuc/frame/test/ApiTest.java similarity index 78% rename from xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/ApiTest.java rename to atsuc-frame-app/src/test/java/cn/atsuc/frame/test/ApiTest.java index 3cfd263..50451d4 100644 --- a/xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/ApiTest.java +++ b/atsuc-frame-app/src/test/java/cn/atsuc/frame/test/ApiTest.java @@ -1,8 +1,8 @@ -package cn.bugstack.xfg.frame.test; +package cn.atsuc.frame.test; -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.model.entity.EngineResultEntity; -import cn.bugstack.xfg.frame.domain.rule.service.engine.EngineFilter; +import cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity; +import cn.atsuc.frame.domain.rule.model.entity.EngineResultEntity; +import cn.atsuc.frame.domain.rule.service.engine.EngineFilter; import com.alibaba.fastjson.JSON; import lombok.extern.slf4j.Slf4j; import org.junit.Test; diff --git a/xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/RpcTest.java b/atsuc-frame-app/src/test/java/cn/atsuc/frame/test/RpcTest.java similarity index 92% rename from xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/RpcTest.java rename to atsuc-frame-app/src/test/java/cn/atsuc/frame/test/RpcTest.java index 628f7a3..94058af 100644 --- a/xfg-frame-app/src/test/java/cn/bugstack/xfg/frame/test/RpcTest.java +++ b/atsuc-frame-app/src/test/java/cn/atsuc/frame/test/RpcTest.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.test; +package cn.atsuc.frame.test; import org.apache.dubbo.config.ApplicationConfig; import org.apache.dubbo.config.ReferenceConfig; @@ -21,7 +21,7 @@ public class RpcTest { public static void main(String[] args) { ApplicationConfig application = new ApplicationConfig(); - application.setName("xfg-frame"); + application.setName("atsuc-frame"); application.setQosEnable(false); RegistryConfig registry = new RegistryConfig(); @@ -29,7 +29,7 @@ public class RpcTest { registry.setRegister(false); ReferenceConfig reference = new ReferenceConfig<>(); - reference.setInterface("cn.bugstack.xfg.frame.api.IAccountService"); + reference.setInterface("cn.atsuc.frame.api.IAccountService"); reference.setVersion("1.0.0"); reference.setGeneric("true"); diff --git a/xfg-frame-domain/pom.xml b/atsuc-frame-domain/pom.xml similarity index 85% rename from xfg-frame-domain/pom.xml rename to atsuc-frame-domain/pom.xml index 7d3bb5d..783154d 100644 --- a/xfg-frame-domain/pom.xml +++ b/atsuc-frame-domain/pom.xml @@ -3,13 +3,13 @@ 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"> - xfg-frame-ddd - cn.bugstack + atsuc-frame-ddd + cn.atsuc 1.0-SNAPSHOT 4.0.0 - xfg-frame-domain + atsuc-frame-domain @@ -34,15 +34,15 @@ - cn.bugstack - xfg-frame-types + cn.atsuc + atsuc-frame-types 1.0-SNAPSHOT - xfg-frame-domain + atsuc-frame-domain org.apache.maven.plugins diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/aggregates/OrderAggregate.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/aggregates/OrderAggregate.java new file mode 100644 index 0000000..79682c0 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/aggregates/OrderAggregate.java @@ -0,0 +1,17 @@ +package cn.atsuc.frame.domain.order.model.aggregates; + + +import cn.atsuc.frame.domain.order.model.entity.OrderItemEntity; +import cn.atsuc.frame.domain.order.model.valobj.OrderIdVO; + +import java.util.List; + +/** + * @description 订单聚合对象 + */ +public class OrderAggregate { + + private OrderIdVO orderId; + private List items; + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/OrderItemEntity.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/OrderItemEntity.java new file mode 100644 index 0000000..20c95d6 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/OrderItemEntity.java @@ -0,0 +1,7 @@ +package cn.atsuc.frame.domain.order.model.entity; + +/** + * @description 订单条目实体 + */ +public class OrderItemEntity { +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/ProductEntity.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/ProductEntity.java new file mode 100644 index 0000000..0152a92 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/entity/ProductEntity.java @@ -0,0 +1,20 @@ +package cn.atsuc.frame.domain.order.model.entity; + +import cn.atsuc.frame.domain.order.model.valobj.ProductDescriptionVO; +import cn.atsuc.frame.domain.order.model.valobj.ProductNameVO; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @description 产品实体 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class ProductEntity { + + private ProductNameVO product; + private ProductDescriptionVO productDescription; + +} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/package-info.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/package-info.java similarity index 97% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/package-info.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/package-info.java index b1b0540..68ad77a 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/package-info.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/package-info.java @@ -10,4 +10,4 @@ * 在聚合中,逻辑应该是与聚合根相关的业务逻辑,而不是将所有的服务功能都放到聚合对象中。聚合对象应该包含与聚合根相关的操作和规则,例如聚合根的创建、修改和删除等操作,以及聚合根的不变量验证等规则。聚合对象还可以包含一些与聚合根相关的查询操作,但是这些查询操作应该是只读的,不应该对聚合根的状态进行修改。 * 至于服务功能,它们可以被实现为应用服务或领域服务,它们可以与聚合对象协同工作,但不应该被包含在聚合对象中。应用服务和领域服务可以调用聚合对象来完成业务逻辑,但是它们不应该直接修改聚合根的状态。 */ -package cn.bugstack.xfg.frame.domain.order.model; \ No newline at end of file +package cn.atsuc.frame.domain.order.model; \ No newline at end of file diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/OrderIdVO.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/OrderIdVO.java new file mode 100644 index 0000000..687018d --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/OrderIdVO.java @@ -0,0 +1,17 @@ +package cn.atsuc.frame.domain.order.model.valobj; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @description + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class OrderIdVO { + + private String orderId; + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductDescriptionVO.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductDescriptionVO.java new file mode 100644 index 0000000..9aa9b10 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductDescriptionVO.java @@ -0,0 +1,17 @@ +package cn.atsuc.frame.domain.order.model.valobj; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @description 产品明细值信息 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class ProductDescriptionVO { + + private String description; + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductNameVO.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductNameVO.java new file mode 100644 index 0000000..ea6c0b1 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/model/valobj/ProductNameVO.java @@ -0,0 +1,17 @@ +package cn.atsuc.frame.domain.order.model.valobj; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @description 产品值信息 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class ProductNameVO { + + private String name; + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/IOrderRepository.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/IOrderRepository.java new file mode 100644 index 0000000..88db88e --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/IOrderRepository.java @@ -0,0 +1,4 @@ +package cn.atsuc.frame.domain.order.repository; + +public interface IOrderRepository { +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/package-info.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/package-info.java new file mode 100644 index 0000000..791ef98 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/repository/package-info.java @@ -0,0 +1,4 @@ +/** + * 仓储接口 + */ +package cn.atsuc.frame.domain.order.repository; \ No newline at end of file diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/OrderService.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/OrderService.java new file mode 100644 index 0000000..e250901 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/OrderService.java @@ -0,0 +1,7 @@ +package cn.atsuc.frame.domain.order.service; + +import org.springframework.stereotype.Service; + +@Service +public class OrderService { +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/package-info.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/package-info.java new file mode 100644 index 0000000..a4fb26b --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/order/service/package-info.java @@ -0,0 +1,4 @@ +/** + * 具体业务实现 + */ +package cn.atsuc.frame.domain.order.service; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/aggregates/TreeRuleAggregate.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/aggregates/TreeRuleAggregate.java similarity index 50% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/aggregates/TreeRuleAggregate.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/aggregates/TreeRuleAggregate.java index 2288eb6..2b9126c 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/aggregates/TreeRuleAggregate.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/aggregates/TreeRuleAggregate.java @@ -1,7 +1,8 @@ -package cn.bugstack.xfg.frame.domain.rule.model.aggregates; +package cn.atsuc.frame.domain.rule.model.aggregates; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeNodeVO; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeRootVO; + +import cn.atsuc.frame.domain.rule.model.valobj.TreeNodeVO; +import cn.atsuc.frame.domain.rule.model.valobj.TreeRootVO; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -10,10 +11,7 @@ import lombok.NoArgsConstructor; import java.util.Map; /** - * @description: 规则树聚合 * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/entity/DecisionMatterEntity.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/entity/DecisionMatterEntity.java similarity index 62% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/entity/DecisionMatterEntity.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/entity/DecisionMatterEntity.java index 1329dfc..17ea98b 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/entity/DecisionMatterEntity.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/entity/DecisionMatterEntity.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.domain.rule.model.entity; +package cn.atsuc.frame.domain.rule.model.entity; import lombok.AllArgsConstructor; import lombok.Builder; @@ -8,10 +8,7 @@ import lombok.NoArgsConstructor; import java.util.Map; /** - * @author 小傅哥,微信:fustack * @description 决策物料实体 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/entity/EngineResultEntity.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/entity/EngineResultEntity.java similarity index 71% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/entity/EngineResultEntity.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/entity/EngineResultEntity.java index 2e5bd09..f3716f3 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/entity/EngineResultEntity.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/entity/EngineResultEntity.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.domain.rule.model.entity; +package cn.atsuc.frame.domain.rule.model.entity; import lombok.AllArgsConstructor; import lombok.Builder; @@ -7,10 +7,6 @@ import lombok.NoArgsConstructor; /** * @description: 决策结果实体 - * @author: 小傅哥,微信:fustack - * @date: 2021/10/8 - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/package-info.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/package-info.java similarity index 51% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/package-info.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/package-info.java index 0b15d81..18a5c1b 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/package-info.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/package-info.java @@ -1,4 +1,4 @@ /** * 模型;vo、dto、entity、aggregate */ -package cn.bugstack.xfg.frame.domain.rule.model; \ No newline at end of file +package cn.atsuc.frame.domain.rule.model; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeNodeLineVO.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeNodeLineVO.java similarity index 63% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeNodeLineVO.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeNodeLineVO.java index bfe1162..db0c3fd 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeNodeLineVO.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeNodeLineVO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.domain.rule.model.valobj; +package cn.atsuc.frame.domain.rule.model.valobj; import lombok.AllArgsConstructor; import lombok.Builder; @@ -7,9 +7,6 @@ import lombok.NoArgsConstructor; /** * @description: 规则树线信息 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeNodeVO.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeNodeVO.java similarity index 71% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeNodeVO.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeNodeVO.java index acfdf56..b5204d4 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeNodeVO.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeNodeVO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.domain.rule.model.valobj; +package cn.atsuc.frame.domain.rule.model.valobj; import lombok.AllArgsConstructor; import lombok.Builder; @@ -9,9 +9,6 @@ import java.util.List; /** * @description: 规则树节点信息 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeRootVO.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeRootVO.java similarity index 58% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeRootVO.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeRootVO.java index 37a26fd..481dc46 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/model/valobj/TreeRootVO.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/model/valobj/TreeRootVO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.domain.rule.model.valobj; +package cn.atsuc.frame.domain.rule.model.valobj; import lombok.AllArgsConstructor; import lombok.Builder; @@ -7,9 +7,6 @@ import lombok.NoArgsConstructor; /** * @description: 规则树根配置 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/IRuleRepository.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/IRuleRepository.java new file mode 100644 index 0000000..fd461cf --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/IRuleRepository.java @@ -0,0 +1,18 @@ +package cn.atsuc.frame.domain.rule.repository; + +import cn.atsuc.frame.domain.rule.model.aggregates.TreeRuleAggregate; + +/** + * @description: 规则信息仓储服务接口 + */ +public interface IRuleRepository { + + /** + * 查询规则决策树配置 + * + * @param treeId 决策树ID + * @return 决策树配置 + */ + TreeRuleAggregate queryTreeRuleRich(Long treeId); + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/package-info.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/package-info.java new file mode 100644 index 0000000..991ded8 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/repository/package-info.java @@ -0,0 +1,4 @@ +/** + * 仓储接口 + */ +package cn.atsuc.frame.domain.rule.repository; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineBase.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineBase.java similarity index 59% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineBase.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineBase.java index c765762..0332044 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineBase.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineBase.java @@ -1,12 +1,9 @@ -package cn.bugstack.xfg.frame.domain.rule.service.engine; - -import cn.bugstack.xfg.frame.domain.rule.model.aggregates.TreeRuleAggregate; -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.model.entity.EngineResultEntity; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeNodeVO; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeRootVO; -import cn.bugstack.xfg.frame.domain.rule.service.logic.LogicFilter; -import cn.bugstack.xfg.frame.types.Constants; +package cn.atsuc.frame.domain.rule.service.engine; + +import cn.atsuc.frame.domain.rule.model.aggregates.TreeRuleAggregate; +import cn.atsuc.frame.domain.rule.model.valobj.TreeNodeVO; +import cn.atsuc.frame.domain.rule.model.valobj.TreeRootVO; +import cn.atsuc.frame.types.Constants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -14,20 +11,17 @@ import java.util.Map; /** * @description: 规则引擎基础类 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ -public abstract class EngineBase extends EngineConfig implements EngineFilter { +public abstract class EngineBase extends EngineConfig implements cn.atsuc.frame.domain.rule.service.engine.EngineFilter { private Logger logger = LoggerFactory.getLogger(EngineBase.class); @Override - public EngineResultEntity process(DecisionMatterEntity matter) { + public cn.atsuc.frame.domain.rule.model.entity.EngineResultEntity process(cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity matter) { throw new RuntimeException("未实现规则引擎服务"); } - protected TreeNodeVO engineDecisionMaker(TreeRuleAggregate treeRuleRich, DecisionMatterEntity matter) { + protected TreeNodeVO engineDecisionMaker(TreeRuleAggregate treeRuleRich, cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity matter) { TreeRootVO treeRoot = treeRuleRich.getTreeRoot(); Map treeNodeMap = treeRuleRich.getTreeNodeMap(); @@ -38,7 +32,7 @@ public abstract class EngineBase extends EngineConfig implements EngineFilter { // 节点类型[NodeType];1子叶、2果实 while (Constants.NodeType.STEM.equals(treeNodeInfo.getNodeType())) { String ruleKey = treeNodeInfo.getRuleKey(); - LogicFilter logicFilter = logicFilterMap.get(ruleKey); + cn.atsuc.frame.domain.rule.service.logic.LogicFilter logicFilter = logicFilterMap.get(ruleKey); String matterValue = logicFilter.matterValue(matter); Long nextNode = logicFilter.filter(matterValue, treeNodeInfo.getTreeNodeLineInfoList()); treeNodeInfo = treeNodeMap.get(nextNode); diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineConfig.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineConfig.java similarity index 54% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineConfig.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineConfig.java index 4b5a74e..c8c61b0 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineConfig.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineConfig.java @@ -1,8 +1,8 @@ -package cn.bugstack.xfg.frame.domain.rule.service.engine; +package cn.atsuc.frame.domain.rule.service.engine; -import cn.bugstack.xfg.frame.domain.rule.service.logic.LogicFilter; -import cn.bugstack.xfg.frame.domain.rule.service.logic.impl.UserAgeFilter; -import cn.bugstack.xfg.frame.domain.rule.service.logic.impl.UserGenderFilter; +import cn.atsuc.frame.domain.rule.service.logic.LogicFilter; +import cn.atsuc.frame.domain.rule.service.logic.impl.UserAgeFilter; +import cn.atsuc.frame.domain.rule.service.logic.impl.UserGenderFilter; import javax.annotation.PostConstruct; import javax.annotation.Resource; @@ -11,9 +11,6 @@ import java.util.concurrent.ConcurrentHashMap; /** * @description: 规则配置 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public class EngineConfig { diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineFilter.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineFilter.java new file mode 100644 index 0000000..90329f8 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/EngineFilter.java @@ -0,0 +1,19 @@ +package cn.atsuc.frame.domain.rule.service.engine; + +import cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity; +import cn.atsuc.frame.domain.rule.model.entity.EngineResultEntity; + +/** + * @description: 规则过滤器引擎 + */ +public interface EngineFilter { + + /** + * 规则过滤器接口 + * + * @param matter 规则决策物料 + * @return 规则决策结果 + */ + EngineResultEntity process(final DecisionMatterEntity matter); + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/impl/RuleEngineHandle.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/impl/RuleEngineHandle.java new file mode 100644 index 0000000..33f20c4 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/engine/impl/RuleEngineHandle.java @@ -0,0 +1,35 @@ +package cn.atsuc.frame.domain.rule.service.engine.impl; + +import cn.atsuc.frame.domain.rule.model.aggregates.TreeRuleAggregate; +import cn.atsuc.frame.domain.rule.model.valobj.TreeNodeVO; +import cn.atsuc.frame.domain.rule.repository.IRuleRepository; +import cn.atsuc.frame.domain.rule.service.engine.EngineBase; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +/** + * @description: 规则引擎处理器 + */ +@Service("ruleEngineHandle") +public class RuleEngineHandle extends EngineBase { + + @Resource + private IRuleRepository ruleRepository; + + @Override + public cn.atsuc.frame.domain.rule.model.entity.EngineResultEntity process(cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity matter) { + // 决策规则树 + TreeRuleAggregate treeRuleRich = ruleRepository.queryTreeRuleRich(matter.getTreeId()); + if (null == treeRuleRich) { + throw new RuntimeException("Tree Rule is null!"); + } + + // 决策节点 + TreeNodeVO treeNodeInfo = engineDecisionMaker(treeRuleRich, matter); + + // 决策结果 + return new cn.atsuc.frame.domain.rule.model.entity.EngineResultEntity(matter.getUserId(), treeNodeInfo.getTreeId(), treeNodeInfo.getTreeNodeId(), treeNodeInfo.getNodeValue()); + } + +} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/BaseLogic.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/BaseLogic.java similarity index 70% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/BaseLogic.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/BaseLogic.java index 29f97b0..2e3521e 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/BaseLogic.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/BaseLogic.java @@ -1,18 +1,15 @@ -package cn.bugstack.xfg.frame.domain.rule.service.logic; +package cn.atsuc.frame.domain.rule.service.logic; -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeNodeLineVO; -import cn.bugstack.xfg.frame.types.Constants; + +import cn.atsuc.frame.domain.rule.model.valobj.TreeNodeLineVO; +import cn.atsuc.frame.types.Constants; import java.util.List; /** * @description: 规则基础抽象类 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ -public abstract class BaseLogic implements LogicFilter { +public abstract class BaseLogic implements cn.atsuc.frame.domain.rule.service.logic.LogicFilter { @Override public Long filter(String matterValue, List treeNodeLineInfoList) { @@ -30,7 +27,7 @@ public abstract class BaseLogic implements LogicFilter { * @return 比对值 */ @Override - public abstract String matterValue(DecisionMatterEntity decisionMatter); + public abstract String matterValue(cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity decisionMatter); private boolean decisionLogic(String matterValue, TreeNodeLineVO nodeLine) { switch (nodeLine.getRuleLimitType()) { diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/LogicFilter.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/LogicFilter.java similarity index 50% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/LogicFilter.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/LogicFilter.java index 71f7dfd..2090660 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/LogicFilter.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/LogicFilter.java @@ -1,15 +1,12 @@ -package cn.bugstack.xfg.frame.domain.rule.service.logic; +package cn.atsuc.frame.domain.rule.service.logic; -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeNodeLineVO; + +import cn.atsuc.frame.domain.rule.model.valobj.TreeNodeLineVO; import java.util.List; /** * @description: 规则过滤器接口 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ public interface LogicFilter { @@ -27,6 +24,6 @@ public interface LogicFilter { * @param decisionMatter 决策物料 * @return 决策值 */ - String matterValue(DecisionMatterEntity decisionMatter); + String matterValue(cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity decisionMatter); } diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserAgeFilter.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserAgeFilter.java new file mode 100644 index 0000000..b2b7a02 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserAgeFilter.java @@ -0,0 +1,19 @@ +package cn.atsuc.frame.domain.rule.service.logic.impl; + + +import cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity; +import cn.atsuc.frame.domain.rule.service.logic.BaseLogic; +import org.springframework.stereotype.Component; + +/** + * @description: 年龄规则 + */ +@Component +public class UserAgeFilter extends BaseLogic { + + @Override + public String matterValue(DecisionMatterEntity decisionMatter) { + return decisionMatter.getValMap().get("age").toString(); + } + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserGenderFilter.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserGenderFilter.java new file mode 100644 index 0000000..fa4be9b --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/logic/impl/UserGenderFilter.java @@ -0,0 +1,19 @@ +package cn.atsuc.frame.domain.rule.service.logic.impl; + + +import cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity; +import cn.atsuc.frame.domain.rule.service.logic.BaseLogic; +import org.springframework.stereotype.Component; + +/** + * @description: 性别规则 + */ +@Component +public class UserGenderFilter extends BaseLogic { + + @Override + public String matterValue(DecisionMatterEntity decisionMatter) { + return decisionMatter.getValMap().get("gender").toString(); + } + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/package-info.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/package-info.java new file mode 100644 index 0000000..3f5a617 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/rule/service/package-info.java @@ -0,0 +1,4 @@ +/** + * 具体业务实现 + */ +package cn.atsuc.frame.domain.rule.service; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/model/valobj/UserVO.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/model/valobj/UserVO.java similarity index 87% rename from xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/model/valobj/UserVO.java rename to atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/model/valobj/UserVO.java index 09d4357..d94534d 100644 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/model/valobj/UserVO.java +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/model/valobj/UserVO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.domain.user.model.valobj; +package cn.atsuc.xfg.frame.domain.user.model.valobj; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/repository/IUserRepository.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/repository/IUserRepository.java new file mode 100644 index 0000000..0c49df1 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/repository/IUserRepository.java @@ -0,0 +1,14 @@ +package cn.atsuc.xfg.frame.domain.user.repository; + +import cn.atsuc.xfg.frame.domain.user.model.valobj.UserVO; + +import java.util.List; + +/** + * @description 仓储接口 + */ +public interface IUserRepository { + + List queryUserList(); + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/UserService.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/UserService.java new file mode 100644 index 0000000..e28a82a --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/UserService.java @@ -0,0 +1,11 @@ +package cn.atsuc.xfg.frame.domain.user.service; + +import cn.atsuc.xfg.frame.domain.user.model.valobj.UserVO; + +import java.util.List; + +public interface UserService { + + List queryUserList(); + +} diff --git a/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/impl/UserServiceImpl.java b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/impl/UserServiceImpl.java new file mode 100644 index 0000000..4e82c99 --- /dev/null +++ b/atsuc-frame-domain/src/main/java/cn/atsuc/frame/domain/user/service/impl/UserServiceImpl.java @@ -0,0 +1,22 @@ +package cn.atsuc.xfg.frame.domain.user.service.impl; + +import cn.atsuc.xfg.frame.domain.user.model.valobj.UserVO; +import cn.atsuc.xfg.frame.domain.user.repository.IUserRepository; +import cn.atsuc.xfg.frame.domain.user.service.UserService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service +public class UserServiceImpl implements UserService { + + @Resource + private IUserRepository userRepository; + + @Override + public List queryUserList() { + return null; + } + +} diff --git a/xfg-frame-infrastructure/pom.xml b/atsuc-frame-infrastructure/pom.xml similarity index 78% rename from xfg-frame-infrastructure/pom.xml rename to atsuc-frame-infrastructure/pom.xml index 7a01757..d2483cc 100644 --- a/xfg-frame-infrastructure/pom.xml +++ b/atsuc-frame-infrastructure/pom.xml @@ -3,14 +3,14 @@ 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"> - xfg-frame-ddd - cn.bugstack + atsuc-frame-ddd + cn.atsuc 1.0-SNAPSHOT 4.0.0 jar - xfg-frame-infrastructure + atsuc-frame-infrastructure @@ -23,20 +23,20 @@ - cn.bugstack - xfg-frame-domain + cn.atsuc + atsuc-frame-domain 1.0-SNAPSHOT - cn.bugstack - xfg-frame-types + cn.atsuc + atsuc-frame-types 1.0-SNAPSHOT - xfg-frame-infrastructure + atsuc-frame-infrastructure diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/IUserDao.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/IUserDao.java similarity index 58% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/IUserDao.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/IUserDao.java index bbecaaf..6f8cefe 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/IUserDao.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/IUserDao.java @@ -1,6 +1,6 @@ -package cn.bugstack.xfg.frame.infrastructure.dao; +package cn.atsuc.xfg.frame.infrastructure.dao; -import cn.bugstack.xfg.frame.infrastructure.po.UserPO; +import cn.atsuc.xfg.frame.infrastructure.po.UserPO; import org.apache.ibatis.annotations.Mapper; import java.util.List; diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeDao.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeDao.java similarity index 54% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeDao.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeDao.java index 106910f..965cfeb 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeDao.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeDao.java @@ -1,13 +1,9 @@ -package cn.bugstack.xfg.frame.infrastructure.dao; -import cn.bugstack.xfg.frame.infrastructure.po.RuleTreePO; +package cn.atsuc.xfg.frame.infrastructure.dao; +import cn.atsuc.xfg.frame.infrastructure.po.RuleTreePO; import org.apache.ibatis.annotations.Mapper; /** * @description: 规则树配置DAO - * @author: 小傅哥,微信:fustack - * @date: 2021/9/22 - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Mapper public interface RuleTreeDao { diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeNodeDao.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeNodeDao.java similarity index 65% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeNodeDao.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeNodeDao.java index 624db48..425b663 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeNodeDao.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeNodeDao.java @@ -1,15 +1,11 @@ -package cn.bugstack.xfg.frame.infrastructure.dao; -import cn.bugstack.xfg.frame.infrastructure.po.RuleTreeNodePO; +package cn.atsuc.xfg.frame.infrastructure.dao; +import cn.atsuc.xfg.frame.infrastructure.po.RuleTreeNodePO; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @description: 规则树节点DAO - * @author: 小傅哥,微信:fustack - * @date: 2021/9/22 - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Mapper public interface RuleTreeNodeDao { diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeNodeLineDao.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeNodeLineDao.java similarity index 60% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeNodeLineDao.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeNodeLineDao.java index 534e7ff..8f8363e 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/dao/RuleTreeNodeLineDao.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/dao/RuleTreeNodeLineDao.java @@ -1,16 +1,12 @@ -package cn.bugstack.xfg.frame.infrastructure.dao; +package cn.atsuc.xfg.frame.infrastructure.dao; -import cn.bugstack.xfg.frame.infrastructure.po.RuleTreeNodeLinePO; +import cn.atsuc.xfg.frame.infrastructure.po.RuleTreeNodeLinePO; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @description: 规则树节点连线DAO - * @author: 小傅哥,微信:fustack - * @date: 2021/9/22 - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Mapper public interface RuleTreeNodeLineDao { diff --git a/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/package-info.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/package-info.java new file mode 100644 index 0000000..02c28ae --- /dev/null +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/package-info.java @@ -0,0 +1,4 @@ +/** + * 数据库操作 + */ +package cn.atsuc.xfg.frame.infrastructure; \ No newline at end of file diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreeNodeLinePO.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreeNodeLinePO.java similarity index 67% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreeNodeLinePO.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreeNodeLinePO.java index 0757e26..854726b 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreeNodeLinePO.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreeNodeLinePO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.infrastructure.po; +package cn.atsuc.xfg.frame.infrastructure.po; import lombok.AllArgsConstructor; import lombok.Data; @@ -6,9 +6,6 @@ import lombok.NoArgsConstructor; /** * @description: 规则树节点连线 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreeNodePO.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreeNodePO.java similarity index 66% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreeNodePO.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreeNodePO.java index c4e6c58..a23f523 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreeNodePO.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreeNodePO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.infrastructure.po; +package cn.atsuc.xfg.frame.infrastructure.po; import lombok.AllArgsConstructor; import lombok.Data; @@ -6,9 +6,6 @@ import lombok.NoArgsConstructor; /** * @description: 规则树节点 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreePO.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreePO.java similarity index 64% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreePO.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreePO.java index d36257c..49b033e 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/RuleTreePO.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/RuleTreePO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.infrastructure.po; +package cn.atsuc.xfg.frame.infrastructure.po; import lombok.AllArgsConstructor; import lombok.Data; @@ -8,10 +8,6 @@ import java.util.Date; /** * @description: 规则树 - * @author: 小傅哥,微信:fustack - * @date: 2021/9/22 - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Data @AllArgsConstructor diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/UserPO.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/UserPO.java similarity index 91% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/UserPO.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/UserPO.java index a96141e..deba739 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/po/UserPO.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/po/UserPO.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.infrastructure.po; +package cn.atsuc.xfg.frame.infrastructure.po; import lombok.AllArgsConstructor; import lombok.Data; diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/repository/RuleRepository.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/repository/RuleRepository.java similarity index 73% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/repository/RuleRepository.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/repository/RuleRepository.java index 80a67d3..fb44b07 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/repository/RuleRepository.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/repository/RuleRepository.java @@ -1,17 +1,17 @@ -package cn.bugstack.xfg.frame.infrastructure.repository; +package cn.atsuc.frame.infrastructure.repository; -import cn.bugstack.xfg.frame.domain.rule.model.aggregates.TreeRuleAggregate; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeNodeLineVO; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeNodeVO; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeRootVO; -import cn.bugstack.xfg.frame.domain.rule.repository.IRuleRepository; -import cn.bugstack.xfg.frame.infrastructure.dao.RuleTreeDao; -import cn.bugstack.xfg.frame.infrastructure.dao.RuleTreeNodeDao; -import cn.bugstack.xfg.frame.infrastructure.dao.RuleTreeNodeLineDao; -import cn.bugstack.xfg.frame.infrastructure.po.RuleTreeNodeLinePO; -import cn.bugstack.xfg.frame.infrastructure.po.RuleTreeNodePO; -import cn.bugstack.xfg.frame.infrastructure.po.RuleTreePO; -import cn.bugstack.xfg.frame.types.Constants; +import cn.atsuc.frame.domain.rule.model.aggregates.TreeRuleAggregate; +import cn.atsuc.frame.domain.rule.model.valobj.TreeNodeLineVO; +import cn.atsuc.frame.domain.rule.model.valobj.TreeNodeVO; +import cn.atsuc.frame.domain.rule.model.valobj.TreeRootVO; +import cn.atsuc.frame.domain.rule.repository.IRuleRepository; +import cn.atsuc.frame.types.Constants; +import cn.atsuc.xfg.frame.infrastructure.dao.RuleTreeDao; +import cn.atsuc.xfg.frame.infrastructure.dao.RuleTreeNodeDao; +import cn.atsuc.xfg.frame.infrastructure.dao.RuleTreeNodeLineDao; +import cn.atsuc.xfg.frame.infrastructure.po.RuleTreeNodeLinePO; +import cn.atsuc.xfg.frame.infrastructure.po.RuleTreeNodePO; +import cn.atsuc.xfg.frame.infrastructure.po.RuleTreePO; import org.springframework.stereotype.Repository; import javax.annotation.Resource; @@ -22,10 +22,6 @@ import java.util.Map; /** * @description: 规则信息仓储服务 - * @author: 小傅哥,微信:fustack - * @date: 2021/10/8 - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! */ @Repository public class RuleRepository implements IRuleRepository { diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/repository/UserRepository.java b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/repository/UserRepository.java similarity index 58% rename from xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/repository/UserRepository.java rename to atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/repository/UserRepository.java index 2c3ba77..9fc10c8 100644 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/repository/UserRepository.java +++ b/atsuc-frame-infrastructure/src/main/java/cn/atsuc/frame/infrastructure/repository/UserRepository.java @@ -1,21 +1,15 @@ -package cn.bugstack.xfg.frame.infrastructure.repository; +package cn.atsuc.xfg.frame.infrastructure.repository; -import cn.bugstack.xfg.frame.domain.user.model.valobj.UserVO; -import cn.bugstack.xfg.frame.domain.user.repository.IUserRepository; -import cn.bugstack.xfg.frame.infrastructure.dao.IUserDao; -import cn.bugstack.xfg.frame.infrastructure.po.UserPO; +import cn.atsuc.xfg.frame.domain.user.model.valobj.UserVO; +import cn.atsuc.xfg.frame.domain.user.repository.IUserRepository; +import cn.atsuc.xfg.frame.infrastructure.dao.IUserDao; +import cn.atsuc.xfg.frame.infrastructure.po.UserPO; import org.springframework.stereotype.Repository; import javax.annotation.Resource; import java.util.ArrayList; import java.util.List; -/** - * @author 小傅哥,微信:fustack - * @description - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ @Repository public class UserRepository implements IUserRepository { diff --git a/xfg-frame-trigger/pom.xml b/atsuc-frame-trigger/pom.xml similarity index 81% rename from xfg-frame-trigger/pom.xml rename to atsuc-frame-trigger/pom.xml index aec9e9e..3ad218b 100644 --- a/xfg-frame-trigger/pom.xml +++ b/atsuc-frame-trigger/pom.xml @@ -3,13 +3,13 @@ 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"> - xfg-frame-ddd - cn.bugstack + atsuc-frame-ddd + cn.atsuc 1.0-SNAPSHOT 4.0.0 jar - xfg-frame-trigger + atsuc-frame-trigger @@ -39,25 +39,25 @@ - cn.bugstack - xfg-frame-domain + cn.atsuc + atsuc-frame-domain 1.0-SNAPSHOT - cn.bugstack - xfg-frame-api + cn.atsuc + atsuc-frame-api 1.0-SNAPSHOT - cn.bugstack - xfg-frame-types + cn.atsuc + atsuc-frame-types 1.0-SNAPSHOT - xfg-frame-trigger + atsuc-frame-trigger org.apache.maven.plugins diff --git a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/http/Controller.java b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/http/Controller.java similarity index 89% rename from xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/http/Controller.java rename to atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/http/Controller.java index 68103ea..c896d53 100644 --- a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/http/Controller.java +++ b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/http/Controller.java @@ -1,7 +1,7 @@ -package cn.bugstack.xfg.frame.trigger.http; +package cn.atsuc.frame.trigger.http; -import cn.bugstack.xfg.frame.types.Constants; -import cn.bugstack.xfg.frame.types.Response; +import cn.atsuc.frame.types.Constants; +import cn.atsuc.frame.types.Response; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; diff --git a/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/http/package-info.java b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/http/package-info.java new file mode 100644 index 0000000..bd1fbb2 --- /dev/null +++ b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/http/package-info.java @@ -0,0 +1,4 @@ +/** + * 触发器;接收http请求 + */ +package cn.atsuc.frame.trigger.http; \ No newline at end of file diff --git a/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/mq/package-info.java b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/mq/package-info.java new file mode 100644 index 0000000..91bf8a8 --- /dev/null +++ b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/mq/package-info.java @@ -0,0 +1,4 @@ +/** + * 触发器;接收mq消费 + */ +package cn.atsuc.frame.trigger.mq; \ No newline at end of file diff --git a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/AccountService.java b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/AccountService.java similarity index 85% rename from xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/AccountService.java rename to atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/AccountService.java index 535c577..e07be21 100644 --- a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/AccountService.java +++ b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/AccountService.java @@ -1,6 +1,6 @@ -package cn.bugstack.xfg.frame.trigger.rpc; +package cn.atsuc.frame.trigger.rpc; -import cn.bugstack.xfg.frame.api.IAccountService; +import cn.atsuc.frame.api.IAccountService; import com.alibaba.fastjson.JSON; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.DubboService; diff --git a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/RuleService.java b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/RuleService.java similarity index 67% rename from xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/RuleService.java rename to atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/RuleService.java index 4d91f90..a32cadd 100644 --- a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/RuleService.java +++ b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/RuleService.java @@ -1,25 +1,19 @@ -package cn.bugstack.xfg.frame.trigger.rpc; +package cn.atsuc.frame.trigger.rpc; -import cn.bugstack.xfg.frame.api.IRuleService; -import cn.bugstack.xfg.frame.api.model.request.DecisionMatterRequest; -import cn.bugstack.xfg.frame.api.model.response.DecisionMatterResponse; -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.model.entity.EngineResultEntity; -import cn.bugstack.xfg.frame.domain.rule.service.engine.EngineFilter; -import cn.bugstack.xfg.frame.types.Constants; -import cn.bugstack.xfg.frame.types.Response; +import cn.atsuc.frame.api.IRuleService; +import cn.atsuc.frame.api.model.request.DecisionMatterRequest; +import cn.atsuc.frame.api.model.response.DecisionMatterResponse; +import cn.atsuc.frame.domain.rule.model.entity.DecisionMatterEntity; +import cn.atsuc.frame.domain.rule.model.entity.EngineResultEntity; +import cn.atsuc.frame.domain.rule.service.engine.EngineFilter; +import cn.atsuc.frame.types.Constants; +import cn.atsuc.frame.types.Response; import com.alibaba.fastjson.JSON; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.DubboService; import javax.annotation.Resource; -/** - * @author 小傅哥,微信:fustack - * @description - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ @Slf4j @DubboService(version = "1.0.0") public class RuleService implements IRuleService { diff --git a/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/package-info.java b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/package-info.java new file mode 100644 index 0000000..67edee2 --- /dev/null +++ b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/rpc/package-info.java @@ -0,0 +1,4 @@ +/** + * 触发器;接收rpc调用 + */ +package cn.atsuc.frame.trigger.rpc; \ No newline at end of file diff --git a/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/task/package-info.java b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/task/package-info.java new file mode 100644 index 0000000..f37a1e3 --- /dev/null +++ b/atsuc-frame-trigger/src/main/java/cn/atsuc/frame/trigger/task/package-info.java @@ -0,0 +1,4 @@ +/** + * 触发器;接收调度任务 + */ +package cn.atsuc.frame.trigger.task; \ No newline at end of file diff --git a/xfg-frame-types/pom.xml b/atsuc-frame-types/pom.xml similarity index 86% rename from xfg-frame-types/pom.xml rename to atsuc-frame-types/pom.xml index a9bc85c..09e1bac 100644 --- a/xfg-frame-types/pom.xml +++ b/atsuc-frame-types/pom.xml @@ -3,13 +3,13 @@ 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"> - xfg-frame-ddd - cn.bugstack + atsuc-frame-ddd + cn.atsuc 1.0-SNAPSHOT 4.0.0 - xfg-frame-types + atsuc-frame-types @@ -25,7 +25,7 @@ - xfg-frame-types + atsuc-frame-types org.apache.maven.plugins diff --git a/xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/Constants.java b/atsuc-frame-types/src/main/java/cn/atsuc/frame/types/Constants.java similarity index 97% rename from xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/Constants.java rename to atsuc-frame-types/src/main/java/cn/atsuc/frame/types/Constants.java index 4c37637..25ef2ec 100644 --- a/xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/Constants.java +++ b/atsuc-frame-types/src/main/java/cn/atsuc/frame/types/Constants.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.types; +package cn.atsuc.frame.types; import lombok.AllArgsConstructor; import lombok.Getter; diff --git a/xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/Response.java b/atsuc-frame-types/src/main/java/cn/atsuc/frame/types/Response.java similarity index 89% rename from xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/Response.java rename to atsuc-frame-types/src/main/java/cn/atsuc/frame/types/Response.java index cd7aa95..7905877 100644 --- a/xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/Response.java +++ b/atsuc-frame-types/src/main/java/cn/atsuc/frame/types/Response.java @@ -1,4 +1,4 @@ -package cn.bugstack.xfg.frame.types; +package cn.atsuc.frame.types; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/atsuc-frame-types/src/main/java/cn/atsuc/frame/types/package-info.java b/atsuc-frame-types/src/main/java/cn/atsuc/frame/types/package-info.java new file mode 100644 index 0000000..df0f2c9 --- /dev/null +++ b/atsuc-frame-types/src/main/java/cn/atsuc/frame/types/package-info.java @@ -0,0 +1,4 @@ +/** + * 通用类型设定 + */ +package cn.atsuc.frame.types; \ No newline at end of file diff --git a/docs/dev-ops/environment/environment-docker-compose.yml b/docs/dev-ops/environment/environment-docker-compose.yml index 0743faa..25bec52 100644 --- a/docs/dev-ops/environment/environment-docker-compose.yml +++ b/docs/dev-ops/environment/environment-docker-compose.yml @@ -3,7 +3,7 @@ version: '3' services: # MySQL 5.7 mysql: - image: mysql:5.7 + image: mysql:8.0.29 container_name: mysql restart: always environment: diff --git a/pom.xml b/pom.xml index 454b62e..c81dc5c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,17 +4,17 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - cn.bugstack - xfg-frame-ddd + cn.atsuc + atsuc-frame-ddd 1.0-SNAPSHOT - xfg-frame-api - xfg-frame-app - xfg-frame-domain - xfg-frame-trigger - xfg-frame-infrastructure - xfg-frame-types + atsuc-frame-api + atsuc-frame-app + atsuc-frame-domain + atsuc-frame-trigger + atsuc-frame-infrastructure + atsuc-frame-types pom @@ -47,7 +47,7 @@ mysql mysql-connector-java - 5.1.34 + 8.0.29 com.alibaba @@ -120,7 +120,7 @@ - xfg-frame + atsuc-frame org.apache.maven.plugins diff --git a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/IRuleService.java b/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/IRuleService.java deleted file mode 100644 index c6c426b..0000000 --- a/xfg-frame-api/src/main/java/cn/bugstack/xfg/frame/api/IRuleService.java +++ /dev/null @@ -1,17 +0,0 @@ -package cn.bugstack.xfg.frame.api; - -import cn.bugstack.xfg.frame.api.model.request.DecisionMatterRequest; -import cn.bugstack.xfg.frame.api.model.response.DecisionMatterResponse; -import cn.bugstack.xfg.frame.types.Response; - -/** - * @author 小傅哥,微信:fustack - * @description 规则服务 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public interface IRuleService { - - Response doRule(DecisionMatterRequest request); - -} diff --git a/xfg-frame-app/build.sh b/xfg-frame-app/build.sh deleted file mode 100644 index c8193b6..0000000 --- a/xfg-frame-app/build.sh +++ /dev/null @@ -1 +0,0 @@ -docker build -f ./Dockerfile -t fuzhengwei/xfg-frame-app:1.3 . \ No newline at end of file diff --git a/xfg-frame-app/src/main/bin/stop.sh b/xfg-frame-app/src/main/bin/stop.sh deleted file mode 100644 index e416043..0000000 --- a/xfg-frame-app/src/main/bin/stop.sh +++ /dev/null @@ -1 +0,0 @@ -docker stop xfg-frame-app \ No newline at end of file diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/aop/package-info.java b/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/aop/package-info.java deleted file mode 100644 index c8cb17c..0000000 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/aop/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 统一切面管理 - */ -package cn.bugstack.xfg.frame.aop; \ No newline at end of file diff --git a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/package-info.java b/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/package-info.java deleted file mode 100644 index a338595..0000000 --- a/xfg-frame-app/src/main/java/cn/bugstack/xfg/frame/config/package-info.java +++ /dev/null @@ -1,5 +0,0 @@ -/** - * 配置启动项 - */ -package cn.bugstack.xfg.frame.config; - diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/aggregates/OrderAggregate.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/aggregates/OrderAggregate.java deleted file mode 100644 index cea1d06..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/aggregates/OrderAggregate.java +++ /dev/null @@ -1,19 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.model.aggregates; - -import cn.bugstack.xfg.frame.domain.order.model.entity.OrderItemEntity; -import cn.bugstack.xfg.frame.domain.order.model.valobj.OrderIdVO; - -import java.util.List; - -/** - * @author 小傅哥,微信:fustack - * @description 订单聚合对象 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public class OrderAggregate { - - private OrderIdVO orderId; - private List items; - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/OrderItemEntity.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/OrderItemEntity.java deleted file mode 100644 index 27954bf..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/OrderItemEntity.java +++ /dev/null @@ -1,10 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.model.entity; - -/** - * @author 小傅哥,微信:fustack - * @description 订单条目实体 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public class OrderItemEntity { -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/ProductEntity.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/ProductEntity.java deleted file mode 100644 index eb595a6..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/entity/ProductEntity.java +++ /dev/null @@ -1,23 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.model.entity; - -import cn.bugstack.xfg.frame.domain.order.model.valobj.ProductDescriptionVO; -import cn.bugstack.xfg.frame.domain.order.model.valobj.ProductNameVO; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * @author 小傅哥,微信:fustack - * @description 产品实体 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Data -@AllArgsConstructor -@NoArgsConstructor -public class ProductEntity { - - private ProductNameVO product; - private ProductDescriptionVO productDescription; - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/OrderIdVO.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/OrderIdVO.java deleted file mode 100644 index 4a27399..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/OrderIdVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.model.valobj; - -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * @author 小傅哥,微信:fustack - * @description - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Data -@AllArgsConstructor -@NoArgsConstructor -public class OrderIdVO { - - private String orderId; - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductDescriptionVO.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductDescriptionVO.java deleted file mode 100644 index 5e090d8..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductDescriptionVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.model.valobj; - -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * @author 小傅哥,微信:fustack - * @description 产品明细值信息 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Data -@AllArgsConstructor -@NoArgsConstructor -public class ProductDescriptionVO { - - private String description; - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductNameVO.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductNameVO.java deleted file mode 100644 index 34fea71..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/model/valobj/ProductNameVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.model.valobj; - -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * @author 小傅哥,微信:fustack - * @description 产品值信息 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Data -@AllArgsConstructor -@NoArgsConstructor -public class ProductNameVO { - - private String name; - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/IOrderRepository.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/IOrderRepository.java deleted file mode 100644 index a3b3a9e..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/IOrderRepository.java +++ /dev/null @@ -1,10 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.repository; - -/** - * @author 小傅哥,微信:fustack - * @description - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public interface IOrderRepository { -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/package-info.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/package-info.java deleted file mode 100644 index 1266b4b..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/repository/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 仓储接口 - */ -package cn.bugstack.xfg.frame.domain.order.repository; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/OrderService.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/OrderService.java deleted file mode 100644 index 3b323d1..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/OrderService.java +++ /dev/null @@ -1,13 +0,0 @@ -package cn.bugstack.xfg.frame.domain.order.service; - -import org.springframework.stereotype.Service; - -/** - * @author 小傅哥,微信:fustack - * @description - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Service -public class OrderService { -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/package-info.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/package-info.java deleted file mode 100644 index cd1a8d9..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/order/service/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 具体业务实现 - */ -package cn.bugstack.xfg.frame.domain.order.service; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/IRuleRepository.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/IRuleRepository.java deleted file mode 100644 index 8e8f16a..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/IRuleRepository.java +++ /dev/null @@ -1,22 +0,0 @@ -package cn.bugstack.xfg.frame.domain.rule.repository; - -import cn.bugstack.xfg.frame.domain.rule.model.aggregates.TreeRuleAggregate; - -/** - * @description: 规则信息仓储服务接口 - * @author: 小傅哥,微信:fustack - * @date: 2021/10/8 - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public interface IRuleRepository { - - /** - * 查询规则决策树配置 - * - * @param treeId 决策树ID - * @return 决策树配置 - */ - TreeRuleAggregate queryTreeRuleRich(Long treeId); - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/package-info.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/package-info.java deleted file mode 100644 index 27972a4..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/repository/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 仓储接口 - */ -package cn.bugstack.xfg.frame.domain.rule.repository; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineFilter.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineFilter.java deleted file mode 100644 index 65313f1..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/EngineFilter.java +++ /dev/null @@ -1,22 +0,0 @@ -package cn.bugstack.xfg.frame.domain.rule.service.engine; - -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.model.entity.EngineResultEntity; - -/** - * @description: 规则过滤器引擎 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public interface EngineFilter { - - /** - * 规则过滤器接口 - * - * @param matter 规则决策物料 - * @return 规则决策结果 - */ - EngineResultEntity process(final DecisionMatterEntity matter); - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/impl/RuleEngineHandle.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/impl/RuleEngineHandle.java deleted file mode 100644 index d72f40e..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/engine/impl/RuleEngineHandle.java +++ /dev/null @@ -1,40 +0,0 @@ -package cn.bugstack.xfg.frame.domain.rule.service.engine.impl; - -import cn.bugstack.xfg.frame.domain.rule.model.aggregates.TreeRuleAggregate; -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.model.entity.EngineResultEntity; -import cn.bugstack.xfg.frame.domain.rule.model.valobj.TreeNodeVO; -import cn.bugstack.xfg.frame.domain.rule.repository.IRuleRepository; -import cn.bugstack.xfg.frame.domain.rule.service.engine.EngineBase; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; - -/** - * @description: 规则引擎处理器 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Service("ruleEngineHandle") -public class RuleEngineHandle extends EngineBase { - - @Resource - private IRuleRepository ruleRepository; - - @Override - public EngineResultEntity process(DecisionMatterEntity matter) { - // 决策规则树 - TreeRuleAggregate treeRuleRich = ruleRepository.queryTreeRuleRich(matter.getTreeId()); - if (null == treeRuleRich) { - throw new RuntimeException("Tree Rule is null!"); - } - - // 决策节点 - TreeNodeVO treeNodeInfo = engineDecisionMaker(treeRuleRich, matter); - - // 决策结果 - return new EngineResultEntity(matter.getUserId(), treeNodeInfo.getTreeId(), treeNodeInfo.getTreeNodeId(), treeNodeInfo.getNodeValue()); - } - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserAgeFilter.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserAgeFilter.java deleted file mode 100644 index af8dbb1..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserAgeFilter.java +++ /dev/null @@ -1,21 +0,0 @@ -package cn.bugstack.xfg.frame.domain.rule.service.logic.impl; - -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.service.logic.BaseLogic; -import org.springframework.stereotype.Component; - -/** - * @description: 年龄规则 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Component -public class UserAgeFilter extends BaseLogic { - - @Override - public String matterValue(DecisionMatterEntity decisionMatter) { - return decisionMatter.getValMap().get("age").toString(); - } - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserGenderFilter.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserGenderFilter.java deleted file mode 100644 index 117ede6..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/logic/impl/UserGenderFilter.java +++ /dev/null @@ -1,21 +0,0 @@ -package cn.bugstack.xfg.frame.domain.rule.service.logic.impl; - -import cn.bugstack.xfg.frame.domain.rule.model.entity.DecisionMatterEntity; -import cn.bugstack.xfg.frame.domain.rule.service.logic.BaseLogic; -import org.springframework.stereotype.Component; - -/** - * @description: 性别规则 - * @author: 小傅哥,微信:fustack - * @github: https://github.com/fuzhengwei - * @Copyright: 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Component -public class UserGenderFilter extends BaseLogic { - - @Override - public String matterValue(DecisionMatterEntity decisionMatter) { - return decisionMatter.getValMap().get("gender").toString(); - } - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/package-info.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/package-info.java deleted file mode 100644 index 137995b..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/rule/service/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 具体业务实现 - */ -package cn.bugstack.xfg.frame.domain.rule.service; \ No newline at end of file diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/repository/IUserRepository.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/repository/IUserRepository.java deleted file mode 100644 index 3c056ce..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/repository/IUserRepository.java +++ /dev/null @@ -1,17 +0,0 @@ -package cn.bugstack.xfg.frame.domain.user.repository; - -import cn.bugstack.xfg.frame.domain.user.model.valobj.UserVO; - -import java.util.List; - -/** - * @author 小傅哥,微信:fustack - * @description 仓储接口 - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public interface IUserRepository { - - List queryUserList(); - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/UserService.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/UserService.java deleted file mode 100644 index 3f42dab..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/UserService.java +++ /dev/null @@ -1,18 +0,0 @@ -package cn.bugstack.xfg.frame.domain.user.service; - -import cn.bugstack.xfg.frame.domain.user.model.valobj.UserVO; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * @author 小傅哥,微信:fustack - * @description - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -public interface UserService { - - List queryUserList(); - -} diff --git a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/impl/UserServiceImpl.java b/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/impl/UserServiceImpl.java deleted file mode 100644 index 2ec9988..0000000 --- a/xfg-frame-domain/src/main/java/cn/bugstack/xfg/frame/domain/user/service/impl/UserServiceImpl.java +++ /dev/null @@ -1,30 +0,0 @@ -package cn.bugstack.xfg.frame.domain.user.service.impl; - -import cn.bugstack.xfg.frame.domain.user.model.valobj.UserVO; -import cn.bugstack.xfg.frame.domain.user.repository.IUserRepository; -import cn.bugstack.xfg.frame.domain.user.service.UserService; -import org.springframework.stereotype.Repository; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; - -/** - * @author 小傅哥,微信:fustack - * @description - * @github https://github.com/fuzhengwei - * @Copyright 公众号:bugstack虫洞栈 | 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获! - */ -@Service -public class UserServiceImpl implements UserService { - - @Resource - private IUserRepository userRepository; - - @Override - public List queryUserList() { - return null; - } - -} diff --git a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/package-info.java b/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/package-info.java deleted file mode 100644 index 3ea8cf9..0000000 --- a/xfg-frame-infrastructure/src/main/java/cn/bugstack/xfg/frame/infrastructure/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 数据库操作 - */ -package cn.bugstack.xfg.frame.infrastructure; \ No newline at end of file diff --git a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/http/package-info.java b/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/http/package-info.java deleted file mode 100644 index 372f01b..0000000 --- a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/http/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 触发器;接收http请求 - */ -package cn.bugstack.xfg.frame.trigger.http; \ No newline at end of file diff --git a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/mq/package-info.java b/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/mq/package-info.java deleted file mode 100644 index 82c7622..0000000 --- a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/mq/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 触发器;接收mq消费 - */ -package cn.bugstack.xfg.frame.trigger.mq; \ No newline at end of file diff --git a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/package-info.java b/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/package-info.java deleted file mode 100644 index 77dcd26..0000000 --- a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/rpc/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 触发器;接收rpc调用 - */ -package cn.bugstack.xfg.frame.trigger.rpc; \ No newline at end of file diff --git a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/task/package-info.java b/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/task/package-info.java deleted file mode 100644 index f1560f2..0000000 --- a/xfg-frame-trigger/src/main/java/cn/bugstack/xfg/frame/trigger/task/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 触发器;接收调度任务 - */ -package cn.bugstack.xfg.frame.trigger.task; \ No newline at end of file diff --git a/xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/package-info.java b/xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/package-info.java deleted file mode 100644 index f6462d1..0000000 --- a/xfg-frame-types/src/main/java/cn/bugstack/xfg/frame/types/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * 通用类型设定 - */ -package cn.bugstack.xfg.frame.types; \ No newline at end of file -- GitLab