commit
e68c6e38a4
575 changed files with 33137 additions and 4 deletions
@ -0,0 +1,29 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>jonhon-mes-svr</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<packaging>pom</packaging> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@ |
|||||||
|
#Fri Nov 07 14:55:42 CST 2025 |
||||||
|
gradle.version=6.1 |
||||||
Binary file not shown.
@ -0,0 +1,113 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-auth</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-auth</name> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-common</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<artifactId>blade-scope-api</artifactId> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-db</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-cloud</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-metrics</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-redis</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-swagger</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-log</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-social</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-user-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-system-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-resource-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-oauth2</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.github.whvcse</groupId> |
||||||
|
<artifactId>easy-captcha</artifactId> |
||||||
|
<version>1.6.2</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project name="maven-antrun-" default="main"> |
||||||
|
<target name="main"> |
||||||
|
<copy file="D:\ideaworkspeate\jonhon-mes-svr\blade-auth\target/blade-auth.jar" todir="${project.root.directory}/target" overwrite="true" /> |
||||||
|
</target> |
||||||
|
</project> |
||||||
Binary file not shown.
@ -0,0 +1,15 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 8100 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.dev.url} |
||||||
|
username: ${blade.datasource.dev.username} |
||||||
|
password: ${blade.datasource.dev.password} |
||||||
|
|
||||||
|
#第三方登陆 |
||||||
|
social: |
||||||
|
enabled: true |
||||||
|
domain: http://127.0.0.1:2888 |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 8100 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.prod.url} |
||||||
|
username: ${blade.datasource.prod.username} |
||||||
|
password: ${blade.datasource.prod.password} |
||||||
|
|
||||||
|
#第三方登陆 |
||||||
|
social: |
||||||
|
enabled: true |
||||||
|
domain: http://127.0.0.1:2888 |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 8100 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.test.url} |
||||||
|
username: ${blade.datasource.test.username} |
||||||
|
password: ${blade.datasource.test.password} |
||||||
|
|
||||||
|
#第三方登陆 |
||||||
|
social: |
||||||
|
enabled: true |
||||||
|
domain: http://127.0.0.1:2888 |
||||||
@ -0,0 +1,65 @@ |
|||||||
|
# 在使用Spring默认数据源Hikari的情况下配置以下配置项 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
hikari: |
||||||
|
# 自动提交从池中返回的连接 |
||||||
|
auto-commit: true |
||||||
|
# 连接池中维护的最小空闲连接数 |
||||||
|
minimum-idle: 10 |
||||||
|
# 连接池中允许的最大连接数。缺省值:10;推荐的公式:((core_count * 2) + effective_spindle_count) |
||||||
|
maximum-pool-size: 60 |
||||||
|
# 空闲连接超时时间,默认值600000(10分钟),大于等于max-lifetime且max-lifetime>0,会被重置为0;不等于0且小于10秒,会被重置为10秒。 |
||||||
|
# 只有空闲连接数大于最大连接数且空闲时间超过该值,才会被释放 |
||||||
|
idle-timeout: 30000 |
||||||
|
# 连接最大存活时间.不等于0且小于30秒,会被重置为默认值30分钟.设置应该比mysql设置的超时时间短 |
||||||
|
max-lifetime: 1800000 |
||||||
|
# 等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生SQLException, 缺省:30秒 |
||||||
|
connection-timeout: 30000 |
||||||
|
# 连接测试查询 |
||||||
|
connection-test-query: select 1 |
||||||
|
#connection-test-query: select 1 from dual |
||||||
|
freemarker: |
||||||
|
# 模板后缀名 |
||||||
|
suffix: .ftl |
||||||
|
# 文档类型 |
||||||
|
content-type: text/html |
||||||
|
# 页面编码 |
||||||
|
charset: UTF-8 |
||||||
|
# 页面缓存 |
||||||
|
cache: false |
||||||
|
# 模板路径 |
||||||
|
template-loader-path: classpath:/templates/ |
||||||
|
web: |
||||||
|
# 资源路径 |
||||||
|
resources: |
||||||
|
static-locations: classpath:/static/ |
||||||
|
|
||||||
|
#swagger文档 |
||||||
|
swagger: |
||||||
|
base-packages: |
||||||
|
- org.springblade |
||||||
|
- org.springframework.security.oauth2.provider.endpoint |
||||||
|
|
||||||
|
#第三方登陆 |
||||||
|
social: |
||||||
|
oauth: |
||||||
|
GITHUB: |
||||||
|
client-id: 233************ |
||||||
|
client-secret: 233************************************ |
||||||
|
redirect-uri: ${social.domain}/oauth/redirect/github |
||||||
|
GITEE: |
||||||
|
client-id: 233************ |
||||||
|
client-secret: 233************************************ |
||||||
|
redirect-uri: ${social.domain}/oauth/redirect/gitee |
||||||
|
WECHAT_OPEN: |
||||||
|
client-id: 233************ |
||||||
|
client-secret: 233************************************ |
||||||
|
redirect-uri: ${social.domain}/oauth/redirect/wechat |
||||||
|
QQ: |
||||||
|
client-id: 233************ |
||||||
|
client-secret: 233************************************ |
||||||
|
redirect-uri: ${social.domain}/oauth/redirect/qq |
||||||
|
DINGTALK: |
||||||
|
client-id: 233************ |
||||||
|
client-secret: 233************************************ |
||||||
|
redirect-uri: ${social.domain}/oauth/redirect/dingtalk |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Mon Nov 10 11:10:15 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-auth |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
org\springblade\auth\granter\SmsTokenGranter.class |
||||||
|
org\springblade\auth\service\BladeUserDetailService.class |
||||||
|
org\springblade\auth\endpoint\Oauth2SmsEndpoint.class |
||||||
|
org\springblade\auth\AuthApplication.class |
||||||
|
org\springblade\auth\granter\CaptchaTokenGranter.class |
||||||
|
org\springblade\auth\constant\BladeAuthConstant.class |
||||||
|
org\springblade\auth\granter\RegisterTokenGranter.class |
||||||
|
org\springblade\auth\handler\BladeLockHandler.class |
||||||
|
org\springblade\auth\handler\BladeAuthorizationHandler.class |
||||||
|
org\springblade\auth\handler\BladeTokenHandler.class |
||||||
|
org\springblade\auth\config\BladeAuthConfiguration.class |
||||||
|
org\springblade\auth\granter\SocialTokenGranter.class |
||||||
|
org\springblade\auth\service\BladeClientDetailService.class |
||||||
|
org\springblade\auth\utils\TokenUtil.class |
||||||
|
org\springblade\auth\handler\BladePasswordHandler.class |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\granter\RegisterTokenGranter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\utils\TokenUtil.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\granter\SmsTokenGranter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\granter\SocialTokenGranter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\handler\BladeLockHandler.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\handler\BladeTokenHandler.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\service\BladeUserDetailService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\constant\BladeAuthConstant.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\AuthApplication.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\config\BladeAuthConfiguration.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\service\BladeClientDetailService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\granter\CaptchaTokenGranter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\handler\BladeAuthorizationHandler.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\endpoint\Oauth2SmsEndpoint.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\main\java\org\springblade\auth\handler\BladePasswordHandler.java |
||||||
@ -0,0 +1,3 @@ |
|||||||
|
org\springblade\test\CryptoKeyGenerator.class |
||||||
|
org\springblade\test\SignKeyGenerator.class |
||||||
|
org\springblade\test\Sm2KeyGenerator.class |
||||||
@ -0,0 +1,3 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\test\java\org\springblade\test\CryptoKeyGenerator.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\test\java\org\springblade\test\Sm2KeyGenerator.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-auth\src\test\java\org\springblade\test\SignKeyGenerator.java |
||||||
@ -0,0 +1,47 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-common</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-common</name> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-launch</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-loadbalancer</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-auto</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1 @@ |
|||||||
|
org.springblade.common.launch.LauncherServiceImpl |
||||||
@ -0,0 +1 @@ |
|||||||
|
restart.include.blade-common=/blade-common[\\w-]+\.jar |
||||||
@ -0,0 +1,2 @@ |
|||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ |
||||||
|
org.springblade.common.config.BladeCommonConfiguration |
||||||
@ -0,0 +1 @@ |
|||||||
|
org.springblade.common.config.BladeCommonConfiguration |
||||||
@ -0,0 +1,8 @@ |
|||||||
|
${AnsiColor.BLUE} ______ _ _ ___ ___ |
||||||
|
${AnsiColor.BLUE} | ___ \| | | | \ \ / / |
||||||
|
${AnsiColor.BLUE} | |_/ /| | __ _ __| | ___ \ V / |
||||||
|
${AnsiColor.BLUE} | ___ \| | / _` | / _` | / _ \ > < |
||||||
|
${AnsiColor.BLUE} | |_/ /| || (_| || (_| || __/ / . \ |
||||||
|
${AnsiColor.BLUE} \____/ |_| \__,_| \__,_| \___|/__/ \__\ |
||||||
|
|
||||||
|
${AnsiColor.BLUE}:: BladeX ${blade.service.version} :: ${spring.application.name}:${AnsiColor.RED}${blade.env}${AnsiColor.BLUE} :: Running SpringBoot ${spring-boot.version} :: ${AnsiColor.BRIGHT_BLACK} |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Mon Nov 10 14:14:45 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-common |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,11 @@ |
|||||||
|
org\springblade\common\config\BladeCommonConfiguration.class |
||||||
|
META-INF\spring-devtools.properties |
||||||
|
org\springblade\common\constant\TenantConstant.class |
||||||
|
META-INF\spring\org.springframework.boot.autoconfigure.AutoConfiguration.imports |
||||||
|
org\springblade\common\launch\LauncherServiceImpl.class |
||||||
|
org\springblade\common\cache\CacheNames.class |
||||||
|
org\springblade\common\constant\LauncherConstant.class |
||||||
|
META-INF\spring.factories |
||||||
|
META-INF\services\org.springblade.core.launch.service.LauncherService |
||||||
|
org\springblade\common\constant\CommonConstant.class |
||||||
|
org\springblade\common\utils\CommonUtil.class |
||||||
@ -0,0 +1,7 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-common\src\main\java\org\springblade\common\utils\CommonUtil.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-common\src\main\java\org\springblade\common\launch\LauncherServiceImpl.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-common\src\main\java\org\springblade\common\cache\CacheNames.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-common\src\main\java\org\springblade\common\constant\TenantConstant.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-common\src\main\java\org\springblade\common\config\BladeCommonConfiguration.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-common\src\main\java\org\springblade\common\constant\CommonConstant.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-common\src\main\java\org\springblade\common\constant\LauncherConstant.java |
||||||
@ -0,0 +1,111 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-gateway</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-gateway</name> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-launch</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<artifactId>spring-boot-starter-web</artifactId> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
</exclusion> |
||||||
|
<exclusion> |
||||||
|
<artifactId>spring-boot-starter-undertow</artifactId> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-common</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<artifactId>blade-core-launch</artifactId> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-metrics</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-jwt</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.alibaba</groupId> |
||||||
|
<artifactId>fastjson</artifactId> |
||||||
|
<version>2.0.53</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-gateway</artifactId> |
||||||
|
<version>4.1.6</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-bootstrap</artifactId> |
||||||
|
<version>4.1.5</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.alibaba.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> |
||||||
|
<version>2023.0.1.2</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
<artifactId>spring-boot-starter-data-redis-reactive</artifactId> |
||||||
|
<version>3.2.12</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>de.codecentric</groupId> |
||||||
|
<artifactId>spring-boot-admin-starter-client</artifactId> |
||||||
|
<version>3.2.3</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.github.xiaoymin</groupId> |
||||||
|
<artifactId>knife4j-gateway-spring-boot-starter</artifactId> |
||||||
|
<version>4.5.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project name="maven-antrun-" default="main"> |
||||||
|
<target name="main"> |
||||||
|
<copy file="D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\target/blade-gateway.jar" todir="${project.root.directory}/target" overwrite="true" /> |
||||||
|
</target> |
||||||
|
</project> |
||||||
Binary file not shown.
@ -0,0 +1,11 @@ |
|||||||
|
blade: |
||||||
|
#多团队协作服务配置 |
||||||
|
loadbalancer: |
||||||
|
#开启配置 |
||||||
|
enabled: true |
||||||
|
#灰度版本 |
||||||
|
#version: 3.0.0 |
||||||
|
#负载均衡优先调用的ip段 |
||||||
|
prior-ip-pattern: |
||||||
|
- 192.168.0.* |
||||||
|
- 127.0.0.1 |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
knife4j: |
||||||
|
gateway: |
||||||
|
enabled: true |
||||||
|
tags-sorter: order |
||||||
|
operations-sorter: order |
||||||
|
# 指定服务发现的模式聚合微服务文档,并且是默认`default`分组 |
||||||
|
strategy: discover |
||||||
|
discover: |
||||||
|
enabled: true |
||||||
|
# 指定版本号(Swagger2|OpenAPI3) |
||||||
|
version : openapi3 |
||||||
|
# 需要排除的微服务(eg:网关服务) |
||||||
|
excluded-services: |
||||||
|
- blade-admin |
||||||
|
- blade-gateway |
||||||
|
- blade-log |
||||||
@ -0,0 +1,12 @@ |
|||||||
|
server: |
||||||
|
port: 80 |
||||||
|
|
||||||
|
spring: |
||||||
|
cloud: |
||||||
|
gateway: |
||||||
|
discovery: |
||||||
|
locator: |
||||||
|
enabled: true |
||||||
|
loadbalancer: |
||||||
|
retry: |
||||||
|
enabled: true |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Mon Nov 10 14:15:05 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-gateway |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
org\springblade\gateway\provider\SignSecure.class |
||||||
|
org\springblade\gateway\handler\ErrorExceptionHandler.class |
||||||
|
org\springblade\gateway\dynamic\DynamicRouteService.class |
||||||
|
org\springblade\gateway\provider\AuthProvider.class |
||||||
|
org\springblade\gateway\props\RequestProperties.class |
||||||
|
org\springblade\gateway\dynamic\DynamicRouteServiceListener$1.class |
||||||
|
org\springblade\gateway\filter\GatewayFilter.class |
||||||
|
org\springblade\gateway\dynamic\DynamicRouteServiceListener.class |
||||||
|
org\springblade\gateway\GateWayApplication.class |
||||||
|
org\springblade\gateway\props\AuthProperties.class |
||||||
|
org\springblade\gateway\config\ErrorHandlerConfiguration.class |
||||||
|
org\springblade\gateway\provider\BasicSecure.class |
||||||
|
org\springblade\gateway\filter\RequestFilter.class |
||||||
|
org\springblade\gateway\filter\ResponseLogFilter.class |
||||||
|
org\springblade\gateway\provider\RequestProvider.class |
||||||
|
org\springblade\gateway\filter\RequestLogFilter.class |
||||||
|
org\springblade\gateway\config\RouterFunctionConfiguration.class |
||||||
|
org\springblade\gateway\provider\AuthSecure.class |
||||||
|
org\springblade\gateway\dynamic\GatewayPredicate.class |
||||||
|
org\springblade\gateway\filter\AuthFilter.class |
||||||
|
org\springblade\gateway\provider\ResponseProvider.class |
||||||
|
org\springblade\gateway\dynamic\GatewayRoute.class |
||||||
|
org\springblade\gateway\dynamic\GatewayFilter.class |
||||||
@ -0,0 +1,22 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\dynamic\DynamicRouteService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\config\RouterFunctionConfiguration.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\dynamic\GatewayFilter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\provider\RequestProvider.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\dynamic\GatewayRoute.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\filter\RequestFilter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\props\AuthProperties.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\props\RequestProperties.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\provider\SignSecure.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\filter\RequestLogFilter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\filter\ResponseLogFilter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\GateWayApplication.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\provider\AuthProvider.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\provider\ResponseProvider.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\provider\BasicSecure.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\filter\AuthFilter.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\dynamic\DynamicRouteServiceListener.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\config\ErrorHandlerConfiguration.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\provider\AuthSecure.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\handler\ErrorExceptionHandler.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\dynamic\GatewayPredicate.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-gateway\src\main\java\org\springblade\gateway\filter\GatewayFilter.java |
||||||
@ -0,0 +1,49 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-ops-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<packaging>pom</packaging> |
||||||
|
<name>blade-ops-api</name> |
||||||
|
<description>BladeX 微服务API集合</description> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-mybatis</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId> |
||||||
|
<version>4.1.4</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-auto</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1,48 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-develop-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-develop-api</name> |
||||||
|
<description>BladeX 微服务API集合</description> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-mybatis</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId> |
||||||
|
<version>4.1.4</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-auto</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1 @@ |
|||||||
|
restart.include.blade-develop-api=/blade-develop-api[\\w-]+\.jar |
||||||
@ -0,0 +1,4 @@ |
|||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ |
||||||
|
org.springblade.develop.feign.IDatasourceClientFallback |
||||||
|
org.springblade.core.cloud.feign.BladeFeignAutoConfiguration=\ |
||||||
|
org.springblade.develop.feign.IDatasourceClient |
||||||
@ -0,0 +1 @@ |
|||||||
|
org.springblade.develop.feign.IDatasourceClientFallback |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Fri Nov 07 14:04:17 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-develop-api |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,12 @@ |
|||||||
|
org\springblade\develop\feign\IDatasourceClient.class |
||||||
|
org\springblade\develop\pojo\entity\Code.class |
||||||
|
META-INF\spring-devtools.properties |
||||||
|
org\springblade\develop\pojo\entity\Datasource.class |
||||||
|
META-INF\spring\org.springframework.boot.autoconfigure.AutoConfiguration.imports |
||||||
|
org\springblade\develop\pojo\entity\ModelPrototype.class |
||||||
|
org\springblade\develop\feign\IDatasourceClientFallback.class |
||||||
|
org\springblade\develop\pojo\entity\Model.class |
||||||
|
org\springblade\develop\pojo\dto\GeneratorDTO.class |
||||||
|
org\springblade\develop\pojo\entity\CodeSetting.class |
||||||
|
org\springblade\develop\pojo\dto\ModelDTO.class |
||||||
|
META-INF\spring.factories |
||||||
@ -0,0 +1,9 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\pojo\entity\CodeSetting.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\pojo\entity\Model.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\pojo\dto\GeneratorDTO.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\pojo\dto\ModelDTO.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\pojo\entity\Code.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\feign\IDatasourceClient.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\feign\IDatasourceClientFallback.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\pojo\entity\Datasource.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-develop-api\src\main\java\org\springblade\develop\pojo\entity\ModelPrototype.java |
||||||
@ -0,0 +1,48 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-flow-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-flow-api</name> |
||||||
|
<description>BladeX 微服务API集合</description> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-mybatis</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId> |
||||||
|
<version>4.1.4</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-auto</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1 @@ |
|||||||
|
restart.include.blade-flow-api=/blade-flow-api[\\w-]+\.jar |
||||||
@ -0,0 +1,4 @@ |
|||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ |
||||||
|
org.springblade.flow.core.feign.IFlowClientFallback |
||||||
|
org.springblade.core.cloud.feign.BladeFeignAutoConfiguration=\ |
||||||
|
org.springblade.flow.core.feign.IFlowClient |
||||||
@ -0,0 +1 @@ |
|||||||
|
org.springblade.flow.core.feign.IFlowClientFallback |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Fri Nov 07 14:05:15 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-flow-api |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,11 @@ |
|||||||
|
org\springblade\flow\core\utils\TaskUtil.class |
||||||
|
META-INF\spring-devtools.properties |
||||||
|
META-INF\spring\org.springframework.boot.autoconfigure.AutoConfiguration.imports |
||||||
|
org\springblade\flow\core\feign\IFlowClientFallback.class |
||||||
|
org\springblade\flow\core\pojo\entity\BladeFlow.class |
||||||
|
org\springblade\flow\core\pojo\enums\FlowModeEnum.class |
||||||
|
org\springblade\flow\core\feign\IFlowClient.class |
||||||
|
org\springblade\flow\core\constant\ProcessConstant.class |
||||||
|
org\springblade\flow\core\utils\FlowUtil.class |
||||||
|
org\springblade\flow\core\pojo\entity\FlowEntity.class |
||||||
|
META-INF\spring.factories |
||||||
@ -0,0 +1,8 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\pojo\entity\BladeFlow.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\utils\TaskUtil.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\constant\ProcessConstant.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\utils\FlowUtil.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\feign\IFlowClientFallback.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\feign\IFlowClient.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\pojo\entity\FlowEntity.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-flow-api\src\main\java\org\springblade\flow\core\pojo\enums\FlowModeEnum.java |
||||||
@ -0,0 +1,60 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-resource-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-resource-api</name> |
||||||
|
<description>BladeX 微服务API集合</description> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-sms</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-tenant</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-mybatis</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId> |
||||||
|
<version>4.1.4</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-auto</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1 @@ |
|||||||
|
restart.include.blade-resource-api=/blade-resource-api[\\w-]+\.jar |
||||||
@ -0,0 +1,4 @@ |
|||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ |
||||||
|
org.springblade.resource.feign.ISmsClientFallback |
||||||
|
org.springblade.core.cloud.feign.BladeFeignAutoConfiguration=\ |
||||||
|
org.springblade.resource.feign.ISmsClient |
||||||
@ -0,0 +1 @@ |
|||||||
|
org.springblade.resource.feign.ISmsClientFallback |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Fri Nov 07 14:03:46 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-resource-api |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
org\springblade\resource\pojo\vo\AttachVO.class |
||||||
|
META-INF\spring-devtools.properties |
||||||
|
org\springblade\resource\feign\ISmsClient.class |
||||||
|
org\springblade\resource\pojo\vo\SmsVO.class |
||||||
|
org\springblade\resource\pojo\entity\Oss.class |
||||||
|
org\springblade\resource\pojo\vo\OssVO.class |
||||||
|
META-INF\spring.factories |
||||||
|
org\springblade\resource\pojo\entity\Attach.class |
||||||
|
org\springblade\resource\feign\ISmsClientFallback.class |
||||||
|
META-INF\spring\org.springframework.boot.autoconfigure.AutoConfiguration.imports |
||||||
|
org\springblade\resource\utils\SmsUtil.class |
||||||
|
org\springblade\resource\pojo\enums\SmsCodeEnum.class |
||||||
|
org\springblade\resource\pojo\entity\Sms.class |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\feign\ISmsClientFallback.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\feign\ISmsClient.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\pojo\enums\SmsCodeEnum.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\utils\SmsUtil.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\pojo\entity\Sms.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\pojo\vo\AttachVO.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\pojo\entity\Attach.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\pojo\entity\Oss.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\pojo\vo\OssVO.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops-api\blade-resource-api\src\main\java\org\springblade\resource\pojo\vo\SmsVO.java |
||||||
@ -0,0 +1,36 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-ops</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<packaging>pom</packaging> |
||||||
|
<name>blade-ops</name> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-metrics</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1,117 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-admin</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-admin</name> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-common</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<artifactId>blade-core-launch</artifactId> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-launch</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<artifactId>spring-boot-starter-web</artifactId> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
</exclusion> |
||||||
|
<exclusion> |
||||||
|
<artifactId>spring-boot-starter-undertow</artifactId> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-prometheus</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.alibaba.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
||||||
|
<version>2023.0.1.2</version> |
||||||
|
<scope>compile</scope> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<artifactId>nacos-client</artifactId> |
||||||
|
<groupId>com.alibaba.nacos</groupId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.alibaba.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
||||||
|
<version>2023.0.1.2</version> |
||||||
|
<scope>compile</scope> |
||||||
|
<exclusions> |
||||||
|
<exclusion> |
||||||
|
<artifactId>nacos-client</artifactId> |
||||||
|
<groupId>com.alibaba.nacos</groupId> |
||||||
|
</exclusion> |
||||||
|
</exclusions> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.alibaba.nacos</groupId> |
||||||
|
<artifactId>nacos-client</artifactId> |
||||||
|
<version>2.5.1</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>de.codecentric</groupId> |
||||||
|
<artifactId>spring-boot-admin-starter-server</artifactId> |
||||||
|
<version>3.2.3</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
<artifactId>spring-boot-starter-security</artifactId> |
||||||
|
<version>3.2.12</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.taobao</groupId> |
||||||
|
<artifactId>taobao-sdk</artifactId> |
||||||
|
<version>20201116</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-metrics</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project name="maven-antrun-" default="main"> |
||||||
|
<target name="main"> |
||||||
|
<copy file="D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\target/blade-admin.jar" todir="${project.root.directory}/target" overwrite="true" /> |
||||||
|
</target> |
||||||
|
</project> |
||||||
Binary file not shown.
@ -0,0 +1,48 @@ |
|||||||
|
server: |
||||||
|
port: 7002 |
||||||
|
undertow: |
||||||
|
threads: |
||||||
|
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 |
||||||
|
io: 16 |
||||||
|
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 |
||||||
|
worker: 400 |
||||||
|
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 |
||||||
|
buffer-size: 1024 |
||||||
|
# 是否分配的直接内存 |
||||||
|
direct-buffers: true |
||||||
|
|
||||||
|
spring: |
||||||
|
boot: |
||||||
|
admin: |
||||||
|
# 忽略服务名 |
||||||
|
discovery: |
||||||
|
ignored-services: |
||||||
|
- consul |
||||||
|
- serverAddr |
||||||
|
# 自定义UI界面 |
||||||
|
ui: |
||||||
|
title: BladeX Monitor |
||||||
|
external-views: |
||||||
|
- label: 架构官网 |
||||||
|
url: https://bladex.cn/ |
||||||
|
order: 1 |
||||||
|
iframe: true |
||||||
|
# 用于内网安全,判断 admin proxy |
||||||
|
instance-proxy: |
||||||
|
ignored-headers: "X-Forwarded-For" |
||||||
|
# 自定义登录用户名密码 |
||||||
|
security: |
||||||
|
user: |
||||||
|
name: blade |
||||||
|
password: blade |
||||||
|
|
||||||
|
# 监控的相关配置 |
||||||
|
monitor: |
||||||
|
ding-talk: |
||||||
|
enabled: false |
||||||
|
# 用于自定义域名,默认会自动填充为 http://ip:port |
||||||
|
link: http://localhost:${server.port} |
||||||
|
# 钉钉配置的令牌 |
||||||
|
access-token: xxx |
||||||
|
# 如果采用密钥形式,需要添加,否则需要去掉该参数 |
||||||
|
secret: |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Fri Nov 07 14:04:09 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-admin |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
org\springblade\admin\dingtalk\DingTalkService.class |
||||||
|
org\springblade\admin\config\DingTalkConfiguration.class |
||||||
|
org\springblade\admin\dingtalk\MonitorProperties$Service.class |
||||||
|
org\springblade\admin\config\AdminConfiguration.class |
||||||
|
org\springblade\admin\security\InternalAuthorizationManager.class |
||||||
|
org\springblade\admin\dingtalk\MonitorProperties.class |
||||||
|
org\springblade\admin\dingtalk\DingTalkNotifier.class |
||||||
|
org\springblade\admin\AdminApplication.class |
||||||
|
org\springblade\admin\config\SecurityConfiguration.class |
||||||
|
org\springblade\admin\dingtalk\MonitorProperties$DingTalk.class |
||||||
@ -0,0 +1,8 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\config\DingTalkConfiguration.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\dingtalk\DingTalkService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\AdminApplication.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\dingtalk\DingTalkNotifier.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\config\SecurityConfiguration.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\config\AdminConfiguration.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\dingtalk\MonitorProperties.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\security\InternalAuthorizationManager.java |
||||||
@ -0,0 +1,77 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-develop</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-develop</name> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-boot</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-develop</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-swagger</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-excel</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-common</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-dict-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-develop-api</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-metrics</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project name="maven-antrun-" default="main"> |
||||||
|
<target name="main"> |
||||||
|
<copy file="D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\target/blade-develop.jar" todir="${project.root.directory}/target" overwrite="true" /> |
||||||
|
</target> |
||||||
|
</project> |
||||||
Binary file not shown.
@ -0,0 +1,10 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 7007 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.dev.url} |
||||||
|
username: ${blade.datasource.dev.username} |
||||||
|
password: ${blade.datasource.dev.password} |
||||||
@ -0,0 +1,11 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 7007 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.prod.url} |
||||||
|
username: ${blade.datasource.prod.username} |
||||||
|
password: ${blade.datasource.prod.password} |
||||||
|
|
||||||
@ -0,0 +1,10 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 7007 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.test.url} |
||||||
|
username: ${blade.datasource.test.username} |
||||||
|
password: ${blade.datasource.test.password} |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.springblade.develop.mapper.CodeMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="codeResultMap" type="org.springblade.develop.pojo.entity.Code"> |
||||||
|
<id column="id" property="id"/> |
||||||
|
<result column="model_id" property="modelId"/> |
||||||
|
<result column="menu_id" property="menuId"/> |
||||||
|
<result column="service_name" property="serviceName"/> |
||||||
|
<result column="code_name" property="codeName"/> |
||||||
|
<result column="table_name" property="tableName"/> |
||||||
|
<result column="pk_name" property="pkName"/> |
||||||
|
<result column="base_mode" property="baseMode"/> |
||||||
|
<result column="wrap_mode" property="wrapMode"/> |
||||||
|
<result column="table_prefix" property="tablePrefix"/> |
||||||
|
<result column="package_name" property="packageName"/> |
||||||
|
<result column="api_path" property="apiPath"/> |
||||||
|
<result column="web_path" property="webPath"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
</mapper> |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.springblade.develop.mapper.CodeSettingMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="codeSettingResultMap" type="org.springblade.develop.pojo.entity.CodeSetting"> |
||||||
|
<result column="id" property="id"/> |
||||||
|
<result column="name" property="name"/> |
||||||
|
<result column="code" property="code"/> |
||||||
|
<result column="category" property="category"/> |
||||||
|
<result column="settings" property="settings"/> |
||||||
|
<result column="status" property="status"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
</mapper> |
||||||
@ -0,0 +1,22 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.springblade.develop.mapper.DatasourceMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="datasourceResultMap" type="org.springblade.develop.pojo.entity.Datasource"> |
||||||
|
<result column="id" property="id"/> |
||||||
|
<result column="create_user" property="createUser"/> |
||||||
|
<result column="create_dept" property="createDept"/> |
||||||
|
<result column="create_time" property="createTime"/> |
||||||
|
<result column="update_user" property="updateUser"/> |
||||||
|
<result column="update_time" property="updateTime"/> |
||||||
|
<result column="status" property="status"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
<result column="driver_class" property="driverClass"/> |
||||||
|
<result column="url" property="url"/> |
||||||
|
<result column="username" property="username"/> |
||||||
|
<result column="password" property="password"/> |
||||||
|
<result column="remark" property="remark"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
</mapper> |
||||||
@ -0,0 +1,27 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.springblade.develop.mapper.ModelMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="modelResultMap" type="org.springblade.develop.pojo.entity.Model"> |
||||||
|
<id column="id" property="id"/> |
||||||
|
<result column="create_user" property="createUser"/> |
||||||
|
<result column="create_time" property="createTime"/> |
||||||
|
<result column="update_user" property="updateUser"/> |
||||||
|
<result column="update_time" property="updateTime"/> |
||||||
|
<result column="status" property="status"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
<result column="datasource_id" property="datasourceId"/> |
||||||
|
<result column="model_name" property="modelName"/> |
||||||
|
<result column="model_code" property="modelCode"/> |
||||||
|
<result column="model_table" property="modelTable"/> |
||||||
|
<result column="model_class" property="modelClass"/> |
||||||
|
<result column="model_remark" property="modelRemark"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectModelPage" resultMap="modelResultMap"> |
||||||
|
select * from blade_model where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
||||||
@ -0,0 +1,35 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="org.springblade.develop.mapper.ModelPrototypeMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="modelPrototypeResultMap" type="org.springblade.develop.pojo.entity.ModelPrototype"> |
||||||
|
<id column="id" property="id"/> |
||||||
|
<result column="create_user" property="createUser"/> |
||||||
|
<result column="create_time" property="createTime"/> |
||||||
|
<result column="update_user" property="updateUser"/> |
||||||
|
<result column="update_time" property="updateTime"/> |
||||||
|
<result column="status" property="status"/> |
||||||
|
<result column="is_deleted" property="isDeleted"/> |
||||||
|
<result column="jdbc_name" property="jdbcName"/> |
||||||
|
<result column="jdbc_type" property="jdbcType"/> |
||||||
|
<result column="jdbc_comment" property="jdbcComment"/> |
||||||
|
<result column="property_type" property="propertyType"/> |
||||||
|
<result column="property_entity" property="propertyEntity"/> |
||||||
|
<result column="property_name" property="propertyName"/> |
||||||
|
<result column="is_form" property="isForm"/> |
||||||
|
<result column="is_row" property="isRow"/> |
||||||
|
<result column="component_type" property="componentType"/> |
||||||
|
<result column="dict_code" property="dictCode"/> |
||||||
|
<result column="is_required" property="isRequired"/> |
||||||
|
<result column="is_list" property="isList"/> |
||||||
|
<result column="is_query" property="isQuery"/> |
||||||
|
<result column="query_type" property="queryType"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectModelPrototypePage" resultMap="modelPrototypeResultMap"> |
||||||
|
select * from blade_model_prototype where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver |
||||||
|
spring.datasource.url=jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true |
||||||
|
spring.datasource.username=root |
||||||
|
spring.datasource.password=root |
||||||
|
author=BladeX |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
#Generated by Maven |
||||||
|
#Fri Nov 07 14:04:28 CST 2025 |
||||||
|
groupId=org.springblade |
||||||
|
artifactId=blade-develop |
||||||
|
version=4.6.0.RELEASE |
||||||
@ -0,0 +1,24 @@ |
|||||||
|
org\springblade\develop\DevelopApplication.class |
||||||
|
org\springblade\develop\service\impl\DatasourceServiceImpl.class |
||||||
|
org\springblade\develop\service\IGenerateService.class |
||||||
|
org\springblade\develop\service\IModelPrototypeService.class |
||||||
|
org\springblade\develop\controller\DatasourceController.class |
||||||
|
org\springblade\develop\controller\CodeSettingController.class |
||||||
|
org\springblade\develop\service\impl\CodeSettingServiceImpl.class |
||||||
|
org\springblade\develop\controller\ModelController.class |
||||||
|
org\springblade\develop\feign\DatasourceClient.class |
||||||
|
org\springblade\develop\service\ICodeSettingService.class |
||||||
|
org\springblade\develop\service\impl\GenerateServiceImpl.class |
||||||
|
org\springblade\develop\controller\CodeController.class |
||||||
|
org\springblade\develop\mapper\CodeSettingMapper.class |
||||||
|
org\springblade\develop\controller\ModelPrototypeController.class |
||||||
|
org\springblade\develop\service\IDatasourceService.class |
||||||
|
org\springblade\develop\service\impl\CodeServiceImpl.class |
||||||
|
org\springblade\develop\mapper\ModelMapper.class |
||||||
|
org\springblade\develop\mapper\DatasourceMapper.class |
||||||
|
org\springblade\develop\service\impl\ModelPrototypeServiceImpl.class |
||||||
|
org\springblade\develop\service\impl\ModelServiceImpl.class |
||||||
|
org\springblade\develop\mapper\ModelPrototypeMapper.class |
||||||
|
org\springblade\develop\service\ICodeService.class |
||||||
|
org\springblade\develop\service\IModelService.class |
||||||
|
org\springblade\develop\mapper\CodeMapper.class |
||||||
@ -0,0 +1,24 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\GenerateServiceImpl.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IModelService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\ICodeService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\DatasourceMapper.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\DatasourceController.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IGenerateService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\CodeSettingMapper.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\ModelServiceImpl.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\CodeController.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\feign\DatasourceClient.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IDatasourceService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\CodeSettingServiceImpl.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\CodeServiceImpl.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IModelPrototypeService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\CodeMapper.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\ModelPrototypeController.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\ModelMapper.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\ICodeSettingService.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\ModelPrototypeServiceImpl.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\CodeSettingController.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\ModelController.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\DevelopApplication.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\ModelPrototypeMapper.java |
||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\DatasourceServiceImpl.java |
||||||
@ -0,0 +1 @@ |
|||||||
|
org\springblade\test\CodeGenerator.class |
||||||
@ -0,0 +1 @@ |
|||||||
|
D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\test\java\org\springblade\test\CodeGenerator.java |
||||||
@ -0,0 +1,212 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${package.Controller}; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag; |
||||||
|
import io.swagger.v3.oas.annotations.Operation; |
||||||
|
import io.swagger.v3.oas.annotations.Parameter; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import jakarta.validation.Valid; |
||||||
|
|
||||||
|
import org.springblade.core.secure.BladeUser; |
||||||
|
import org.springblade.core.secure.annotation.IsAdmin; |
||||||
|
import org.springblade.core.mp.support.Condition; |
||||||
|
import org.springblade.core.mp.support.Query; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.core.tool.utils.Func; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import ${packageName!}.pojo.entity.${entityKey!}Entity; |
||||||
|
import ${packageName!}.pojo.vo.${entityKey!}VO; |
||||||
|
import ${packageName!}.excel.${entityKey!}Excel; |
||||||
|
#if(hasWrapper) { |
||||||
|
import ${packageName!}.wrapper.${entityKey!}Wrapper; |
||||||
|
#} |
||||||
|
import ${packageName!}.service.${table.serviceName!}; |
||||||
|
#if(isNotEmpty(superControllerClassPackage)){ |
||||||
|
import ${superControllerClassPackage!}; |
||||||
|
#} |
||||||
|
import org.springblade.core.tool.utils.DateUtil; |
||||||
|
import org.springblade.core.excel.util.ExcelUtil; |
||||||
|
import org.springblade.core.tool.constant.BladeConstant; |
||||||
|
import java.util.Map; |
||||||
|
import java.util.List; |
||||||
|
import jakarta.servlet.http.HttpServletResponse; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 控制器 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
#if(hasServiceName) { |
||||||
|
@RequestMapping("${serviceName!}/${entityKeyPath!}") |
||||||
|
#}else{ |
||||||
|
@RequestMapping("/${entityKeyPath!}") |
||||||
|
#} |
||||||
|
@Tag(name = "${table.comment!}", description = "${table.comment!}接口") |
||||||
|
#if(isNotEmpty(superControllerClass)){ |
||||||
|
public class ${table.controllerName!} extends ${superControllerClass!} { |
||||||
|
#} |
||||||
|
#else{ |
||||||
|
public class ${table.controllerName!} { |
||||||
|
#} |
||||||
|
|
||||||
|
private final ${table.serviceName!} ${entityKeyPath!}Service; |
||||||
|
|
||||||
|
#if(hasWrapper){ |
||||||
|
/** |
||||||
|
* ${table.comment!} 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@Operation(summary = "详情", description = "传入${entityKeyPath!}") |
||||||
|
public R<${entityKey!}VO> detail(${entityKey!}Entity ${entityKeyPath!}) { |
||||||
|
${entityKey!}Entity detail = ${entityKeyPath!}Service.getOne(Condition.getQueryWrapper(${entityKeyPath!})); |
||||||
|
return R.data(${entityKey!}Wrapper.build().entityVO(detail)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@Operation(summary = "分页", description = "传入${entityKeyPath!}") |
||||||
|
public R<IPage<${entityKey!}VO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> ${entityKeyPath!}, Query query) { |
||||||
|
IPage<${entityKey!}Entity> pages = ${entityKeyPath!}Service.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class)); |
||||||
|
return R.data(${entityKey!}Wrapper.build().pageVO(pages)); |
||||||
|
} |
||||||
|
|
||||||
|
#}else{ |
||||||
|
/** |
||||||
|
* ${table.comment!} 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@Operation(summary = "详情", description = "传入${entityKeyPath!}") |
||||||
|
public R<${entityKey!}Entity> detail(${entityKey!}Entity ${entityKeyPath!}) { |
||||||
|
${entityKey!}Entity detail = ${entityKeyPath!}Service.getOne(Condition.getQueryWrapper(${entityKeyPath!})); |
||||||
|
return R.data(detail); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@Operation(summary = "分页", description = "传入${entityKeyPath!}") |
||||||
|
public R<IPage<${entityKey!}Entity>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> ${entityKeyPath!}, Query query) { |
||||||
|
IPage<${entityKey!}Entity> pages = ${entityKeyPath!}Service.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class)); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
#} |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 自定义分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/page") |
||||||
|
@ApiOperationSupport(order = 3) |
||||||
|
@Operation(summary = "分页", description = "传入${entityKeyPath!}") |
||||||
|
public R<IPage<${entityKey!}VO>> page(${entityKey!}VO ${entityKeyPath!}, Query query) { |
||||||
|
IPage<${entityKey!}VO> pages = ${entityKeyPath!}Service.select${entityKey!}Page(Condition.getPage(query), ${entityKeyPath!}); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 新增 |
||||||
|
*/ |
||||||
|
@PostMapping("/save") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@Operation(summary = "新增", description = "传入${entityKeyPath!}") |
||||||
|
public R save(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) { |
||||||
|
return R.status(${entityKeyPath!}Service.save(${entityKeyPath!})); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/update") |
||||||
|
@ApiOperationSupport(order = 5) |
||||||
|
@Operation(summary = "修改", description = "传入${entityKeyPath!}") |
||||||
|
public R update(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) { |
||||||
|
return R.status(${entityKeyPath!}Service.updateById(${entityKeyPath!})); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 新增或修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/submit") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
@Operation(summary = "新增或修改", description = "传入${entityKeyPath!}") |
||||||
|
public R submit(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) { |
||||||
|
return R.status(${entityKeyPath!}Service.saveOrUpdate(${entityKeyPath!})); |
||||||
|
} |
||||||
|
|
||||||
|
#if(hasSuperEntity){ |
||||||
|
/** |
||||||
|
* ${table.comment!} 删除 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@Operation(summary = "逻辑删除", description = "传入ids") |
||||||
|
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(${entityKeyPath!}Service.deleteLogic(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
#}else{ |
||||||
|
/** |
||||||
|
* ${table.comment!} 删除 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@Operation(summary = "删除", description = "传入ids") |
||||||
|
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(${entityKeyPath!}Service.removeByIds(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
#} |
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
*/ |
||||||
|
@IsAdmin |
||||||
|
@GetMapping("/export-${entityKeyPath!}") |
||||||
|
@ApiOperationSupport(order = 8) |
||||||
|
@Operation(summary = "导出数据", description = "传入${entityKeyPath!}") |
||||||
|
public void export${entityKey!}(@Parameter(hidden = true) @RequestParam Map<String, Object> ${entityKeyPath!}, BladeUser bladeUser, HttpServletResponse response) { |
||||||
|
QueryWrapper<${entityKey!}Entity> queryWrapper = Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class); |
||||||
|
//if (!AuthUtil.isAdministrator()) { |
||||||
|
// queryWrapper.lambda().eq(${entity!}::getTenantId, bladeUser.getTenantId()); |
||||||
|
//} |
||||||
|
//queryWrapper.lambda().eq(${entityKey!}Entity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||||
|
List<${entityKey!}Excel> list = ${entityKeyPath!}Service.export${entityKey!}(queryWrapper); |
||||||
|
ExcelUtil.export(response, "${table.comment!}数据" + DateUtil.time(), "${table.comment!}数据表", list, ${entityKey!}Excel.class); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,100 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${package.Entity!}; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||||
|
#for(x in table.importPackages){ |
||||||
|
#if(isNotEmpty(x)){ |
||||||
|
#if(hasSuperEntity&&!strutil.contain(x,"Serializable")){ |
||||||
|
import ${x!}; |
||||||
|
#} |
||||||
|
#if(!hasSuperEntity&&!strutil.contain(x,"TenantEntity")){ |
||||||
|
import ${x!}; |
||||||
|
#} |
||||||
|
#} |
||||||
|
#} |
||||||
|
#if(hasSuperEntity){ |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
#}else{ |
||||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||||
|
#} |
||||||
|
import java.io.Serial; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 实体类 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("${table.name!}") |
||||||
|
@Schema(description = "${entity!}对象") |
||||||
|
#if(hasSuperEntity){ |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class ${entityKey!}Entity extends TenantEntity { |
||||||
|
|
||||||
|
@Serial |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
#}else{ |
||||||
|
public class ${entityKey!}Entity implements Serializable { |
||||||
|
|
||||||
|
@Serial |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 主键 |
||||||
|
*/ |
||||||
|
@JsonSerialize(using = ToStringSerializer.class) |
||||||
|
@Schema(description = "主键") |
||||||
|
@TableId(value = "id", type = IdType.ASSIGN_ID) |
||||||
|
private Long id; |
||||||
|
#} |
||||||
|
|
||||||
|
#for(x in table.fields) { |
||||||
|
#if(hasSuperEntity){ |
||||||
|
#if(x.propertyName!="id"&&x.propertyName!="createUser"&&x.propertyName!="createDept"&&x.propertyName!="createTime"&&x.propertyName!="updateUser"&&x.propertyName!="updateTime"&&x.propertyName!="status"&&x.propertyName!="isDeleted"&&x.propertyName!="tenantId"){ |
||||||
|
/** |
||||||
|
* ${x.comment!} |
||||||
|
*/ |
||||||
|
@Schema(description = "${x.comment!}") |
||||||
|
private ${x.propertyType!} ${x.propertyName!}; |
||||||
|
#} |
||||||
|
#}else{ |
||||||
|
#if(x.propertyName!="id"){ |
||||||
|
/** |
||||||
|
* ${x.comment!} |
||||||
|
*/ |
||||||
|
@Schema(description = "${x.comment!}") |
||||||
|
private ${x.propertyType!} ${x.propertyName!}; |
||||||
|
#} |
||||||
|
#} |
||||||
|
#} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,45 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${strutil.replace(package.Entity,"entity","dto")}; |
||||||
|
|
||||||
|
import ${packageName!}.pojo.entity.${entityKey!}Entity; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import java.io.Serial; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 数据传输对象实体类 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class ${entityKey!}DTO extends ${entityKey!}Entity { |
||||||
|
@Serial |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,69 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${strutil.replace(package.Entity,"pojo.entity","excel")}; |
||||||
|
|
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
#for(x in table.importPackages){ |
||||||
|
#if(isNotEmpty(x)&&!strutil.contain(x,"TableName")&&!strutil.contain(x,"TenantEntity")){ |
||||||
|
import ${x!}; |
||||||
|
#} |
||||||
|
#} |
||||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||||
|
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||||
|
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||||
|
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||||
|
import java.io.Serial; |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} Excel实体类 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ColumnWidth(25) |
||||||
|
@HeadRowHeight(20) |
||||||
|
@ContentRowHeight(18) |
||||||
|
public class ${entityKey!}Excel implements Serializable { |
||||||
|
|
||||||
|
@Serial |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
#for(x in table.fields) { |
||||||
|
#if(x.propertyName!="createUser"&&x.propertyName!="createDept"&&x.propertyName!="createTime"&&x.propertyName!="updateUser"&&x.propertyName!="updateTime"){ |
||||||
|
/** |
||||||
|
* ${x.comment!} |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("${x.comment!}") |
||||||
|
private ${x.propertyType!} ${x.propertyName!}; |
||||||
|
#} |
||||||
|
#} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,45 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${strutil.replace(package.Entity,"entity","vo")}; |
||||||
|
|
||||||
|
import ${packageName!}.pojo.entity.${entityKey!}Entity; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import java.io.Serial; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 视图实体类 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class ${entityKey!}VO extends ${entityKey!}Entity { |
||||||
|
@Serial |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,62 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${package.Mapper!}; |
||||||
|
|
||||||
|
import ${packageName!}.pojo.entity.${entityKey!}Entity; |
||||||
|
import ${packageName!}.pojo.vo.${entityKey!}VO; |
||||||
|
import ${packageName!}.excel.${entityKey!}Excel; |
||||||
|
import ${superMapperClassPackage!}; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.apache.ibatis.annotations.Param; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} Mapper 接口 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
public interface ${table.mapperName!} extends ${superMapperClass!}<${entityKey!}Entity> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page 分页参数 |
||||||
|
* @param ${entityKeyPath!} 查询参数 |
||||||
|
* @return List<${entityKey!}VO> |
||||||
|
*/ |
||||||
|
List<${entityKey!}VO> select${entityKey!}Page(IPage page, ${entityKey!}VO ${entityKeyPath!}); |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper 查询条件 |
||||||
|
* @return List<${entityKey!}Excel> |
||||||
|
*/ |
||||||
|
List<${entityKey!}Excel> export${entityKey!}(@Param("ew") Wrapper<${entityKey!}Entity> queryWrapper); |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,24 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="${package.Mapper!}.${table.mapperName!}"> |
||||||
|
|
||||||
|
#if(enableCache){ |
||||||
|
<!-- 开启二级缓存 --> |
||||||
|
<cache type="org.mybatis.caches.ehcache.LoggingEhcache"/> |
||||||
|
#} |
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="${entityKeyPath!}ResultMap" type="${package.Entity!}.${entityKey!}Entity"> |
||||||
|
#for(x in table.fields) { |
||||||
|
<result column="${x.name!}" property="${x.propertyName!}"/> |
||||||
|
#} |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
<select id="select${entityKey!}Page" resultMap="${entityKeyPath!}ResultMap"> |
||||||
|
select * from ${table.name} where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
<select id="export${entityKey!}" resultType="${packageName!}.excel.${entityKey!}Excel"> |
||||||
|
SELECT * FROM ${table.name!} \${ew.customSqlSegment} |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
||||||
@ -0,0 +1,68 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${package.Service!}; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||||
|
import ${packageName!}.pojo.entity.${entityKey!}Entity; |
||||||
|
import ${packageName!}.pojo.vo.${entityKey!}VO; |
||||||
|
import ${packageName!}.excel.${entityKey!}Excel; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
#if(hasSuperEntity){ |
||||||
|
import ${superServiceClassPackage!}; |
||||||
|
#}else{ |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
#} |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 服务类 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
#if(hasSuperEntity){ |
||||||
|
public interface ${table.serviceName!} extends ${superServiceClass!}<${entity!}> { |
||||||
|
#}else{ |
||||||
|
public interface ${table.serviceName!} extends IService<${entity!}> { |
||||||
|
#} |
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page 分页参数 |
||||||
|
* @param ${entityKeyPath!} 查询参数 |
||||||
|
* @return IPage<${entityKey!}VO> |
||||||
|
*/ |
||||||
|
IPage<${entityKey!}VO> select${entityKey!}Page(IPage<${entityKey!}VO> page, ${entityKey!}VO ${entityKeyPath!}); |
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper 查询条件 |
||||||
|
* @return List<${entityKey!}Excel> |
||||||
|
*/ |
||||||
|
List<${entityKey!}Excel> export${entityKey!}(Wrapper<${entityKey!}Entity> queryWrapper); |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,70 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${package.ServiceImpl!}; |
||||||
|
|
||||||
|
import ${packageName!}.pojo.entity.${entityKey!}Entity; |
||||||
|
import ${packageName!}.pojo.vo.${entityKey!}VO; |
||||||
|
import ${packageName!}.excel.${entityKey!}Excel; |
||||||
|
import ${packageName!}.mapper.${table.mapperName!}; |
||||||
|
import ${packageName!}.service.${table.serviceName!}; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
#if(hasSuperEntity){ |
||||||
|
import ${superServiceImplClassPackage!}; |
||||||
|
#}else{ |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
#} |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 服务实现类 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
#if(hasSuperEntity){ |
||||||
|
public class ${table.serviceImplName!} extends ${superServiceImplClass!}<${table.mapperName!}, ${entity!}> implements ${table.serviceName!} { |
||||||
|
#}else{ |
||||||
|
public class ${table.serviceImplName!} extends ServiceImpl<${table.mapperName!}, ${entity!}> implements ${table.serviceName!} { |
||||||
|
#} |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<${entityKey!}VO> select${entityKey!}Page(IPage<${entityKey!}VO> page, ${entityKey!}VO ${entityKeyPath!}) { |
||||||
|
return page.setRecords(baseMapper.select${entityKey!}Page(page, ${entityKeyPath!})); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<${entityKey!}Excel> export${entityKey!}(Wrapper<${entityKey!}Entity> queryWrapper) { |
||||||
|
List<${entityKey!}Excel> ${entityKeyPath!}List = baseMapper.export${entityKey!}(queryWrapper); |
||||||
|
//${entityKeyPath!}List.forEach(${entityKeyPath!} -> { |
||||||
|
// ${entityKeyPath!}.setTypeName(DictCache.getValue(DictEnum.YES_NO, ${entity!}.getType())); |
||||||
|
//}); |
||||||
|
return ${entityKeyPath!}List; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,58 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved. |
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package ${strutil.replace(package.Entity,"pojo.entity","wrapper")}; |
||||||
|
|
||||||
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||||
|
import org.springblade.core.tool.utils.BeanUtil; |
||||||
|
import ${packageName!}.pojo.entity.${entityKey!}Entity; |
||||||
|
import ${packageName!}.pojo.vo.${entityKey!}VO; |
||||||
|
import java.util.Objects; |
||||||
|
|
||||||
|
/** |
||||||
|
* ${table.comment!} 包装类,返回视图层所需的字段 |
||||||
|
* |
||||||
|
* @author ${author!} |
||||||
|
* @since ${date!} |
||||||
|
*/ |
||||||
|
public class ${entityKey!}Wrapper extends BaseEntityWrapper<${entityKey!}Entity, ${entityKey!}VO> { |
||||||
|
|
||||||
|
public static ${entityKey!}Wrapper build() { |
||||||
|
return new ${entityKey!}Wrapper(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public ${entityKey!}VO entityVO(${entityKey!}Entity ${entityKeyPath!}) { |
||||||
|
${entityKey!}VO ${entityKeyPath!}VO = Objects.requireNonNull(BeanUtil.copyProperties(${entityKeyPath!}, ${entityKey!}VO.class)); |
||||||
|
|
||||||
|
//User createUser = UserCache.getUser(${entityKeyPath!}.getCreateUser()); |
||||||
|
//User updateUser = UserCache.getUser(${entityKeyPath!}.getUpdateUser()); |
||||||
|
//${entityKeyPath!}VO.setCreateUserName(createUser.getName()); |
||||||
|
//${entityKeyPath!}VO.setUpdateUserName(updateUser.getName()); |
||||||
|
|
||||||
|
return ${entityKeyPath!}VO; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver |
||||||
|
spring.datasource.url=jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true |
||||||
|
spring.datasource.username=root |
||||||
|
spring.datasource.password=root |
||||||
|
author=BladeX |
||||||
@ -0,0 +1,65 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-job</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<name>blade-job</name> |
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-common</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-core-boot</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-http</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-swagger</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-powerjob</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-metrics</artifactId> |
||||||
|
<version>4.6.0.RELEASE</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.jdbc</groupId> |
||||||
|
<artifactId>ojdbc8</artifactId> |
||||||
|
<version>21.5.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>com.oracle.database.nls</groupId> |
||||||
|
<artifactId>orai18n</artifactId> |
||||||
|
<version>19.15.0.0</version> |
||||||
|
<scope>compile</scope> |
||||||
|
</dependency> |
||||||
|
<dependency> |
||||||
|
<groupId>org.projectlombok</groupId> |
||||||
|
<artifactId>lombok</artifactId> |
||||||
|
<version>1.18.36</version> |
||||||
|
<scope>provided</scope> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
</project> |
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue