浏览代码

1、移出无用模块

liyanbo 8 月之前
父节点
当前提交
acd64290a6

+ 0 - 32
byzs-framework/byzs-spring-boot-starter-web/src/main/java/cn/iocoder/byzs/framework/banner/core/BannerApplicationRunner.java

@@ -27,42 +27,10 @@ public class BannerApplicationRunner implements ApplicationRunner {
                     "https://doc.iocoder.cn",
                     "https://t.zsxq.com/02Yf6M7Qn");
 
-            // 数据报表
-            if (isNotPresent("cn.iocoder.byzs.module.report.framework.security.config.SecurityConfiguration")) {
-                System.out.println("[报表模块 byzs-module-report - 已禁用][请联系管理员开启:report 模块");
-            }
-            // 工作流
-            if (isNotPresent("cn.iocoder.byzs.module.bpm.framework.flowable.config.BpmFlowableConfiguration")) {
-                System.out.println("[工作流模块 byzs-module-bpm - 已禁用][请联系管理员开启:bpm 模块");
-            }
-            // 商城系统
-            if (isNotPresent("cn.iocoder.byzs.module.trade.framework.web.config.TradeWebConfiguration")) {
-                System.out.println("[商城系统 byzs-module-mall - 已禁用][请联系管理员开启:mall/build 模块");
-            }
-            // ERP 系统
-            if (isNotPresent("cn.iocoder.byzs.module.erp.framework.web.config.ErpWebConfiguration")) {
-                System.out.println("[ERP 系统 byzs-module-erp - 已禁用][请联系管理员开启:erp/build 模块");
-            }
-            // CRM 系统
-            if (isNotPresent("cn.iocoder.byzs.module.crm.framework.web.config.CrmWebConfiguration")) {
-                System.out.println("[CRM 系统 byzs-module-crm - 已禁用][请联系管理员开启:crm/build 模块");
-            }
-            // 微信公众号
-            if (isNotPresent("cn.iocoder.byzs.module.mp.framework.mp.config.MpConfiguration")) {
-                System.out.println("[微信公众号 byzs-module-mp - 已禁用][请联系管理员开启:mp/build 模块");
-            }
-            // 支付平台
-            if (isNotPresent("cn.iocoder.byzs.module.pay.framework.pay.config.PayConfiguration")) {
-                System.out.println("[支付系统 byzs-module-pay - 已禁用][请联系管理员开启:pay/build 模块");
-            }
             // AI 大模型
             if (isNotPresent("cn.iocoder.byzs.module.ai.framework.web.config.AiWebConfiguration")) {
                 System.out.println("[AI 大模型 byzs-module-ai - 已禁用][请联系管理员开启:ai/build 模块");
             }
-            // IoT 物联网
-            if (isNotPresent("cn.iocoder.byzs.module.iot.framework.web.config.IotWebConfiguration")) {
-                System.out.println("[IoT 物联网 byzs-module-iot - 已禁用][请联系管理员开启:iot/build 模块");
-            }
         });
     }
 

+ 0 - 48
byzs-framework/byzs-spring-boot-starter-web/src/main/java/cn/iocoder/byzs/framework/web/core/handler/GlobalExceptionHandler.java

