Commit 8d1d0c15f7911f34f6aa476b19cd51ac19895d46
1 parent
3aad33c3
【同步】Boot 和 Cloud 的功能同步
Showing
5 changed files
with
44 additions
and
0 deletions
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/banner/core/BannerApplicationRunner.java
| ... | ... | @@ -58,6 +58,10 @@ public class BannerApplicationRunner implements ApplicationRunner { |
| 58 | 58 | if (isNotPresent("cn.iocoder.yudao.module.pay.framework.pay.config.PayConfiguration")) { |
| 59 | 59 | System.out.println("[支付系统 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]"); |
| 60 | 60 | } |
| 61 | + // AI 大模型 | |
| 62 | + if (isNotPresent("cn.iocoder.yudao.module.ai.framework.web.config.AiWebConfiguration")) { | |
| 63 | + System.out.println("[AI 大模型 yudao-module-ai - 已禁用][参考 https://doc.iocoder.cn/ai/build/ 开启]"); | |
| 64 | + } | |
| 61 | 65 | }); |
| 62 | 66 | } |
| 63 | 67 | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/framework/package-info.java
0 → 100644
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/framework/web/config/CrmWebConfiguration.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.ai.framework.web.config; | |
| 2 | + | |
| 3 | +import cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration; | |
| 4 | +import org.springdoc.core.models.GroupedOpenApi; | |
| 5 | +import org.springframework.context.annotation.Bean; | |
| 6 | +import org.springframework.context.annotation.Configuration; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * ai 模块的 web 组件的 Configuration | |
| 10 | + * | |
| 11 | + * @author 芋道源码 | |
| 12 | + */ | |
| 13 | +@Configuration(proxyBeanMethods = false) | |
| 14 | +public class CrmWebConfiguration { | |
| 15 | + | |
| 16 | + /** | |
| 17 | + * ai 模块的 API 分组 | |
| 18 | + */ | |
| 19 | + @Bean | |
| 20 | + public GroupedOpenApi aiGroupedOpenApi() { | |
| 21 | + return YudaoSwaggerAutoConfiguration.buildGroupedOpenApi("ai"); | |
| 22 | + } | |
| 23 | + | |
| 24 | +} | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/framework/web/package-info.java
0 → 100644
yudao-server/src/main/java/cn/iocoder/yudao/server/controller/DefaultController.java
| ... | ... | @@ -59,4 +59,10 @@ public class DefaultController { |
| 59 | 59 | "[支付模块 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]"); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + @RequestMapping(value = {"/admin-api/ai/**"}) | |
| 63 | + public CommonResult<Boolean> ai404() { | |
| 64 | + return CommonResult.error(NOT_IMPLEMENTED.getCode(), | |
| 65 | + "[AI 大模型 yudao-module-ai - 已禁用][参考 https://doc.iocoder.cn/ai/build/ 开启]"); | |
| 66 | + } | |
| 67 | + | |
| 62 | 68 | } | ... | ... |