This commit is contained in:
zhoudi
2025-06-16 19:20:45 +08:00
committed by 陈博文
parent b75ad892a3
commit 4bc437df5f
24 changed files with 1337 additions and 4 deletions

View File

@@ -25,7 +25,8 @@
<!-- <module>yudao-module-crm</module>-->
<!-- <module>yudao-module-erp</module>-->
<module>yudao-module-ai</module>
<!-- <module>yudao-module-iot</module>-->
<module>yudao-module-template</module>
<!-- <module>yudao-module-iot</module>-->
</modules>
<name>${project.artifactId}</name>

View File

@@ -49,6 +49,8 @@ public class BannerApplicationRunner implements ApplicationRunner {
System.out.println("[AI 大模型 yudao-module-ai - 教程][参考 http://172.16.46.63:30888/ai/build/ 开启]");
// IOT 物联网
System.out.println("[IoT 物联网 yudao-module-iot - 教程][参考 http://172.16.46.63:30888/iot/build/ 开启]");
// IOT 项目模板
System.out.println("[Template 项目模板 yudao-module-template - 教程][参考 http://172.16.46.63:30888/template/ 开启]");
});
}

View File

@@ -188,6 +188,13 @@ spring:
- Path=/admin-api/iot/**
filters:
- RewritePath=/admin-api/iot/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
## template-server 服务
- id: template-admin-api # 路由的编号
uri: grayLb://template-server
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
- Path=/admin-api/template/**
filters:
- RewritePath=/admin-api/template/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
x-forwarded:
prefix-enabled: false # 避免 Swagger 重复带上额外的 /admin-api/system 前缀

View File

@@ -3,11 +3,12 @@
spring:
cloud:
nacos:
server-addr: 172.16.46.63:30848 # Nacos 服务器地址
# server-addr: 172.16.46.63:30848 # Nacos 服务器地址
server-addr: 120.26.250.247:8848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: local # 命名空间。这里使用 dev 开发环境
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布

View File

@@ -3,7 +3,7 @@ spring:
name: infra-server
profiles:
active: dev
active: local
main:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>yudao</artifactId>
<groupId>cn.iocoder.cloud</groupId>
<version>${revision}</version>
</parent>
<modules>
<module>yudao-module-template-api</module>
<module>yudao-module-template-server</module>
</modules>
<modelVersion>4.0.0</modelVersion>
<artifactId>yudao-module-template</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>
样例模块。
</description>
</project>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>yudao-module-template</artifactId>
<groupId>cn.iocoder.cloud</groupId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>yudao-module-template-api</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>
暴露给其它模块调用
</description>
<dependencies>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>yudao-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,14 @@
package cn.iocoder.yudao.module.template.enums;
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
/**
* Template 错误码枚举类
* Template 系统,使用 1_100_000_000 段
*/
public interface ErrorCodeConstants {
// ========== 模板样例 1_100_000_000 ==========
ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_100_000_000, "模板样例不存在");
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,18 @@
package cn.iocoder.yudao.module.template;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 项目的启动类
*
* @author 周迪
*/
@SpringBootApplication
public class TemplateServerApplication {
public static void main(String[] args) {
SpringApplication.run(TemplateServerApplication.class, args);
}
}

Some files were not shown because too many files have changed in this diff Show More