@@ -351,60 +351,12 @@ public class GlobalExceptionHandler {
         if (!message.contains("doesn't exist")) {
             return null;
         }
-        // 1. 数据报表
-        if (message.contains("report_")) {
-            log.error("[报表模块 byzs-module-report - 表结构未导入][请联系管理员开启:report 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[报表模块 byzs-module-report - 表结构未导入][请联系管理员开启:report 模块");
-        }
-        // 2. 工作流
-        if (message.contains("bpm_")) {
-            log.error("[工作流模块 byzs-module-bpm - 表结构未导入][请联系管理员开启:bpm 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[工作流模块 byzs-module-bpm - 表结构未导入][请联系管理员开启:bpm 模块");
-        }
-        // 3. 微信公众号
-        if (message.contains("mp_")) {
-            log.error("[微信公众号 byzs-module-mp - 表结构未导入][请联系管理员开启:mp/build 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[微信公众号 byzs-module-mp - 表结构未导入][请联系管理员开启:mp/build 模块");
-        }
-        // 4. 商城系统
-        if (StrUtil.containsAny(message, "product_", "promotion_", "trade_")) {
-            log.error("[商城系统 byzs-module-mall - 已禁用][请联系管理员开启:mall/build 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[商城系统 byzs-module-mall - 已禁用][请联系管理员开启:mall/build 模块");
-        }
-        // 5. ERP 系统
-        if (message.contains("erp_")) {
-            log.error("[ERP 系统 byzs-module-erp - 表结构未导入][请联系管理员开启:erp/build 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[ERP 系统 byzs-module-erp - 表结构未导入][请联系管理员开启:erp/build 模块");
-        }
-        // 6. CRM 系统
-        if (message.contains("crm_")) {
-            log.error("[CRM 系统 byzs-module-crm - 表结构未导入][请联系管理员开启:crm/build 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[CRM 系统 byzs-module-crm - 表结构未导入][请联系管理员开启:crm/build 模块");
-        }
-        // 7. 支付平台
-        if (message.contains("pay_")) {
-            log.error("[支付模块 byzs-module-pay - 表结构未导入][请联系管理员开启:pay/build 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[支付模块 byzs-module-pay - 表结构未导入][请联系管理员开启:pay/build 模块");
-        }
         // 8. AI 大模型
         if (message.contains("ai_")) {
             log.error("[AI 大模型 byzs-module-ai - 表结构未导入][请联系管理员开启:ai/build 模块");
             return CommonResult.error(NOT_IMPLEMENTED.getCode(),
                     "[AI 大模型 byzs-module-ai - 表结构未导入][请联系管理员开启:ai/build 模块");
         }
-        // 9. IoT 物联网
-        if (message.contains("iot_")) {
-            log.error("[IoT 物联网 byzs-module-iot - 表结构未导入][请联系管理员开启:iot/build 模块");
-            return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                    "[IoT 物联网 byzs-module-iot - 表结构未导入][请联系管理员开启:iot/build 模块");
-        }
         return null;
     }
 

+ 0 - 50
byzs-server/src/main/java/cn/iocoder/byzs/server/controller/DefaultController.java

@@ -20,62 +20,12 @@ import static cn.iocoder.byzs.framework.common.exception.enums.GlobalErrorCodeCo
 @Slf4j
 public class DefaultController {
 
-    @RequestMapping("/admin-api/bpm/**")
-    public CommonResult<Boolean> bpm404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[工作流模块 byzs-module-bpm - 已禁用][请联系管理员开启:bpm 模块");
-    }
-
-    @RequestMapping("/admin-api/mp/**")
-    public CommonResult<Boolean> mp404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[微信公众号 byzs-module-mp - 已禁用][请联系管理员开启:mp/build 模块");
-    }
-
-    @RequestMapping(value = { "/admin-api/product/**", // 商品中心
-            "/admin-api/trade/**", // 交易中心
-            "/admin-api/promotion/**" }) // 营销中心
-    public CommonResult<Boolean> mall404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[商城系统 byzs-module-mall - 已禁用][请联系管理员开启:mall/build 模块");
-    }
-
-    @RequestMapping("/admin-api/erp/**")
-    public CommonResult<Boolean> erp404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[ERP 模块 byzs-module-erp - 已禁用][请联系管理员开启:erp/build 模块");
-    }
-
-    @RequestMapping("/admin-api/crm/**")
-    public CommonResult<Boolean> crm404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[CRM 模块 byzs-module-crm - 已禁用][请联系管理员开启:crm/build 模块");
-    }
-
-    @RequestMapping(value = { "/admin-api/report/**"})
-    public CommonResult<Boolean> report404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[报表模块 byzs-module-report - 已禁用][请联系管理员开启:report 模块");
-    }
-
-    @RequestMapping(value = { "/admin-api/pay/**"})
-    public CommonResult<Boolean> pay404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[支付模块 byzs-module-pay - 已禁用][请联系管理员开启:pay/build 模块");
-    }
-
     @RequestMapping(value = { "/admin-api/ai/**"})
     public CommonResult<Boolean> ai404() {
         return CommonResult.error(NOT_IMPLEMENTED.getCode(),
                 "[AI 大模型 byzs-module-ai - 已禁用][请联系管理员开启:ai/build 模块");
     }
 
-    @RequestMapping(value = { "/admin-api/iot/**"})
-    public CommonResult<Boolean> iot404() {
-        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-                "[IoT 物联网 byzs-module-iot - 已禁用][请联系管理员开启:iot/build 模块");
-    }
-
     /**
      * 测试接口:打印 query、header、body
      */