Commit 9bc9b2ac6bb717a4205bdf8ae0917cd48e5bab5b

Authored by YunaiV
1 parent dc11dfc2

多模块重构 5:infra 模块的修改~~~

Showing 146 changed files with 1203 additions and 1525 deletions

Too many changes.

To preserve performance only 100 of 146 files are displayed.

yudao-admin-server/pom.xml
... ... @@ -99,12 +99,6 @@
99 99 <artifactId>yudao-spring-boot-starter-redis</artifactId>
100 100 </dependency>
101 101  
102   - <!-- Config 配置中心相关 -->
103   - <dependency>
104   - <groupId>cn.iocoder.boot</groupId>
105   - <artifactId>yudao-spring-boot-starter-config</artifactId>
106   - </dependency>
107   -
108 102 <!-- Job 定时任务相关 -->
109 103 <dependency>
110 104 <groupId>cn.iocoder.boot</groupId>
... ... @@ -152,11 +146,6 @@
152 146 <artifactId>velocity-engine-core</artifactId>
153 147 </dependency>
154 148  
155   - <dependency>
156   - <groupId>cn.smallbun.screw</groupId>
157   - <artifactId>screw-core</artifactId> <!-- 实现数据库文档 -->
158   - </dependency>
159   -
160 149 <!-- 三方云服务相关 -->
161 150  
162 151 <dependency>
... ...
yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/AdminServerApplication.java
... ... @@ -5,7 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
5 5  
6 6 @SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${yudao.info.base-package} 和 ${yudao.core-service.base-package}
7 7 @SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}", "${yudao.core-service.base-package}",
8   - "${yudao.info.member-package}", "${yudao.info.system-package}"}) // TODO 芋艿:重构
  8 + "${yudao.info.base-package2}"}) // TODO 芋艿:重构
9 9 public class AdminServerApplication {
10 10  
11 11 public static void main(String[] args) {
... ...
yudao-admin-server/src/main/resources/application-dev.yaml
... ... @@ -100,7 +100,7 @@ apollo:
100 100 eagerLoad:
101 101 enabled: true # 设置 Apollo 在日志初始化前生效,可以实现日志的动态级别配置
102 102 jdbc: # 自定义的 JDBC 配置项,用于数据库的地址
103   - dao: cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.config.InfConfigCoreDAOImpl
  103 + dao: cn.iocoder.yudao.module.infra.dal.mysql.config.ConfigCoreDAOImpl
104 104 url: ${spring.datasource.dynamic.datasource.master.url}
105 105 username: ${spring.datasource.dynamic.datasource.master.username}
106 106 password: ${spring.datasource.dynamic.datasource.master.password}
... ...
yudao-admin-server/src/main/resources/application-local.yaml
... ... @@ -113,7 +113,7 @@ apollo:
113 113 eagerLoad:
114 114 enabled: true # 设置 Apollo 在日志初始化前生效,可以实现日志的动态级别配置
115 115 jdbc: # 自定义的 JDBC 配置项,用于数据库的地址
116   - dao: cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.config.InfConfigCoreDAOImpl
  116 + dao: cn.iocoder.yudao.module.infra.dal.mysql.config.ConfigCoreDAOImpl
117 117 url: ${spring.datasource.dynamic.datasource.master.url}
118 118 username: ${spring.datasource.dynamic.datasource.master.username}
119 119 password: ${spring.datasource.dynamic.datasource.master.password}
... ...
yudao-admin-server/src/main/resources/application.yaml
... ... @@ -48,17 +48,16 @@ yudao:
48 48 info:
49 49 version: 1.0.0
50 50 base-package: cn.iocoder.yudao.adminserver
51   - member-package: cn.iocoder.yudao.module.member
52   - system-package: cn.iocoder.yudao.module.system
  51 + base-package2: cn.iocoder.yudao.module
53 52 core-service:
54 53 base-package: cn.iocoder.yudao.coreservice
55 54 web:
56 55 admin-api:
57 56 prefix: /admin-api
58   - controller: cn.iocoder.yudao.module.system.controller.admin # TODO 芋艿:需要改造
  57 + controller: '**.controller.admin.**'
59 58 app-api:
60 59 prefix: /app-api
61   - controller: cn.iocoder.yudao.module.member.controller.app # TODO 芋艿:需要改造
  60 + controller: '**.controller.app.**'
62 61  
63 62 swagger:
64 63 title: 管理后台
... ...
yudao-admin-server/src/test/resources/sql/clean.sql
1 1 -- inf 开头的 DB
2   -DELETE FROM "inf_config";
3   -DELETE FROM "inf_file";
4   -DELETE FROM "inf_job";
5   -DELETE FROM "inf_job_log";
6   -DELETE FROM "inf_api_access_log";
7   -DELETE FROM "inf_api_error_log";
  2 +
8 3  
9 4 -- pay 开头的 DB
10 5 DELETE FROM pay_merchant;
... ...
yudao-admin-server/src/test/resources/sql/create_tables.sql
1 1 -- inf 开头的 DB
2 2  
3   -CREATE TABLE IF NOT EXISTS "inf_config" (
4   - "id" bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY,
5   - "group" varchar(50) NOT NULL,
6   - "type" tinyint NOT NULL,
7   - "name" varchar(100) NOT NULL DEFAULT '',
8   - "key" varchar(100) NOT NULL DEFAULT '',
9   - "value" varchar(500) NOT NULL DEFAULT '',
10   - "sensitive" bit NOT NULL,
11   - "remark" varchar(500) DEFAULT NULL,
12   - "creator" varchar(64) DEFAULT '',
13   - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
14   - "updater" varchar(64) DEFAULT '',
15   - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
16   - "deleted" bit NOT NULL DEFAULT FALSE,
17   - PRIMARY KEY ("id")
18   -) COMMENT '参数配置表';
19   -
20   -CREATE TABLE IF NOT EXISTS "inf_file" (
21   - "id" varchar(188) NOT NULL,
22   - "type" varchar(63) DEFAULT NULL,
23   - "content" blob NOT NULL,
24   - "creator" varchar(64) DEFAULT '',
25   - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
26   - "updater" varchar(64) DEFAULT '',
27   - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
28   - "deleted" bit NOT NULL DEFAULT FALSE,
29   - "tenant_id" bigint not null default '0',
30   - PRIMARY KEY ("id")
31   -) COMMENT '文件表';
32   -
33   -CREATE TABLE IF NOT EXISTS "inf_job" (
34   - "id" bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY COMMENT '任务编号',
35   - "name" varchar(32) NOT NULL COMMENT '任务名称',
36   - "status" tinyint(4) NOT NULL COMMENT '任务状态',
37   - "handler_name" varchar(64) NOT NULL COMMENT '处理器的名字',
38   - "handler_param" varchar(255) DEFAULT NULL COMMENT '处理器的参数',
39   - "cron_expression" varchar(32) NOT NULL COMMENT 'CRON 表达式',
40   - "retry_count" int(11) NOT NULL DEFAULT '0' COMMENT '重试次数',
41   - "retry_interval" int(11) NOT NULL DEFAULT '0' COMMENT '重试间隔',
42   - "monitor_timeout" int(11) NOT NULL DEFAULT '0' COMMENT '监控超时时间',
43   - "creator" varchar(64) DEFAULT '' COMMENT '创建者',
44   - "create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
45   - "updater" varchar(64) DEFAULT '' COMMENT '更新者',
46   - "update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
47   - "deleted" bit NOT NULL DEFAULT FALSE COMMENT '是否删除',
48   - PRIMARY KEY ("id")
49   -) COMMENT='定时任务表';
50   -
51   -CREATE TABLE IF NOT EXISTS "inf_job_log" (
52   - "id" bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY COMMENT '日志编号',
53   - "job_id" bigint(20) NOT NULL COMMENT '任务编号',
54   - "handler_name" varchar(64) NOT NULL COMMENT '处理器的名字',
55   - "handler_param" varchar(255) DEFAULT NULL COMMENT '处理器的参数',
56   - "execute_index" tinyint(4) NOT NULL DEFAULT '1' COMMENT '第几次执行',
57   - "begin_time" datetime NOT NULL COMMENT '开始执行时间',
58   - "end_time" datetime DEFAULT NULL COMMENT '结束执行时间',
59   - "duration" int(11) DEFAULT NULL COMMENT '执行时长',
60   - "status" tinyint(4) NOT NULL COMMENT '任务状态',
61   - "result" varchar(4000) DEFAULT '' COMMENT '结果数据',
62   - "creator" varchar(64) DEFAULT '' COMMENT '创建者',
63   - "create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
64   - "updater" varchar(64) DEFAULT '' COMMENT '更新者',
65   - "update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
66   - "deleted" bit(1) NOT NULL DEFAULT FALSE COMMENT '是否删除',
67   - PRIMARY KEY ("id")
68   -)COMMENT='定时任务日志表';
69 3  
70 4 CREATE TABLE IF NOT EXISTS "pay_merchant"
71 5 (
... ...
yudao-core-service/pom.xml
... ... @@ -40,10 +40,6 @@
40 40 <groupId>cn.iocoder.boot</groupId>
41 41 <artifactId>yudao-spring-boot-starter-biz-tenant</artifactId>
42 42 </dependency>
43   - <dependency>
44   - <groupId>cn.iocoder.boot</groupId>
45   - <artifactId>yudao-spring-boot-starter-biz-social</artifactId>
46   - </dependency>
47 43  
48 44 <!-- Web 相关 -->
49 45 <dependency>
... ...
yudao-core-service/src/test/java/cn/iocoder/yudao/coreservice/BaseDbAndRedisUnitTest.java deleted
1   -package cn.iocoder.yudao.coreservice;
2   -
3   -import cn.iocoder.yudao.coreservice.config.RedisTestConfiguration;
4   -import cn.iocoder.yudao.framework.datasource.config.YudaoDataSourceAutoConfiguration;
5   -import cn.iocoder.yudao.framework.mybatis.config.YudaoMybatisAutoConfiguration;
6   -import cn.iocoder.yudao.framework.redis.config.YudaoRedisAutoConfiguration;
7   -import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
8   -import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
9   -import org.redisson.spring.starter.RedissonAutoConfiguration;
10   -import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
11   -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
12   -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
13   -import org.springframework.boot.test.context.SpringBootTest;
14   -import org.springframework.context.annotation.Import;
15   -import org.springframework.test.context.ActiveProfiles;
16   -import org.springframework.test.context.jdbc.Sql;
17   -
18   -/**
19   - * 依赖内存 DB + Redis 的单元测试
20   - *
21   - * 相比 {@link BaseDbUnitTest} 来说,额外增加了内存 Redis
22   - *
23   - * @author 芋道源码
24   - */
25   -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbAndRedisUnitTest.Application.class)
26   -@ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件
27   -@Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) // 每个单元测试结束后,清理 DB
28   -public class BaseDbAndRedisUnitTest {
29   -
30   - @Import({
31   - // DB 配置类
32   - YudaoDataSourceAutoConfiguration.class, // 自己的 DB 配置类
33   - DataSourceAutoConfiguration.class, // Spring DB 自动配置类
34   - DataSourceTransactionManagerAutoConfiguration.class, // Spring 事务自动配置类
35   - DruidDataSourceAutoConfigure.class, // Druid 自动配置类
36   - // MyBatis 配置类
37   - YudaoMybatisAutoConfiguration.class, // 自己的 MyBatis 配置类
38   - MybatisPlusAutoConfiguration.class, // MyBatis 的自动配置类
39   - // Redis 配置类
40   - RedisTestConfiguration.class, // Redis 测试配置类,用于启动 RedisServer
41   - RedisAutoConfiguration.class, // Spring Redis 自动配置类
42   - YudaoRedisAutoConfiguration.class, // 自己的 Redis 配置类
43   - RedissonAutoConfiguration.class, // Redisson 自动高配置类
44   - })
45   - public static class Application {
46   - }
47   -
48   -}
yudao-core-service/src/test/java/cn/iocoder/yudao/coreservice/BaseDbUnitTest.java deleted
1   -package cn.iocoder.yudao.coreservice;
2   -
3   -import cn.iocoder.yudao.framework.datasource.config.YudaoDataSourceAutoConfiguration;
4   -import cn.iocoder.yudao.framework.mybatis.config.YudaoMybatisAutoConfiguration;
5   -import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
6   -import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
7   -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
8   -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
9   -import org.springframework.boot.test.context.SpringBootTest;
10   -import org.springframework.context.annotation.Import;
11   -import org.springframework.test.context.ActiveProfiles;
12   -import org.springframework.test.context.jdbc.Sql;
13   -
14   -/**
15   - * 依赖内存 DB 的单元测试
16   - *
17   - * 注意,Service 层同样适用。对于 Service 层的单元测试,我们针对自己模块的 Mapper 走的是 H2 内存数据库,针对别的模块的 Service 走的是 Mock 方法
18   - *
19   - * @author 芋道源码
20   - */
21   -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbUnitTest.Application.class)
22   -@ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件
23   -@Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) // 每个单元测试结束后,清理 DB
24   -public class BaseDbUnitTest {
25   -
26   - @Import({
27   - // DB 配置类
28   - YudaoDataSourceAutoConfiguration.class, // 自己的 DB 配置类
29   - DataSourceAutoConfiguration.class, // Spring DB 自动配置类
30   - DataSourceTransactionManagerAutoConfiguration.class, // Spring 事务自动配置类
31   - DruidDataSourceAutoConfigure.class, // Druid 自动配置类
32   - // MyBatis 配置类
33   - YudaoMybatisAutoConfiguration.class, // 自己的 MyBatis 配置类
34   - MybatisPlusAutoConfiguration.class, // MyBatis 的自动配置类
35   - })
36   - public static class Application {
37   - }
38   -
39   -}
yudao-core-service/src/test/java/cn/iocoder/yudao/coreservice/BaseRedisUnitTest.java deleted
1   -package cn.iocoder.yudao.coreservice;
2   -
3   -import cn.iocoder.yudao.coreservice.config.RedisTestConfiguration;
4   -import cn.iocoder.yudao.framework.redis.config.YudaoRedisAutoConfiguration;
5   -import org.redisson.spring.starter.RedissonAutoConfiguration;
6   -import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
7   -import org.springframework.boot.test.context.SpringBootTest;
8   -import org.springframework.context.annotation.Import;
9   -import org.springframework.test.context.ActiveProfiles;
10   -
11   -/**
12   - * 依赖内存 Redis 的单元测试
13   - *
14   - * 相比 {@link BaseDbUnitTest} 来说,从内存 DB 改成了内存 Redis
15   - *
16   - * @author 芋道源码
17   - */
18   -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseRedisUnitTest.Application.class)
19   -@ActiveProfiles("unit-test") // 设置使用 application-unit-test 配置文件
20   -public class BaseRedisUnitTest {
21   -
22   - @Import({
23   - // Redis 配置类
24   - RedisTestConfiguration.class, // Redis 测试配置类,用于启动 RedisServer
25   - RedisAutoConfiguration.class, // Spring Redis 自动配置类
26   - YudaoRedisAutoConfiguration.class, // 自己的 Redis 配置类
27   - RedissonAutoConfiguration.class, // Redisson 自动高配置类
28   - })
29   - public static class Application {
30   - }
31   -
32   -}
yudao-core-service/src/test/java/cn/iocoder/yudao/coreservice/config/RedisTestConfiguration.java deleted
1   -package cn.iocoder.yudao.coreservice.config;
2   -
3   -import com.github.fppt.jedismock.RedisServer;
4   -import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
5   -import org.springframework.boot.context.properties.EnableConfigurationProperties;
6   -import org.springframework.context.annotation.Bean;
7   -import org.springframework.context.annotation.Configuration;
8   -import org.springframework.context.annotation.Lazy;
9   -
10   -import java.io.IOException;
11   -
12   -@Configuration(proxyBeanMethods = false)
13   -@Lazy(false) // 禁止延迟加载
14   -@EnableConfigurationProperties(RedisProperties.class)
15   -public class RedisTestConfiguration {
16   -
17   - /**
18   - * 创建模拟的 Redis Server 服务器
19   - */
20   - @Bean
21   - public RedisServer redisServer(RedisProperties properties) throws IOException {
22   - RedisServer redisServer = new RedisServer(properties.getPort());
23   - // TODO 芋艿:一次执行多个单元测试时,貌似创建多个 spring 容器,导致不进行 stop。这样,就导致端口被占用,无法启动。。。
24   - try {
25   - redisServer.start();
26   - } catch (Exception ignore) {}
27   - return redisServer;
28   - }
29   -
30   -}
yudao-core-service/src/test/java/cn/iocoder/yudao/coreservice/modules/infra/service/logger/InfApiAccessLogCoreServiceTest.java deleted
1   -package cn.iocoder.yudao.coreservice.modules.infra.service.logger;
2   -
3   -import cn.hutool.core.util.RandomUtil;
4   -import cn.iocoder.yudao.coreservice.BaseDbUnitTest;
5   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiAccessLogDO;
6   -import cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.logger.InfApiAccessLogCoreMapper;
7   -import cn.iocoder.yudao.coreservice.modules.infra.service.logger.impl.InfApiAccessLogCoreServiceImpl;
8   -import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiAccessLogCreateReqDTO;
9   -import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
10   -import cn.iocoder.yudao.framework.test.core.util.RandomUtils;
11   -import org.junit.jupiter.api.Test;
12   -import org.springframework.context.annotation.Import;
13   -
14   -import javax.annotation.Resource;
15   -
16   -import static cn.iocoder.yudao.framework.test.core.util.AssertUtils.assertPojoEquals;
17   -import static org.junit.jupiter.api.Assertions.assertNotNull;
18   -
19   -/**
20   - * {@link InfApiAccessLogCoreServiceImpl} 单元测试
21   - */
22   -@Import(InfApiAccessLogCoreServiceImpl.class)
23   -public class InfApiAccessLogCoreServiceTest extends BaseDbUnitTest {
24   -
25   - @Resource
26   - private InfApiAccessLogCoreService apiAccessLogCoreService;
27   -
28   - @Resource
29   - private InfApiAccessLogCoreMapper apiAccessLogCoreMapper;
30   -
31   - @Test
32   - public void testCreateApiAccessLogAsync() {
33   - // 准备参数
34   - ApiAccessLogCreateReqDTO createDTO = RandomUtils.randomPojo(ApiAccessLogCreateReqDTO.class,
35   - dto -> dto.setUserType(RandomUtil.randomEle(UserTypeEnum.values()).getValue()));
36   -
37   - // 调用
38   - apiAccessLogCoreService.createApiAccessLogAsync(createDTO);
39   - // 断言
40   - InfApiAccessLogDO infApiAccessLogDO = apiAccessLogCoreMapper.selectOne(null);
41   - assertNotNull(infApiAccessLogDO);
42   - assertPojoEquals(createDTO, infApiAccessLogDO);
43   - }
44   -
45   -}
yudao-core-service/src/test/java/cn/iocoder/yudao/coreservice/modules/infra/service/logger/InfApiErrorLogCoreServiceTest.java deleted
1   -package cn.iocoder.yudao.coreservice.modules.infra.service.logger;
2   -
3   -import cn.hutool.core.util.RandomUtil;
4   -import cn.iocoder.yudao.coreservice.BaseDbUnitTest;
5   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiErrorLogDO;
6   -import cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.logger.InfApiErrorLogCoreMapper;
7   -import cn.iocoder.yudao.coreservice.modules.infra.service.logger.impl.InfApiErrorLogCoreServiceImpl;
8   -import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiErrorLogCreateReqDTO;
9   -import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
10   -import cn.iocoder.yudao.framework.test.core.util.RandomUtils;
11   -import org.junit.jupiter.api.Test;
12   -import org.springframework.context.annotation.Import;
13   -
14   -import javax.annotation.Resource;
15   -
16   -import static cn.iocoder.yudao.framework.test.core.util.AssertUtils.assertPojoEquals;
17   -import static org.junit.jupiter.api.Assertions.assertNotNull;
18   -
19   -/**
20   - * {@link InfApiErrorLogCoreServiceImpl} 单元测试
21   - */
22   -@Import(InfApiErrorLogCoreServiceImpl.class)
23   -public class InfApiErrorLogCoreServiceTest extends BaseDbUnitTest {
24   -
25   - @Resource
26   - private InfApiErrorLogCoreService apiErrorLogCoreService;
27   -
28   - @Resource
29   - private InfApiErrorLogCoreMapper infApiErrorLogCoreMapper;
30   -
31   - @Test
32   - public void testCreateApiErrorLogAsync() {
33   - // 准备参数
34   - ApiErrorLogCreateReqDTO createDTO = RandomUtils.randomPojo(ApiErrorLogCreateReqDTO.class,
35   - dto -> dto.setUserType(RandomUtil.randomEle(UserTypeEnum.values()).getValue()));
36   -
37   - // 调用
38   - apiErrorLogCoreService.createApiErrorLogAsync(createDTO);
39   - // 断言
40   - InfApiErrorLogDO infApiErrorLogDO = infApiErrorLogCoreMapper.selectOne(null);
41   - assertNotNull(infApiErrorLogDO);
42   - assertPojoEquals(createDTO, infApiErrorLogDO);
43   - }
44   -
45   -}
yudao-core-service/src/test/java/cn/iocoder/yudao/coreservice/modules/infra/service/package-info.java deleted
1   -package cn.iocoder.yudao.coreservice.modules.infra.service;
yudao-framework/yudao-spring-boot-starter-config/src/main/java/cn/iocoder/yudao/framework/apollo/internals/DBConfigRepository.java
... ... @@ -24,6 +24,7 @@ import java.util.List;
24 24 import java.util.Properties;
25 25 import java.util.concurrent.Executors;
26 26 import java.util.concurrent.ScheduledExecutorService;
  27 +import java.util.function.Predicate;
27 28  
28 29 @Slf4j
29 30 public class DBConfigRepository extends AbstractConfigRepository {
... ... @@ -135,7 +136,7 @@ public class DBConfigRepository extends AbstractConfigRepository {
135 136  
136 137 private Properties buildProperties(List<ConfigRespDTO> configs) {
137 138 Properties properties = propertiesFactory.getPropertiesInstance();
138   - configs.stream().filter(ConfigRespDTO::getDeleted) // 过滤掉被删除的配置
  139 + configs.stream().filter(config -> !config.getDeleted()) // 过滤掉被删除的配置
139 140 .forEach(config -> properties.put(config.getKey(), config.getValue()));
140 141 return properties;
141 142 }
... ...
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/config/YudaoMybatisAutoConfiguration.java
... ... @@ -16,7 +16,7 @@ import org.springframework.context.annotation.Configuration;
16 16 */
17 17 @Configuration
18 18 @MapperScan(value = {"${yudao.info.base-package}", "${yudao.core-service.base-package}",
19   - "${yudao.info.member-package}", "${yudao.info.system-package}"},
  19 + "${yudao.info.base-package2}"},
20 20 annotationClass = Mapper.class,
21 21 lazyInitialization = "${mybatis.lazy-initialization:false}") // Mapper 懒加载,目前仅用于单元测试
22 22 public class YudaoMybatisAutoConfiguration {
... ...
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/config/WebProperties.java
... ... @@ -36,11 +36,9 @@ public class WebProperties {
36 36 private String prefix;
37 37  
38 38 /**
39   - * Controller 所在包
  39 + * Controller 所在包的 Ant 路径规则
40 40 *
41 41 * 主要目的是,给该 Controller 设置指定的 {@link #prefix}
42   - *
43   - * 因为我们有多个 modules 包里会包含 Controller,所以只需要写到 cn.iocoder.yudao 这样的层级
44 42 */
45 43 @NotEmpty(message = "Controller 所在包不能为空")
46 44 private String controller;
... ...
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/config/YudaoWebAutoConfiguration.java
... ... @@ -13,6 +13,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
13 13 import org.springframework.boot.web.servlet.FilterRegistrationBean;
14 14 import org.springframework.context.annotation.Bean;
15 15 import org.springframework.context.annotation.Configuration;
  16 +import org.springframework.util.AntPathMatcher;
16 17 import org.springframework.util.PathMatcher;
17 18 import org.springframework.web.bind.annotation.RestController;
18 19 import org.springframework.web.cors.CorsConfiguration;
... ... @@ -49,8 +50,9 @@ public class YudaoWebAutoConfiguration implements WebMvcConfigurer {
49 50 * @param api API 配置
50 51 */
51 52 private void configurePathMatch(PathMatchConfigurer configurer, WebProperties.Api api) {
  53 + AntPathMatcher antPathMatcher = new AntPathMatcher(".");
52 54 configurer.addPathPrefix(api.getPrefix(), clazz -> clazz.isAnnotationPresent(RestController.class)
53   - && clazz.getPackage().getName().startsWith(api.getController())); // 仅仅匹配 controller 包
  55 + && antPathMatcher.match(api.getController(), clazz.getPackage().getName())); // 仅仅匹配 controller 包
54 56 }
55 57  
56 58 @Bean
... ...
yudao-module-infra/yudao-module-infra-api/src/main/java/cn/iocoder/yudao/module/infra/api/file/FileApi.java 0 → 100644
  1 +package cn.iocoder.yudao.module.infra.api.file;
  2 +
  3 +import cn.hutool.core.util.IdUtil;
  4 +
  5 +/**
  6 + * 文件 API 接口
  7 + *
  8 + * @author 芋道源码
  9 + */
  10 +public interface FileApi {
  11 +
  12 + /**
  13 + * 保存文件,并返回文件的访问路径
  14 + *
  15 + * @param content 文件内容
  16 + * @return 文件路径
  17 + */
  18 + default String createFile(byte[] content) {
  19 + return createFile(IdUtil.fastUUID(), content);
  20 + }
  21 +
  22 + /**
  23 + * 保存文件,并返回文件的访问路径
  24 + *
  25 + * @param path 文件路径
  26 + * @param content 文件内容
  27 + * @return 文件路径
  28 + */
  29 + String createFile(String path, byte[] content);
  30 +
  31 +}
... ...
yudao-module-infra/yudao-module-infra-api/src/main/java/cn/iocoder/yudao/module/infra/api/package-info.java 0 → 100644
  1 +/**
  2 + * infra API 包,定义暴露给其它模块的 API
  3 + */
  4 +package cn.iocoder.yudao.module.infra.api;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/DictTypeConstants.java renamed to yudao-module-infra/yudao-module-infra-api/src/main/java/cn/iocoder/yudao/module/infra/enums/DictTypeConstants.java
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/InfErrorCodeConstants.java renamed to yudao-module-infra/yudao-module-infra-api/src/main/java/cn/iocoder/yudao/module/infra/enums/ErrorCodeConstants.java
... ... @@ -7,7 +7,7 @@ import cn.iocoder.yudao.framework.common.exception.ErrorCode;
7 7 *
8 8 * infra 系统,使用 1-001-000-000 段
9 9 */
10   -public interface InfErrorCodeConstants {
  10 +public interface ErrorCodeConstants {
11 11  
12 12 // ========== 参数配置 1001000000 ==========
13 13 ErrorCode CONFIG_NOT_EXISTS = new ErrorCode(1001000001, "参数配置不存在");
... ... @@ -27,4 +27,8 @@ public interface InfErrorCodeConstants {
27 27 ErrorCode API_ERROR_LOG_NOT_FOUND = new ErrorCode(1001002000, "API 错误日志不存在");
28 28 ErrorCode API_ERROR_LOG_PROCESSED = new ErrorCode(1001002001, "API 错误日志已处理");
29 29  
  30 + // ========= 文件相关 1001003000=================
  31 + ErrorCode FILE_PATH_EXISTS = new ErrorCode(1001003000, "文件路径已存在");
  32 + ErrorCode FILE_NOT_EXISTS = new ErrorCode(1001003001, "文件不存在");
  33 +
30 34 }
... ...
yudao-module-infra/yudao-module-infra-impl/pom.xml
... ... @@ -23,19 +23,26 @@
23 23 <artifactId>yudao-module-member-api</artifactId>
24 24 <version>${revision}</version>
25 25 </dependency>
26   -
27 26 <dependency>
28 27 <groupId>cn.iocoder.boot</groupId>
29 28 <artifactId>yudao-module-system-api</artifactId>
30 29 <version>${revision}</version>
31 30 </dependency>
  31 + <dependency>
  32 + <groupId>cn.iocoder.boot</groupId>
  33 + <artifactId>yudao-module-infra-api</artifactId>
  34 + <version>${revision}</version>
  35 + </dependency>
32 36  
33 37 <!-- 业务组件 -->
34   -
35 38 <dependency>
36 39 <groupId>cn.iocoder.boot</groupId>
37 40 <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId>
38 41 </dependency>
  42 + <dependency>
  43 + <groupId>cn.iocoder.boot</groupId>
  44 + <artifactId>yudao-spring-boot-starter-biz-tenant</artifactId>
  45 + </dependency>
39 46  
40 47 <!-- Web 相关 -->
41 48 <dependency>
... ... @@ -54,6 +61,12 @@
54 61 <artifactId>yudao-spring-boot-starter-redis</artifactId>
55 62 </dependency>
56 63  
  64 + <!-- Config 配置中心相关 -->
  65 + <dependency>
  66 + <groupId>cn.iocoder.boot</groupId>
  67 + <artifactId>yudao-spring-boot-starter-config</artifactId>
  68 + </dependency>
  69 +
57 70 <!-- 消息队列相关 -->
58 71 <dependency>
59 72 <groupId>cn.iocoder.boot</groupId>
... ... @@ -73,6 +86,10 @@
73 86 <artifactId>yudao-spring-boot-starter-excel</artifactId>
74 87 </dependency>
75 88  
  89 + <dependency>
  90 + <groupId>cn.smallbun.screw</groupId>
  91 + <artifactId>screw-core</artifactId> <!-- 实现数据库文档 -->
  92 + </dependency>
76 93 </dependencies>
77 94  
78 95 <build>
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/api/file/FileApiImpl.java 0 → 100644
  1 +package cn.iocoder.yudao.module.infra.api.file;
  2 +
  3 +import cn.iocoder.yudao.module.infra.api.file.FileApi;
  4 +import cn.iocoder.yudao.module.infra.service.file.FileService;
  5 +import org.springframework.stereotype.Service;
  6 +import org.springframework.validation.annotation.Validated;
  7 +
  8 +import javax.annotation.Resource;
  9 +
  10 +/**
  11 + * 文件 API 实现类
  12 + *
  13 + * @author 芋道源码
  14 + */
  15 +@Service
  16 +@Validated
  17 +public class FileApiImpl implements FileApi {
  18 +
  19 + @Resource
  20 + private FileService fileService;
  21 +
  22 + @Override
  23 + public String createFile(String path, byte[] content) {
  24 + return fileService.createFile(path, content);
  25 + }
  26 +
  27 +}
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/api/package-info.java 0 → 100644
  1 +package cn.iocoder.yudao.module.infra.api;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/ConfigController.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.config;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.config.InfConfigDO;
4 3 import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil;
5 4 import cn.iocoder.yudao.framework.common.pojo.CommonResult;
6 5 import cn.iocoder.yudao.framework.common.pojo.PageResult;
7 6 import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
8 7 import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
9   -import cn.iocoder.yudao.adminserver.modules.infra.controller.config.vo.*;
10 8 import cn.iocoder.yudao.module.infra.controller.admin.config.vo.*;
11   -import cn.iocoder.yudao.module.infra.convert.config.InfConfigConvert;
12   -import cn.iocoder.yudao.module.infra.service.config.InfConfigService;
13   -import cn.iocoder.yudao.module.infra.controller.config.vo.*;
14   -import cn.iocoder.yudao.module.infra.enums.InfErrorCodeConstants;
  9 +import cn.iocoder.yudao.module.infra.convert.config.ConfigConvert;
  10 +import cn.iocoder.yudao.module.infra.dal.dataobject.config.ConfigDO;
  11 +import cn.iocoder.yudao.module.infra.service.config.ConfigService;
  12 +import cn.iocoder.yudao.module.infra.enums.ErrorCodeConstants;
15 13 import io.swagger.annotations.Api;
16 14 import io.swagger.annotations.ApiImplicitParam;
17 15 import io.swagger.annotations.ApiOperation;
... ... @@ -25,18 +23,17 @@ import javax.validation.Valid;
25 23 import java.io.IOException;
26 24 import java.util.List;
27 25  
28   -import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
29 26 import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
30 27 import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
31 28  
32   -@Api(tags = "参数配置")
  29 +@Api(tags = "管理后台 - 参数配置")
33 30 @RestController
34 31 @RequestMapping("/infra/config")
35 32 @Validated
36 33 public class ConfigController {
37 34  
38 35 @Resource
39   - private InfConfigService configService;
  36 + private ConfigService configService;
40 37  
41 38 @PostMapping("/create")
42 39 @ApiOperation("创建参数配置")
... ... @@ -67,19 +64,19 @@ public class ConfigController {
67 64 @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class)
68 65 @PreAuthorize("@ss.hasPermission('infra:config:query')")
69 66 public CommonResult<ConfigRespVO> getConfig(@RequestParam("id") Long id) {
70   - return success(InfConfigConvert.INSTANCE.convert(configService.getConfig(id)));
  67 + return success(ConfigConvert.INSTANCE.convert(configService.getConfig(id)));
71 68 }
72 69  
73 70 @GetMapping(value = "/get-value-by-key")
74 71 @ApiOperation(value = "根据参数键名查询参数值", notes = "敏感配置,不允许返回给前端")
75 72 @ApiImplicitParam(name = "key", value = "参数键", required = true, example = "yunai.biz.username", dataTypeClass = String.class)
76 73 public CommonResult<String> getConfigKey(@RequestParam("key") String key) {
77   - InfConfigDO config = configService.getConfigByKey(key);
  74 + ConfigDO config = configService.getConfigByKey(key);
78 75 if (config == null) {
79 76 return null;
80 77 }
81 78 if (config.getSensitive()) {
82   - throw ServiceExceptionUtil.exception(InfErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_SENSITIVE);
  79 + throw ServiceExceptionUtil.exception(ErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_SENSITIVE);
83 80 }
84 81 return success(config.getValue());
85 82 }
... ... @@ -88,8 +85,8 @@ public class ConfigController {
88 85 @ApiOperation("获取参数配置分页")
89 86 @PreAuthorize("@ss.hasPermission('infra:config:query')")
90 87 public CommonResult<PageResult<ConfigRespVO>> getConfigPage(@Valid ConfigPageReqVO reqVO) {
91   - PageResult<InfConfigDO> page = configService.getConfigPage(reqVO);
92   - return success(InfConfigConvert.INSTANCE.convertPage(page));
  88 + PageResult<ConfigDO> page = configService.getConfigPage(reqVO);
  89 + return success(ConfigConvert.INSTANCE.convertPage(page));
93 90 }
94 91  
95 92 @GetMapping("/export")
... ... @@ -98,9 +95,9 @@ public class ConfigController {
98 95 @OperateLog(type = EXPORT)
99 96 public void exportSysConfig(@Valid ConfigExportReqVO reqVO,
100 97 HttpServletResponse response) throws IOException {
101   - List<InfConfigDO> list = configService.getConfigList(reqVO);
  98 + List<ConfigDO> list = configService.getConfigList(reqVO);
102 99 // 拼接数据
103   - List<ConfigExcelVO> datas = InfConfigConvert.INSTANCE.convertList(list);
  100 + List<ConfigExcelVO> datas = ConfigConvert.INSTANCE.convertList(list);
104 101 // 输出
105 102 ExcelUtils.write(response, "参数配置.xls", "数据", ConfigExcelVO.class, datas);
106 103 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigExportReqVO.java
... ... @@ -9,7 +9,7 @@ import java.util.Date;
9 9  
10 10 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
11 11  
12   -@ApiModel("参数配置导出 Request VO")
  12 +@ApiModel("管理后台 - 参数配置导出 Request VO")
13 13 @Data
14 14 public class ConfigExportReqVO {
15 15  
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigPageReqVO.java
... ... @@ -12,7 +12,7 @@ import java.util.Date;
12 12  
13 13 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
14 14  
15   -@ApiModel("参数配置分页 Request VO")
  15 +@ApiModel("管理后台 - 参数配置分页 Request VO")
16 16 @Data
17 17 @EqualsAndHashCode(callSuper = true)
18 18 @ToString(callSuper = true)
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigRespVO.java
... ... @@ -9,7 +9,7 @@ import javax.validation.constraints.NotBlank;
9 9 import javax.validation.constraints.Size;
10 10 import java.util.Date;
11 11  
12   -@ApiModel("参数配置信息 Response VO")
  12 +@ApiModel("管理后台 - 参数配置信息 Response VO")
13 13 @Data
14 14 @EqualsAndHashCode(callSuper = true)
15 15 public class ConfigRespVO extends ConfigBaseVO {
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/vo/ConfigUpdateReqVO.java
... ... @@ -8,7 +8,7 @@ import lombok.ToString;
8 8  
9 9 import javax.validation.constraints.NotNull;
10 10  
11   -@ApiModel("参数配置创建 Request VO")
  11 +@ApiModel("管理后台 - 参数配置创建 Request VO")
12 12 @Data
13 13 @EqualsAndHashCode(callSuper = true)
14 14 @ToString(callSuper = true)
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/doc/InfDbDocController.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/doc/DbDocController.java
... ... @@ -16,7 +16,6 @@ import com.zaxxer.hikari.HikariDataSource;
16 16 import io.swagger.annotations.Api;
17 17 import io.swagger.annotations.ApiImplicitParam;
18 18 import io.swagger.annotations.ApiOperation;
19   -import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
20 19 import org.springframework.web.bind.annotation.GetMapping;
21 20 import org.springframework.web.bind.annotation.RequestMapping;
22 21 import org.springframework.web.bind.annotation.RequestParam;
... ... @@ -28,10 +27,10 @@ import java.io.File;
28 27 import java.io.IOException;
29 28 import java.util.Collections;
30 29  
31   -@Api(tags = "数据库文档")
  30 +@Api(tags = "管理后台 - 数据库文档")
32 31 @RestController
33 32 @RequestMapping("/infra/db-doc")
34   -public class InfDbDocController {
  33 +public class DbDocController {
35 34  
36 35 @Resource
37 36 private DynamicDataSourceProperties dynamicDataSourceProperties;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/InfFileController.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/FileController.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.file;
2 2  
3 3 import cn.hutool.core.io.IoUtil;
4   -import cn.iocoder.yudao.module.infra.controller.admin.file.vo.InfFilePageReqVO;
5   -import cn.iocoder.yudao.module.infra.service.file.InfFileService;
6   -import cn.iocoder.yudao.coreservice.modules.infra.controller.file.vo.InfFileRespVO;
7   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
8   -import cn.iocoder.yudao.coreservice.modules.infra.service.file.InfFileCoreService;
9 4 import cn.iocoder.yudao.framework.common.pojo.CommonResult;
10 5 import cn.iocoder.yudao.framework.common.pojo.PageResult;
11   -import cn.iocoder.yudao.module.infra.convert.file.InfFileConvert;
12 6 import cn.iocoder.yudao.framework.common.util.servlet.ServletUtils;
13 7 import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder;
  8 +import cn.iocoder.yudao.module.infra.controller.admin.file.vo.FilePageReqVO;
  9 +import cn.iocoder.yudao.module.infra.controller.admin.file.vo.FileRespVO;
  10 +import cn.iocoder.yudao.module.infra.convert.file.FileConvert;
  11 +import cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO;
  12 +import cn.iocoder.yudao.module.infra.service.file.FileService;
14 13 import io.swagger.annotations.Api;
15 14 import io.swagger.annotations.ApiImplicitParam;
16 15 import io.swagger.annotations.ApiImplicitParams;
... ... @@ -29,17 +28,15 @@ import java.io.IOException;
29 28  
30 29 import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
31 30  
32   -@Api(tags = "文件存储")
  31 +@Api(tags = "管理后台 - 文件存储")
33 32 @RestController
34 33 @RequestMapping("/infra/file")
35 34 @Validated
36 35 @Slf4j
37   -public class InfFileController {
  36 +public class FileController {
38 37  
39 38 @Resource
40   - private InfFileService fileService;
41   - @Resource
42   - private InfFileCoreService fileCoreService;
  39 + private FileService fileService;
43 40  
44 41 @PostMapping("/upload")
45 42 @ApiOperation("上传文件")
... ... @@ -49,7 +46,7 @@ public class InfFileController {
49 46 })
50 47 public CommonResult<String> uploadFile(@RequestParam("file") MultipartFile file,
51 48 @RequestParam("path") String path) throws IOException {
52   - return success(fileCoreService.createFile(path, IoUtil.readBytes(file.getInputStream())));
  49 + return success(fileService.createFile(path, IoUtil.readBytes(file.getInputStream())));
53 50 }
54 51  
55 52 @DeleteMapping("/delete")
... ... @@ -57,7 +54,7 @@ public class InfFileController {
57 54 @ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = String.class)
58 55 @PreAuthorize("@ss.hasPermission('infra:file:delete')")
59 56 public CommonResult<Boolean> deleteFile(@RequestParam("id") String id) {
60   - fileCoreService.deleteFile(id);
  57 + fileService.deleteFile(id);
61 58 return success(true);
62 59 }
63 60  
... ... @@ -66,7 +63,7 @@ public class InfFileController {
66 63 @ApiImplicitParam(name = "path", value = "文件附件", required = true, dataTypeClass = MultipartFile.class)
67 64 public void getFile(HttpServletResponse response, @PathVariable("path") String path) throws IOException {
68 65 TenantContextHolder.setNullTenantId();
69   - InfFileDO file = fileCoreService.getFile(path);
  66 + FileDO file = fileService.getFile(path);
70 67 if (file == null) {
71 68 log.warn("[getFile][path({}) 文件不存在]", path);
72 69 response.setStatus(HttpStatus.NOT_FOUND.value());
... ... @@ -78,9 +75,9 @@ public class InfFileController {
78 75 @GetMapping("/page")
79 76 @ApiOperation("获得文件分页")
80 77 @PreAuthorize("@ss.hasPermission('infra:file:query')")
81   - public CommonResult<PageResult<InfFileRespVO>> getFilePage(@Valid InfFilePageReqVO pageVO) {
82   - PageResult<InfFileDO> pageResult = fileService.getFilePage(pageVO);
83   - return success(InfFileConvert.INSTANCE.convertPage(pageResult));
  78 + public CommonResult<PageResult<FileRespVO>> getFilePage(@Valid FilePageReqVO pageVO) {
  79 + PageResult<FileDO> pageResult = fileService.getFilePage(pageVO);
  80 + return success(FileConvert.INSTANCE.convertPage(pageResult));
84 81 }
85 82  
86 83 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/InfFilePageReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/FilePageReqVO.java
... ... @@ -12,11 +12,11 @@ import java.util.Date;
12 12  
13 13 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
14 14  
15   -@ApiModel("文件分页 Request VO")
  15 +@ApiModel("管理后台 - 文件分页 Request VO")
16 16 @Data
17 17 @EqualsAndHashCode(callSuper = true)
18 18 @ToString(callSuper = true)
19   -public class InfFilePageReqVO extends PageParam {
  19 +public class FilePageReqVO extends PageParam {
20 20  
21 21 @ApiModelProperty(value = "文件路径", example = "yudao", notes = "模糊匹配")
22 22 private String id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/vo/InfFileRespVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/vo/FileRespVO.java
1   -package cn.iocoder.yudao.module.infra.vo;
  1 +package cn.iocoder.yudao.module.infra.controller.admin.file.vo;
2 2  
3 3 import io.swagger.annotations.ApiModel;
4 4 import io.swagger.annotations.ApiModelProperty;
... ... @@ -6,9 +6,9 @@ import lombok.Data;
6 6  
7 7 import java.util.Date;
8 8  
9   -@ApiModel(value = "文件 Response VO", description = "不返回 content 字段,太大")
  9 +@ApiModel(value = "管理后台 - 文件 Response VO", description = "不返回 content 字段,太大")
10 10 @Data
11   -public class InfFileRespVO {
  11 +public class FileRespVO {
12 12  
13 13 @ApiModelProperty(value = "文件路径", required = true, example = "yudao.jpg")
14 14 private String id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/InfJobController.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/JobController.java
... ... @@ -5,12 +5,10 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult;
5 5 import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
6 6 import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
7 7 import cn.iocoder.yudao.framework.quartz.core.util.CronUtils;
8   -import cn.iocoder.yudao.adminserver.modules.infra.controller.job.vo.job.*;
9 8 import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.*;
10   -import cn.iocoder.yudao.module.infra.convert.job.InfJobConvert;
11   -import cn.iocoder.yudao.module.infra.dal.dataobject.job.InfJobDO;
12   -import cn.iocoder.yudao.module.infra.service.job.InfJobService;
13   -import cn.iocoder.yudao.module.infra.controller.job.vo.job.*;
  9 +import cn.iocoder.yudao.module.infra.convert.job.JobConvert;
  10 +import cn.iocoder.yudao.module.infra.dal.dataobject.job.JobDO;
  11 +import cn.iocoder.yudao.module.infra.service.job.JobService;
14 12 import io.swagger.annotations.Api;
15 13 import io.swagger.annotations.ApiImplicitParam;
16 14 import io.swagger.annotations.ApiImplicitParams;
... ... @@ -32,19 +30,19 @@ import java.util.List;
32 30 import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
33 31 import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
34 32  
35   -@Api(tags = "定时任务")
  33 +@Api(tags = "管理后台 - 定时任务")
36 34 @RestController
37 35 @RequestMapping("/infra/job")
38 36 @Validated
39   -public class InfJobController {
  37 +public class JobController {
40 38  
41 39 @Resource
42   - private InfJobService jobService;
  40 + private JobService jobService;
43 41  
44 42 @PostMapping("/create")
45 43 @ApiOperation("创建定时任务")
46 44 @PreAuthorize("@ss.hasPermission('infra:job:create')")
47   - public CommonResult<Long> createJob(@Valid @RequestBody InfJobCreateReqVO createReqVO)
  45 + public CommonResult<Long> createJob(@Valid @RequestBody JobCreateReqVO createReqVO)
48 46 throws SchedulerException {
49 47 return success(jobService.createJob(createReqVO));
50 48 }
... ... @@ -52,7 +50,7 @@ public class InfJobController {
52 50 @PutMapping("/update")
53 51 @ApiOperation("更新定时任务")
54 52 @PreAuthorize("@ss.hasPermission('infra:job:update')")
55   - public CommonResult<Boolean> updateJob(@Valid @RequestBody InfJobUpdateReqVO updateReqVO)
  53 + public CommonResult<Boolean> updateJob(@Valid @RequestBody JobUpdateReqVO updateReqVO)
56 54 throws SchedulerException {
57 55 jobService.updateJob(updateReqVO);
58 56 return success(true);
... ... @@ -94,38 +92,38 @@ public class InfJobController {
94 92 @ApiOperation("获得定时任务")
95 93 @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class)
96 94 @PreAuthorize("@ss.hasPermission('infra:job:query')")
97   - public CommonResult<InfJobRespVO> getJob(@RequestParam("id") Long id) {
98   - InfJobDO job = jobService.getJob(id);
99   - return success(InfJobConvert.INSTANCE.convert(job));
  95 + public CommonResult<JobRespVO> getJob(@RequestParam("id") Long id) {
  96 + JobDO job = jobService.getJob(id);
  97 + return success(JobConvert.INSTANCE.convert(job));
100 98 }
101 99  
102 100 @GetMapping("/list")
103 101 @ApiOperation("获得定时任务列表")
104 102 @ApiImplicitParam(name = "ids", value = "编号列表", required = true, dataTypeClass = List.class)
105 103 @PreAuthorize("@ss.hasPermission('infra:job:query')")
106   - public CommonResult<List<InfJobRespVO>> getJobList(@RequestParam("ids") Collection<Long> ids) {
107   - List<InfJobDO> list = jobService.getJobList(ids);
108   - return success(InfJobConvert.INSTANCE.convertList(list));
  104 + public CommonResult<List<JobRespVO>> getJobList(@RequestParam("ids") Collection<Long> ids) {
  105 + List<JobDO> list = jobService.getJobList(ids);
  106 + return success(JobConvert.INSTANCE.convertList(list));
109 107 }
110 108  
111 109 @GetMapping("/page")
112 110 @ApiOperation("获得定时任务分页")
113 111 @PreAuthorize("@ss.hasPermission('infra:job:query')")
114   - public CommonResult<PageResult<InfJobRespVO>> getJobPage(@Valid InfJobPageReqVO pageVO) {
115   - PageResult<InfJobDO> pageResult = jobService.getJobPage(pageVO);
116   - return success(InfJobConvert.INSTANCE.convertPage(pageResult));
  112 + public CommonResult<PageResult<JobRespVO>> getJobPage(@Valid JobPageReqVO pageVO) {
  113 + PageResult<JobDO> pageResult = jobService.getJobPage(pageVO);
  114 + return success(JobConvert.INSTANCE.convertPage(pageResult));
117 115 }
118 116  
119 117 @GetMapping("/export-excel")
120 118 @ApiOperation("导出定时任务 Excel")
121 119 @PreAuthorize("@ss.hasPermission('infra:job:export')")
122 120 @OperateLog(type = EXPORT)
123   - public void exportJobExcel(@Valid InfJobExportReqVO exportReqVO,
  121 + public void exportJobExcel(@Valid JobExportReqVO exportReqVO,
124 122 HttpServletResponse response) throws IOException {
125   - List<InfJobDO> list = jobService.getJobList(exportReqVO);
  123 + List<JobDO> list = jobService.getJobList(exportReqVO);
126 124 // 导出 Excel
127   - List<InfJobExcelVO> datas = InfJobConvert.INSTANCE.convertList02(list);
128   - ExcelUtils.write(response, "定时任务.xls", "数据", InfJobExcelVO.class, datas);
  125 + List<JobExcelVO> datas = JobConvert.INSTANCE.convertList02(list);
  126 + ExcelUtils.write(response, "定时任务.xls", "数据", JobExcelVO.class, datas);
129 127 }
130 128  
131 129 @GetMapping("/get_next_times")
... ... @@ -137,7 +135,7 @@ public class InfJobController {
137 135 @PreAuthorize("@ss.hasPermission('infra:job:query')")
138 136 public CommonResult<List<Date>> getJobNextTimes(@RequestParam("id") Long id,
139 137 @RequestParam(value = "count", required = false, defaultValue = "5") Integer count) {
140   - InfJobDO job = jobService.getJob(id);
  138 + JobDO job = jobService.getJob(id);
141 139 if (job == null) {
142 140 return success(Collections.emptyList());
143 141 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/InfJobLogController.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/JobLogController.java
... ... @@ -4,13 +4,13 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
4 4 import cn.iocoder.yudao.framework.common.pojo.PageResult;
5 5 import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
6 6 import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
7   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogExcelVO;
8   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogExportReqVO;
9   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogPageReqVO;
10   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogRespVO;
11   -import cn.iocoder.yudao.module.infra.convert.job.InfJobLogConvert;
12   -import cn.iocoder.yudao.module.infra.dal.dataobject.job.InfJobLogDO;
13   -import cn.iocoder.yudao.module.infra.service.job.InfJobLogService;
  7 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogExcelVO;
  8 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogExportReqVO;
  9 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogPageReqVO;
  10 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogRespVO;
  11 +import cn.iocoder.yudao.module.infra.convert.job.JobLogConvert;
  12 +import cn.iocoder.yudao.module.infra.dal.dataobject.job.JobLogDO;
  13 +import cn.iocoder.yudao.module.infra.service.job.JobLogService;
14 14 import io.swagger.annotations.Api;
15 15 import io.swagger.annotations.ApiImplicitParam;
16 16 import io.swagger.annotations.ApiOperation;
... ... @@ -31,51 +31,51 @@ import java.util.List;
31 31 import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
32 32 import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
33 33  
34   -@Api(tags = "定时任务日志")
  34 +@Api(tags = "管理后台 - 定时任务日志")
35 35 @RestController
36 36 @RequestMapping("/infra/job-log")
37 37 @Validated
38   -public class InfJobLogController {
  38 +public class JobLogController {
39 39  
40 40 @Resource
41   - private InfJobLogService jobLogService;
  41 + private JobLogService jobLogService;
42 42  
43 43 @GetMapping("/get")
44 44 @ApiOperation("获得定时任务日志")
45 45 @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class)
46 46 @PreAuthorize("@ss.hasPermission('infra:job:query')")
47   - public CommonResult<InfJobLogRespVO> getJobLog(@RequestParam("id") Long id) {
48   - InfJobLogDO jobLog = jobLogService.getJobLog(id);
49   - return success(InfJobLogConvert.INSTANCE.convert(jobLog));
  47 + public CommonResult<JobLogRespVO> getJobLog(@RequestParam("id") Long id) {
  48 + JobLogDO jobLog = jobLogService.getJobLog(id);
  49 + return success(JobLogConvert.INSTANCE.convert(jobLog));
50 50 }
51 51  
52 52 @GetMapping("/list")
53 53 @ApiOperation("获得定时任务日志列表")
54 54 @ApiImplicitParam(name = "ids", value = "编号列表", required = true, example = "1024,2048", dataTypeClass = List.class)
55 55 @PreAuthorize("@ss.hasPermission('infra:job:query')")
56   - public CommonResult<List<InfJobLogRespVO>> getJobLogList(@RequestParam("ids") Collection<Long> ids) {
57   - List<InfJobLogDO> list = jobLogService.getJobLogList(ids);
58   - return success(InfJobLogConvert.INSTANCE.convertList(list));
  56 + public CommonResult<List<JobLogRespVO>> getJobLogList(@RequestParam("ids") Collection<Long> ids) {
  57 + List<JobLogDO> list = jobLogService.getJobLogList(ids);
  58 + return success(JobLogConvert.INSTANCE.convertList(list));
59 59 }
60 60  
61 61 @GetMapping("/page")
62 62 @ApiOperation("获得定时任务日志分页")
63 63 @PreAuthorize("@ss.hasPermission('infra:job:query')")
64   - public CommonResult<PageResult<InfJobLogRespVO>> getJobLogPage(@Valid InfJobLogPageReqVO pageVO) {
65   - PageResult<InfJobLogDO> pageResult = jobLogService.getJobLogPage(pageVO);
66   - return success(InfJobLogConvert.INSTANCE.convertPage(pageResult));
  64 + public CommonResult<PageResult<JobLogRespVO>> getJobLogPage(@Valid JobLogPageReqVO pageVO) {
  65 + PageResult<JobLogDO> pageResult = jobLogService.getJobLogPage(pageVO);
  66 + return success(JobLogConvert.INSTANCE.convertPage(pageResult));
67 67 }
68 68  
69 69 @GetMapping("/export-excel")
70 70 @ApiOperation("导出定时任务日志 Excel")
71 71 @PreAuthorize("@ss.hasPermission('infra:job:export')")
72 72 @OperateLog(type = EXPORT)
73   - public void exportJobLogExcel(@Valid InfJobLogExportReqVO exportReqVO,
  73 + public void exportJobLogExcel(@Valid JobLogExportReqVO exportReqVO,
74 74 HttpServletResponse response) throws IOException {
75   - List<InfJobLogDO> list = jobLogService.getJobLogList(exportReqVO);
  75 + List<JobLogDO> list = jobLogService.getJobLogList(exportReqVO);
76 76 // 导出 Excel
77   - List<InfJobLogExcelVO> datas = InfJobLogConvert.INSTANCE.convertList02(list);
78   - ExcelUtils.write(response, "任务日志.xls", "数据", InfJobLogExcelVO.class, datas);
  77 + List<JobLogExcelVO> datas = JobLogConvert.INSTANCE.convertList02(list);
  78 + ExcelUtils.write(response, "任务日志.xls", "数据", JobLogExcelVO.class, datas);
79 79 }
80 80  
81 81 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/InfJobBaseVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobBaseVO.java
... ... @@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull;
10 10 * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
11 11 */
12 12 @Data
13   -public class InfJobBaseVO {
  13 +public class JobBaseVO {
14 14  
15 15 @ApiModelProperty(value = "任务名称", required = true, example = "测试任务")
16 16 @NotNull(message = "任务名称不能为空")
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/InfJobCreateReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobCreateReqVO.java
... ... @@ -8,11 +8,11 @@ import lombok.ToString;
8 8  
9 9 import javax.validation.constraints.NotNull;
10 10  
11   -@ApiModel("定时任务创建 Request VO")
  11 +@ApiModel("管理后台 - 定时任务创建 Request VO")
12 12 @Data
13 13 @EqualsAndHashCode(callSuper = true)
14 14 @ToString(callSuper = true)
15   -public class InfJobCreateReqVO extends InfJobBaseVO {
  15 +public class JobCreateReqVO extends JobBaseVO {
16 16  
17 17 @ApiModelProperty(value = "处理器的名字", required = true, example = "sysUserSessionTimeoutJob")
18 18 @NotNull(message = "处理器的名字不能为空")
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/InfJobExcelVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobExcelVO.java
... ... @@ -14,7 +14,7 @@ import java.util.Date;
14 14 * @author 芋道源码
15 15 */
16 16 @Data
17   -public class InfJobExcelVO {
  17 +public class JobExcelVO {
18 18  
19 19 @ExcelProperty("任务编号")
20 20 private Long id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/InfJobExportReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobExportReqVO.java
... ... @@ -4,17 +4,17 @@ import io.swagger.annotations.ApiModel;
4 4 import io.swagger.annotations.ApiModelProperty;
5 5 import lombok.Data;
6 6  
7   -@ApiModel(value = "定时任务 Excel 导出 Request VO", description = "参数和 InfJobPageReqVO 是一致的")
  7 +@ApiModel(value = "管理后台 - 定时任务 Excel 导出 Request VO", description = "参数和 InfJobPageReqVO 是一致的")
8 8 @Data
9   -public class InfJobExportReqVO {
  9 +public class JobExportReqVO {
10 10  
11 11 @ApiModelProperty(value = "任务名称", example = "测试任务", notes = "模糊匹配")
12 12 private String name;
13 13  
14   - @ApiModelProperty(value = "任务状态", example = "1", notes = "参见 InfJobStatusEnum 枚举")
  14 + @ApiModelProperty(value = "任务状态", example = "1", notes = "参见 JobStatusEnum 枚举")
15 15 private Integer status;
16 16  
17   - @ApiModelProperty(value = "处理器的名字", example = "sysUserSessionTimeoutJob", notes = "模糊匹配")
  17 + @ApiModelProperty(value = "处理器的名字", example = "UserSessionTimeoutJob", notes = "模糊匹配")
18 18 private String handlerName;
19 19  
20 20 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/InfJobPageReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobPageReqVO.java
... ... @@ -7,11 +7,11 @@ import lombok.Data;
7 7 import lombok.EqualsAndHashCode;
8 8 import lombok.ToString;
9 9  
10   -@ApiModel("定时任务分页 Request VO")
  10 +@ApiModel("管理后台 - 定时任务分页 Request VO")
11 11 @Data
12 12 @EqualsAndHashCode(callSuper = true)
13 13 @ToString(callSuper = true)
14   -public class InfJobPageReqVO extends PageParam {
  14 +public class JobPageReqVO extends PageParam {
15 15  
16 16 @ApiModelProperty(value = "任务名称", example = "测试任务", notes = "模糊匹配")
17 17 private String name;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/InfJobRespVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobRespVO.java
... ... @@ -9,11 +9,11 @@ import lombok.ToString;
9 9 import javax.validation.constraints.NotNull;
10 10 import java.util.Date;
11 11  
12   -@ApiModel("定时任务 Response VO")
  12 +@ApiModel("管理后台 - 定时任务 Response VO")
13 13 @Data
14 14 @EqualsAndHashCode(callSuper = true)
15 15 @ToString(callSuper = true)
16   -public class InfJobRespVO extends InfJobBaseVO {
  16 +public class JobRespVO extends JobBaseVO {
17 17  
18 18 @ApiModelProperty(value = "任务编号", required = true, example = "1024")
19 19 private Long id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/InfJobUpdateReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/job/JobUpdateReqVO.java
... ... @@ -8,11 +8,11 @@ import lombok.ToString;
8 8  
9 9 import javax.validation.constraints.NotNull;
10 10  
11   -@ApiModel("定时任务更新 Request VO")
  11 +@ApiModel("管理后台 - 定时任务更新 Request VO")
12 12 @Data
13 13 @EqualsAndHashCode(callSuper = true)
14 14 @ToString(callSuper = true)
15   -public class InfJobUpdateReqVO extends InfJobBaseVO {
  15 +public class JobUpdateReqVO extends JobBaseVO {
16 16  
17 17 @ApiModelProperty(value = "任务编号", required = true, example = "1024")
18 18 @NotNull(message = "任务编号不能为空")
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/InfJobLogBaseVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/JobLogBaseVO.java
... ... @@ -14,7 +14,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
14 14 * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
15 15 */
16 16 @Data
17   -public class InfJobLogBaseVO {
  17 +public class JobLogBaseVO {
18 18  
19 19 @ApiModelProperty(value = "任务编号", required = true, example = "1024")
20 20 @NotNull(message = "任务编号不能为空")
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/InfJobLogExcelVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/JobLogExcelVO.java
... ... @@ -14,7 +14,7 @@ import java.util.Date;
14 14 * @author 芋艿
15 15 */
16 16 @Data
17   -public class InfJobLogExcelVO {
  17 +public class JobLogExcelVO {
18 18  
19 19 @ExcelProperty("日志编号")
20 20 private Long id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/InfJobLogExportReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/JobLogExportReqVO.java
... ... @@ -9,9 +9,9 @@ import java.util.Date;
9 9  
10 10 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
11 11  
12   -@ApiModel(value = "定时任务 Excel 导出 Request VO", description = "参数和 InfJobLogPageReqVO 是一致的")
  12 +@ApiModel(value = "管理后台 - 定时任务 Excel 导出 Request VO", description = "参数和 InfJobLogPageReqVO 是一致的")
13 13 @Data
14   -public class InfJobLogExportReqVO {
  14 +public class JobLogExportReqVO {
15 15  
16 16 @ApiModelProperty(value = "任务编号", example = "10")
17 17 private Long jobId;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/InfJobLogPageReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/JobLogPageReqVO.java
... ... @@ -12,11 +12,11 @@ import java.util.Date;
12 12  
13 13 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
14 14  
15   -@ApiModel("定时任务日志分页 Request VO")
  15 +@ApiModel("管理后台 - 定时任务日志分页 Request VO")
16 16 @Data
17 17 @EqualsAndHashCode(callSuper = true)
18 18 @ToString(callSuper = true)
19   -public class InfJobLogPageReqVO extends PageParam {
  19 +public class JobLogPageReqVO extends PageParam {
20 20  
21 21 @ApiModelProperty(value = "任务编号", example = "10")
22 22 private Long jobId;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/InfJobLogRespVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/job/vo/log/JobLogRespVO.java
... ... @@ -8,11 +8,11 @@ import lombok.ToString;
8 8  
9 9 import java.util.Date;
10 10  
11   -@ApiModel("定时任务日志 Response VO")
  11 +@ApiModel("管理后台 - 定时任务日志 Response VO")
12 12 @Data
13 13 @EqualsAndHashCode(callSuper = true)
14 14 @ToString(callSuper = true)
15   -public class InfJobLogRespVO extends InfJobLogBaseVO {
  15 +public class JobLogRespVO extends JobLogBaseVO {
16 16  
17 17 @ApiModelProperty(value = "日志编号", required = true, example = "1024")
18 18 private Long id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/InfApiAccessLogController.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/ApiAccessLogController.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.logger;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiAccessLogDO;
4 3 import cn.iocoder.yudao.framework.common.pojo.CommonResult;
5 4 import cn.iocoder.yudao.framework.common.pojo.PageResult;
6 5 import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
7 6 import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
8   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogExcelVO;
9   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogExportReqVO;
10   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogPageReqVO;
11   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogRespVO;
12   -import cn.iocoder.yudao.module.infra.convert.logger.InfApiAccessLogConvert;
13   -import cn.iocoder.yudao.module.infra.service.logger.InfApiAccessLogService;
  7 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogExcelVO;
  8 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogExportReqVO;
  9 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogPageReqVO;
  10 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogRespVO;
  11 +import cn.iocoder.yudao.module.infra.convert.logger.ApiAccessLogConvert;
  12 +import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiAccessLogDO;
  13 +import cn.iocoder.yudao.module.infra.service.logger.ApiAccessLogService;
14 14 import io.swagger.annotations.Api;
15 15 import io.swagger.annotations.ApiOperation;
16 16 import org.springframework.security.access.prepost.PreAuthorize;
... ... @@ -28,33 +28,33 @@ import java.util.List;
28 28 import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
29 29 import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
30 30  
31   -@Api(tags = "API 访问日志")
  31 +@Api(tags = "管理后台 - API 访问日志")
32 32 @RestController
33 33 @RequestMapping("/infra/api-access-log")
34 34 @Validated
35   -public class InfApiAccessLogController {
  35 +public class ApiAccessLogController {
36 36  
37 37 @Resource
38   - private InfApiAccessLogService apiAccessLogService;
  38 + private ApiAccessLogService apiAccessLogService;
39 39  
40 40 @GetMapping("/page")
41 41 @ApiOperation("获得API 访问日志分页")
42 42 @PreAuthorize("@ss.hasPermission('infra:api-access-log:query')")
43   - public CommonResult<PageResult<InfApiAccessLogRespVO>> getApiAccessLogPage(@Valid InfApiAccessLogPageReqVO pageVO) {
44   - PageResult<InfApiAccessLogDO> pageResult = apiAccessLogService.getApiAccessLogPage(pageVO);
45   - return success(InfApiAccessLogConvert.INSTANCE.convertPage(pageResult));
  43 + public CommonResult<PageResult<ApiAccessLogRespVO>> getApiAccessLogPage(@Valid ApiAccessLogPageReqVO pageVO) {
  44 + PageResult<ApiAccessLogDO> pageResult = apiAccessLogService.getApiAccessLogPage(pageVO);
  45 + return success(ApiAccessLogConvert.INSTANCE.convertPage(pageResult));
46 46 }
47 47  
48 48 @GetMapping("/export-excel")
49 49 @ApiOperation("导出API 访问日志 Excel")
50 50 @PreAuthorize("@ss.hasPermission('infra:api-access-log:export')")
51 51 @OperateLog(type = EXPORT)
52   - public void exportApiAccessLogExcel(@Valid InfApiAccessLogExportReqVO exportReqVO,
  52 + public void exportApiAccessLogExcel(@Valid ApiAccessLogExportReqVO exportReqVO,
53 53 HttpServletResponse response) throws IOException {
54   - List<InfApiAccessLogDO> list = apiAccessLogService.getApiAccessLogList(exportReqVO);
  54 + List<ApiAccessLogDO> list = apiAccessLogService.getApiAccessLogList(exportReqVO);
55 55 // 导出 Excel
56   - List<InfApiAccessLogExcelVO> datas = InfApiAccessLogConvert.INSTANCE.convertList02(list);
57   - ExcelUtils.write(response, "API 访问日志.xls", "数据", InfApiAccessLogExcelVO.class, datas);
  56 + List<ApiAccessLogExcelVO> datas = ApiAccessLogConvert.INSTANCE.convertList02(list);
  57 + ExcelUtils.write(response, "API 访问日志.xls", "数据", ApiAccessLogExcelVO.class, datas);
58 58 }
59 59  
60 60 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/InfApiErrorLogController.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/ApiErrorLogController.java
1 1 package cn.iocoder.yudao.module.infra.controller.admin.logger;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiErrorLogDO;
4 3 import cn.iocoder.yudao.framework.common.pojo.CommonResult;
5 4 import cn.iocoder.yudao.framework.common.pojo.PageResult;
6 5 import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
7 6 import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
8   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogExcelVO;
9   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogExportReqVO;
10   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogPageReqVO;
11   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogRespVO;
12   -import cn.iocoder.yudao.module.infra.convert.logger.InfApiErrorLogConvert;
13   -import cn.iocoder.yudao.module.infra.service.logger.InfApiErrorLogService;
  7 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogExcelVO;
  8 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogExportReqVO;
  9 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogPageReqVO;
  10 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogRespVO;
  11 +import cn.iocoder.yudao.module.infra.convert.logger.ApiErrorLogConvert;
  12 +import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiErrorLogDO;
  13 +import cn.iocoder.yudao.module.infra.service.logger.ApiErrorLogService;
14 14 import io.swagger.annotations.Api;
15 15 import io.swagger.annotations.ApiImplicitParam;
16 16 import io.swagger.annotations.ApiImplicitParams;
... ... @@ -29,14 +29,14 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
29 29 import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
30 30 import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
31 31  
32   -@Api(tags = "API 错误日志")
  32 +@Api(tags = "管理后台 - API 错误日志")
33 33 @RestController
34 34 @RequestMapping("/infra/api-error-log")
35 35 @Validated
36   -public class InfApiErrorLogController {
  36 +public class ApiErrorLogController {
37 37  
38 38 @Resource
39   - private InfApiErrorLogService apiErrorLogService;
  39 + private ApiErrorLogService apiErrorLogService;
40 40  
41 41 @PutMapping("/update-status")
42 42 @ApiOperation("更新 API 错误日志的状态")
... ... @@ -54,21 +54,21 @@ public class InfApiErrorLogController {
54 54 @GetMapping("/page")
55 55 @ApiOperation("获得 API 错误日志分页")
56 56 @PreAuthorize("@ss.hasPermission('infra:api-error-log:query')")
57   - public CommonResult<PageResult<InfApiErrorLogRespVO>> getApiErrorLogPage(@Valid InfApiErrorLogPageReqVO pageVO) {
58   - PageResult<InfApiErrorLogDO> pageResult = apiErrorLogService.getApiErrorLogPage(pageVO);
59   - return success(InfApiErrorLogConvert.INSTANCE.convertPage(pageResult));
  57 + public CommonResult<PageResult<ApiErrorLogRespVO>> getApiErrorLogPage(@Valid ApiErrorLogPageReqVO pageVO) {
  58 + PageResult<ApiErrorLogDO> pageResult = apiErrorLogService.getApiErrorLogPage(pageVO);
  59 + return success(ApiErrorLogConvert.INSTANCE.convertPage(pageResult));
60 60 }
61 61  
62 62 @GetMapping("/export-excel")
63 63 @ApiOperation("导出 API 错误日志 Excel")
64 64 @PreAuthorize("@ss.hasPermission('infra:api-error-log:export')")
65 65 @OperateLog(type = EXPORT)
66   - public void exportApiErrorLogExcel(@Valid InfApiErrorLogExportReqVO exportReqVO,
  66 + public void exportApiErrorLogExcel(@Valid ApiErrorLogExportReqVO exportReqVO,
67 67 HttpServletResponse response) throws IOException {
68   - List<InfApiErrorLogDO> list = apiErrorLogService.getApiErrorLogList(exportReqVO);
  68 + List<ApiErrorLogDO> list = apiErrorLogService.getApiErrorLogList(exportReqVO);
69 69 // 导出 Excel
70   - List<InfApiErrorLogExcelVO> datas = InfApiErrorLogConvert.INSTANCE.convertList02(list);
71   - ExcelUtils.write(response, "API 错误日志.xls", "数据", InfApiErrorLogExcelVO.class, datas);
  70 + List<ApiErrorLogExcelVO> datas = ApiErrorLogConvert.INSTANCE.convertList02(list);
  71 + ExcelUtils.write(response, "API 错误日志.xls", "数据", ApiErrorLogExcelVO.class, datas);
72 72 }
73 73  
74 74 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/InfApiAccessLogBaseVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogBaseVO.java
... ... @@ -14,7 +14,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
14 14 * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
15 15 */
16 16 @Data
17   -public class InfApiAccessLogBaseVO {
  17 +public class ApiAccessLogBaseVO {
18 18  
19 19 @ApiModelProperty(value = "链路追踪编号", required = true, example = "66600cb6-7852-11eb-9439-0242ac130002")
20 20 @NotNull(message = "链路追踪编号不能为空")
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/InfApiAccessLogExcelVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogExcelVO.java
... ... @@ -14,7 +14,7 @@ import java.util.Date;
14 14 * @author 芋道源码
15 15 */
16 16 @Data
17   -public class InfApiAccessLogExcelVO {
  17 +public class ApiAccessLogExcelVO {
18 18  
19 19 @ExcelProperty("日志主键")
20 20 private Long id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/InfApiAccessLogExportReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogExportReqVO.java
... ... @@ -9,9 +9,9 @@ import java.util.Date;
9 9  
10 10 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
11 11  
12   -@ApiModel(value = "API 访问日志 Excel 导出 Request VO", description = "参数和 InfApiAccessLogPageReqVO 是一致的")
  12 +@ApiModel(value = "管理后台 - API 访问日志 Excel 导出 Request VO", description = "参数和 InfApiAccessLogPageReqVO 是一致的")
13 13 @Data
14   -public class InfApiAccessLogExportReqVO {
  14 +public class ApiAccessLogExportReqVO {
15 15  
16 16 @ApiModelProperty(value = "用户编号", example = "666")
17 17 private Long userId;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/InfApiAccessLogPageReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogPageReqVO.java
... ... @@ -12,11 +12,11 @@ import java.util.Date;
12 12  
13 13 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
14 14  
15   -@ApiModel("API 访问日志分页 Request VO")
  15 +@ApiModel("管理后台 - API 访问日志分页 Request VO")
16 16 @Data
17 17 @EqualsAndHashCode(callSuper = true)
18 18 @ToString(callSuper = true)
19   -public class InfApiAccessLogPageReqVO extends PageParam {
  19 +public class ApiAccessLogPageReqVO extends PageParam {
20 20  
21 21 @ApiModelProperty(value = "用户编号", example = "666")
22 22 private Long userId;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/InfApiAccessLogRespVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogRespVO.java
... ... @@ -8,11 +8,11 @@ import lombok.ToString;
8 8  
9 9 import java.util.Date;
10 10  
11   -@ApiModel("API 访问日志 Response VO")
  11 +@ApiModel("管理后台 - API 访问日志 Response VO")
12 12 @Data
13 13 @EqualsAndHashCode(callSuper = true)
14 14 @ToString(callSuper = true)
15   -public class InfApiAccessLogRespVO extends InfApiAccessLogBaseVO {
  15 +public class ApiAccessLogRespVO extends ApiAccessLogBaseVO {
16 16  
17 17 @ApiModelProperty(value = "日志主键", required = true, example = "1024")
18 18 private Long id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/InfApiErrorLogBaseVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogBaseVO.java
... ... @@ -14,7 +14,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
14 14 * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
15 15 */
16 16 @Data
17   -public class InfApiErrorLogBaseVO {
  17 +public class ApiErrorLogBaseVO {
18 18  
19 19 @ApiModelProperty(value = "链路追踪编号", required = true, example = "66600cb6-7852-11eb-9439-0242ac130002")
20 20 @NotNull(message = "链路追踪编号不能为空")
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/InfApiErrorLogExcelVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogExcelVO.java
... ... @@ -3,7 +3,6 @@ package cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog;
3 3 import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
4 4 import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
5 5 import cn.iocoder.yudao.module.infra.enums.DictTypeConstants;
6   -import cn.iocoder.yudao.module.system.enums.DictTypeConstants;
7 6 import com.alibaba.excel.annotation.ExcelProperty;
8 7 import lombok.Data;
9 8  
... ... @@ -15,7 +14,7 @@ import java.util.Date;
15 14 * @author 芋道源码
16 15 */
17 16 @Data
18   -public class InfApiErrorLogExcelVO {
  17 +public class ApiErrorLogExcelVO {
19 18  
20 19 @ExcelProperty("编号")
21 20 private Integer id;
... ... @@ -27,7 +26,7 @@ public class InfApiErrorLogExcelVO {
27 26 private Integer userId;
28 27  
29 28 @ExcelProperty(value = "用户类型", converter = DictConvert.class)
30   - @DictFormat(DictTypeConstants.USER_TYPE)
  29 + @DictFormat(cn.iocoder.yudao.module.system.enums.DictTypeConstants.USER_TYPE)
31 30 private Integer userType;
32 31  
33 32 @ExcelProperty("应用名")
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/InfApiErrorLogExportReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogExportReqVO.java
... ... @@ -9,9 +9,9 @@ import java.util.Date;
9 9  
10 10 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
11 11  
12   -@ApiModel(value = "API 错误日志 Excel 导出 Request VO", description = "参数和 InfApiErrorLogPageReqVO 是一致的")
  12 +@ApiModel(value = "管理后台 - API 错误日志 Excel 导出 Request VO", description = "参数和 InfApiErrorLogPageReqVO 是一致的")
13 13 @Data
14   -public class InfApiErrorLogExportReqVO {
  14 +public class ApiErrorLogExportReqVO {
15 15  
16 16 @ApiModelProperty(value = "用户编号", example = "666")
17 17 private Long userId;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/InfApiErrorLogPageReqVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogPageReqVO.java
... ... @@ -12,11 +12,11 @@ import java.util.Date;
12 12  
13 13 import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
14 14  
15   -@ApiModel("API 错误日志分页 Request VO")
  15 +@ApiModel("管理后台 - API 错误日志分页 Request VO")
16 16 @Data
17 17 @EqualsAndHashCode(callSuper = true)
18 18 @ToString(callSuper = true)
19   -public class InfApiErrorLogPageReqVO extends PageParam {
  19 +public class ApiErrorLogPageReqVO extends PageParam {
20 20  
21 21 @ApiModelProperty(value = "用户编号", example = "666")
22 22 private Long userId;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/InfApiErrorLogRespVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogRespVO.java
... ... @@ -8,11 +8,11 @@ import lombok.ToString;
8 8  
9 9 import java.util.Date;
10 10  
11   -@ApiModel("API 错误日志 Response VO")
  11 +@ApiModel("管理后台 - API 错误日志 Response VO")
12 12 @Data
13 13 @EqualsAndHashCode(callSuper = true)
14 14 @ToString(callSuper = true)
15   -public class InfApiErrorLogRespVO extends InfApiErrorLogBaseVO {
  15 +public class ApiErrorLogRespVO extends ApiErrorLogBaseVO {
16 16  
17 17 @ApiModelProperty(value = "编号", required = true, example = "1024")
18 18 private Integer id;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/RedisController.http
1 1 ### 请求 /infra/redis/get-monitor-info 接口 => 成功
2 2 GET {{baseUrl}}/infra/redis/get-monitor-info
3 3 Authorization: Bearer {{token}}
  4 +tenant-id: {{adminTenentId}}
4 5  
5 6 ### 请求 /infra/redis/get-key-list 接口 => 成功
6 7 GET {{baseUrl}}/infra/redis/get-key-list
7 8 Authorization: Bearer {{token}}
  9 +tenant-id: {{adminTenentId}}
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/RedisController.java
... ... @@ -3,8 +3,8 @@ package cn.iocoder.yudao.module.infra.controller.admin.redis;
3 3 import cn.iocoder.yudao.framework.common.pojo.CommonResult;
4 4 import cn.iocoder.yudao.framework.redis.core.RedisKeyDefine;
5 5 import cn.iocoder.yudao.framework.redis.core.RedisKeyRegistry;
6   -import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.InfRedisKeyRespVO;
7   -import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.InfRedisMonitorRespVO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.RedisKeyRespVO;
  7 +import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.RedisMonitorRespVO;
8 8 import cn.iocoder.yudao.module.infra.convert.redis.RedisConvert;
9 9 import io.swagger.annotations.Api;
10 10 import io.swagger.annotations.ApiOperation;
... ... @@ -22,7 +22,7 @@ import java.util.Properties;
22 22  
23 23 import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
24 24  
25   -@Api(tags = "Redis 监控")
  25 +@Api(tags = "管理后台 - Redis 监控")
26 26 @RestController
27 27 @RequestMapping("/infra/redis")
28 28 public class RedisController {
... ... @@ -33,7 +33,7 @@ public class RedisController {
33 33 @GetMapping("/get-monitor-info")
34 34 @ApiOperation("获得 Redis 监控信息")
35 35 @PreAuthorize("@ss.hasPermission('infra:redis:get-monitor-info')")
36   - public CommonResult<InfRedisMonitorRespVO> getRedisMonitorInfo() {
  36 + public CommonResult<RedisMonitorRespVO> getRedisMonitorInfo() {
37 37 // 获得 Redis 统计信息
38 38 Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info);
39 39 Long dbSize = stringRedisTemplate.execute(RedisServerCommands::dbSize);
... ... @@ -47,7 +47,7 @@ public class RedisController {
47 47 @GetMapping("/get-key-list")
48 48 @ApiOperation("获得 Redis Key 列表")
49 49 @PreAuthorize("@ss.hasPermission('infra:redis:get-key-list')")
50   - public CommonResult<List<InfRedisKeyRespVO>> getKeyList() {
  50 + public CommonResult<List<RedisKeyRespVO>> getKeyList() {
51 51 List<RedisKeyDefine> keyDefines = RedisKeyRegistry.list();
52 52 return success(RedisConvert.INSTANCE.convertList(keyDefines));
53 53 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/InfRedisKeyRespVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisKeyRespVO.java
... ... @@ -9,11 +9,11 @@ import lombok.Data;
9 9  
10 10 import java.time.Duration;
11 11  
12   -@ApiModel("Redis Key 信息 Response VO")
  12 +@ApiModel("管理后台 - Redis Key 信息 Response VO")
13 13 @Data
14 14 @Builder
15 15 @AllArgsConstructor
16   -public class InfRedisKeyRespVO {
  16 +public class RedisKeyRespVO {
17 17  
18 18 @ApiModelProperty(value = "login_user:%s", required = true, example = "String")
19 19 private String keyTemplate;
... ... @@ -22,7 +22,7 @@ public class InfRedisKeyRespVO {
22 22 private RedisKeyDefine.KeyTypeEnum keyType;
23 23  
24 24 @ApiModelProperty(value = "Value 类型", required = true, example = "java.lang.String")
25   - private Class valueType;
  25 + private Class<?> valueType;
26 26  
27 27 @ApiModelProperty(value = "超时类型", required = true, example = "1")
28 28 private RedisKeyDefine.TimeoutTypeEnum timeoutType;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/InfRedisMonitorRespVO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisMonitorRespVO.java
... ... @@ -9,11 +9,11 @@ import lombok.Data;
9 9 import java.util.List;
10 10 import java.util.Properties;
11 11  
12   -@ApiModel("Redis 监控信息 Response VO")
  12 +@ApiModel("管理后台 - Redis 监控信息 Response VO")
13 13 @Data
14 14 @Builder
15 15 @AllArgsConstructor
16   -public class InfRedisMonitorRespVO {
  16 +public class RedisMonitorRespVO {
17 17  
18 18 @ApiModelProperty(value = "Redis info 指令结果", required = true, notes = "具体字段,查看 Redis 文档")
19 19 private Properties info;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/config/InfConfigConvert.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/config/ConfigConvert.java
1 1 package cn.iocoder.yudao.module.infra.convert.config;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.config.InfConfigDO;
4 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
5 4 import cn.iocoder.yudao.module.infra.controller.admin.config.vo.ConfigCreateReqVO;
6 5 import cn.iocoder.yudao.module.infra.controller.admin.config.vo.ConfigExcelVO;
7 6 import cn.iocoder.yudao.module.infra.controller.admin.config.vo.ConfigRespVO;
8 7 import cn.iocoder.yudao.module.infra.controller.admin.config.vo.ConfigUpdateReqVO;
  8 +import cn.iocoder.yudao.module.infra.dal.dataobject.config.ConfigDO;
9 9 import org.mapstruct.Mapper;
10 10 import org.mapstruct.factory.Mappers;
11 11  
12 12 import java.util.List;
13 13  
14 14 @Mapper
15   -public interface InfConfigConvert {
  15 +public interface ConfigConvert {
16 16  
17   - InfConfigConvert INSTANCE = Mappers.getMapper(InfConfigConvert.class);
  17 + ConfigConvert INSTANCE = Mappers.getMapper(ConfigConvert.class);
18 18  
19   - PageResult<ConfigRespVO> convertPage(PageResult<InfConfigDO> page);
  19 + PageResult<ConfigRespVO> convertPage(PageResult<ConfigDO> page);
20 20  
21   - ConfigRespVO convert(InfConfigDO bean);
  21 + ConfigRespVO convert(ConfigDO bean);
22 22  
23   - InfConfigDO convert(ConfigCreateReqVO bean);
  23 + ConfigDO convert(ConfigCreateReqVO bean);
24 24  
25   - InfConfigDO convert(ConfigUpdateReqVO bean);
  25 + ConfigDO convert(ConfigUpdateReqVO bean);
26 26  
27   - List<ConfigExcelVO> convertList(List<InfConfigDO> list);
  27 + List<ConfigExcelVO> convertList(List<ConfigDO> list);
28 28  
29 29 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/file/FileConvert.java 0 → 100644
  1 +package cn.iocoder.yudao.module.infra.convert.file;
  2 +
  3 +import cn.iocoder.yudao.framework.common.pojo.PageResult;
  4 +import cn.iocoder.yudao.module.infra.controller.admin.file.vo.FileRespVO;
  5 +import cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO;
  6 +import org.mapstruct.Mapper;
  7 +import org.mapstruct.factory.Mappers;
  8 +
  9 +@Mapper
  10 +public interface FileConvert {
  11 +
  12 + FileConvert INSTANCE = Mappers.getMapper(FileConvert.class);
  13 +
  14 + FileRespVO convert(FileDO bean);
  15 +
  16 + PageResult<FileRespVO> convertPage(PageResult<FileDO> page);
  17 +
  18 +}
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/file/InfFileConvert.java deleted
1   -package cn.iocoder.yudao.module.infra.convert.file;
2   -
3   -import cn.iocoder.yudao.coreservice.modules.infra.controller.file.vo.InfFileRespVO;
4   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
5   -import cn.iocoder.yudao.framework.common.pojo.PageResult;
6   -import org.mapstruct.Mapper;
7   -import org.mapstruct.factory.Mappers;
8   -
9   -@Mapper
10   -public interface InfFileConvert {
11   -
12   - InfFileConvert INSTANCE = Mappers.getMapper(InfFileConvert.class);
13   -
14   - InfFileRespVO convert(InfFileDO bean);
15   -
16   - PageResult<InfFileRespVO> convertPage(PageResult<InfFileDO> page);
17   -
18   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/job/InfJobConvert.java deleted
1   -package cn.iocoder.yudao.module.infra.convert.job;
2   -
3   -import cn.iocoder.yudao.framework.common.pojo.PageResult;
4   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.InfJobCreateReqVO;
5   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.InfJobExcelVO;
6   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.InfJobRespVO;
7   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.InfJobUpdateReqVO;
8   -import cn.iocoder.yudao.module.infra.dal.dataobject.job.InfJobDO;
9   -import org.mapstruct.Mapper;
10   -import org.mapstruct.factory.Mappers;
11   -
12   -import java.util.List;
13   -
14   -/**
15   - * 定时任务 Convert
16   - *
17   - * @author 芋道源码
18   - */
19   -@Mapper
20   -public interface InfJobConvert {
21   -
22   - InfJobConvert INSTANCE = Mappers.getMapper(InfJobConvert.class);
23   -
24   - InfJobDO convert(InfJobCreateReqVO bean);
25   -
26   - InfJobDO convert(InfJobUpdateReqVO bean);
27   -
28   - InfJobRespVO convert(InfJobDO bean);
29   -
30   - List<InfJobRespVO> convertList(List<InfJobDO> list);
31   -
32   - PageResult<InfJobRespVO> convertPage(PageResult<InfJobDO> page);
33   -
34   - List<InfJobExcelVO> convertList02(List<InfJobDO> list);
35   -
36   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/job/JobConvert.java 0 → 100644
  1 +package cn.iocoder.yudao.module.infra.convert.job;
  2 +
  3 +import cn.iocoder.yudao.framework.common.pojo.PageResult;
  4 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.JobCreateReqVO;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.JobExcelVO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.JobRespVO;
  7 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.JobUpdateReqVO;
  8 +import cn.iocoder.yudao.module.infra.dal.dataobject.job.JobDO;
  9 +import org.mapstruct.Mapper;
  10 +import org.mapstruct.factory.Mappers;
  11 +
  12 +import java.util.List;
  13 +
  14 +/**
  15 + * 定时任务 Convert
  16 + *
  17 + * @author 芋道源码
  18 + */
  19 +@Mapper
  20 +public interface JobConvert {
  21 +
  22 + JobConvert INSTANCE = Mappers.getMapper(JobConvert.class);
  23 +
  24 + JobDO convert(JobCreateReqVO bean);
  25 +
  26 + JobDO convert(JobUpdateReqVO bean);
  27 +
  28 + JobRespVO convert(JobDO bean);
  29 +
  30 + List<JobRespVO> convertList(List<JobDO> list);
  31 +
  32 + PageResult<JobRespVO> convertPage(PageResult<JobDO> page);
  33 +
  34 + List<JobExcelVO> convertList02(List<JobDO> list);
  35 +
  36 +}
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/job/InfJobLogConvert.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/job/JobLogConvert.java
1 1 package cn.iocoder.yudao.module.infra.convert.job;
2 2  
3 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
4   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogExcelVO;
5   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogRespVO;
6   -import cn.iocoder.yudao.module.infra.dal.dataobject.job.InfJobLogDO;
  4 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogExcelVO;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogRespVO;
  6 +import cn.iocoder.yudao.module.infra.dal.dataobject.job.JobLogDO;
7 7 import org.mapstruct.Mapper;
8 8 import org.mapstruct.factory.Mappers;
9 9  
... ... @@ -15,16 +15,16 @@ import java.util.List;
15 15 * @author 芋艿
16 16 */
17 17 @Mapper
18   -public interface InfJobLogConvert {
  18 +public interface JobLogConvert {
19 19  
20   - InfJobLogConvert INSTANCE = Mappers.getMapper(InfJobLogConvert.class);
  20 + JobLogConvert INSTANCE = Mappers.getMapper(JobLogConvert.class);
21 21  
22   - InfJobLogRespVO convert(InfJobLogDO bean);
  22 + JobLogRespVO convert(JobLogDO bean);
23 23  
24   - List<InfJobLogRespVO> convertList(List<InfJobLogDO> list);
  24 + List<JobLogRespVO> convertList(List<JobLogDO> list);
25 25  
26   - PageResult<InfJobLogRespVO> convertPage(PageResult<InfJobLogDO> page);
  26 + PageResult<JobLogRespVO> convertPage(PageResult<JobLogDO> page);
27 27  
28   - List<InfJobLogExcelVO> convertList02(List<InfJobLogDO> list);
  28 + List<JobLogExcelVO> convertList02(List<JobLogDO> list);
29 29  
30 30 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/logger/ApiAccessLogConvert.java 0 → 100644
  1 +package cn.iocoder.yudao.module.infra.convert.logger;
  2 +
  3 +import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiAccessLogCreateReqDTO;
  4 +import cn.iocoder.yudao.framework.common.pojo.PageResult;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogExcelVO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogRespVO;
  7 +import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiAccessLogDO;
  8 +import org.mapstruct.Mapper;
  9 +import org.mapstruct.factory.Mappers;
  10 +
  11 +import java.util.List;
  12 +
  13 +/**
  14 + * API 访问日志 Convert
  15 + *
  16 + * @author 芋道源码
  17 + */
  18 +@Mapper
  19 +public interface ApiAccessLogConvert {
  20 +
  21 + ApiAccessLogConvert INSTANCE = Mappers.getMapper(ApiAccessLogConvert.class);
  22 +
  23 + ApiAccessLogRespVO convert(ApiAccessLogDO bean);
  24 +
  25 + List<ApiAccessLogRespVO> convertList(List<ApiAccessLogDO> list);
  26 +
  27 + PageResult<ApiAccessLogRespVO> convertPage(PageResult<ApiAccessLogDO> page);
  28 +
  29 + List<ApiAccessLogExcelVO> convertList02(List<ApiAccessLogDO> list);
  30 +
  31 + ApiAccessLogDO convert(ApiAccessLogCreateReqDTO bean);
  32 +
  33 +}
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/logger/InfApiErrorLogConvert.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/logger/ApiErrorLogConvert.java
1 1 package cn.iocoder.yudao.module.infra.convert.logger;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiErrorLogDO;
  3 +import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiErrorLogCreateReqDTO;
4 4 import cn.iocoder.yudao.framework.common.pojo.PageResult;
5   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogExcelVO;
6   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogRespVO;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogExcelVO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogRespVO;
  7 +import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiErrorLogDO;
7 8 import org.mapstruct.Mapper;
8 9 import org.mapstruct.factory.Mappers;
9 10  
... ... @@ -15,14 +16,16 @@ import java.util.List;
15 16 * @author 芋道源码
16 17 */
17 18 @Mapper
18   -public interface InfApiErrorLogConvert {
  19 +public interface ApiErrorLogConvert {
19 20  
20   - InfApiErrorLogConvert INSTANCE = Mappers.getMapper(InfApiErrorLogConvert.class);
  21 + ApiErrorLogConvert INSTANCE = Mappers.getMapper(ApiErrorLogConvert.class);
21 22  
22   - InfApiErrorLogRespVO convert(InfApiErrorLogDO bean);
  23 + ApiErrorLogRespVO convert(ApiErrorLogDO bean);
23 24  
24   - PageResult<InfApiErrorLogRespVO> convertPage(PageResult<InfApiErrorLogDO> page);
  25 + PageResult<ApiErrorLogRespVO> convertPage(PageResult<ApiErrorLogDO> page);
25 26  
26   - List<InfApiErrorLogExcelVO> convertList02(List<InfApiErrorLogDO> list);
  27 + List<ApiErrorLogExcelVO> convertList02(List<ApiErrorLogDO> list);
  28 +
  29 + ApiErrorLogDO convert(ApiErrorLogCreateReqDTO bean);
27 30  
28 31 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/logger/InfApiAccessLogConvert.java deleted
1   -package cn.iocoder.yudao.module.infra.convert.logger;
2   -
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiAccessLogDO;
4   -import cn.iocoder.yudao.framework.common.pojo.PageResult;
5   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogExcelVO;
6   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogRespVO;
7   -import org.mapstruct.Mapper;
8   -import org.mapstruct.factory.Mappers;
9   -
10   -import java.util.List;
11   -
12   -/**
13   - * API 访问日志 Convert
14   - *
15   - * @author 芋道源码
16   - */
17   -@Mapper
18   -public interface InfApiAccessLogConvert {
19   -
20   - InfApiAccessLogConvert INSTANCE = Mappers.getMapper(InfApiAccessLogConvert.class);
21   -
22   - InfApiAccessLogRespVO convert(InfApiAccessLogDO bean);
23   -
24   - List<InfApiAccessLogRespVO> convertList(List<InfApiAccessLogDO> list);
25   -
26   - PageResult<InfApiAccessLogRespVO> convertPage(PageResult<InfApiAccessLogDO> page);
27   -
28   - List<InfApiAccessLogExcelVO> convertList02(List<InfApiAccessLogDO> list);
29   -
30   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/logger/InfApiAccessLogCoreConvert.java deleted
1   -package cn.iocoder.yudao.module.infra.convert.logger;
2   -
3   -import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiAccessLogCreateReqDTO;
4   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiAccessLogDO;
5   -import org.mapstruct.Mapper;
6   -import org.mapstruct.factory.Mappers;
7   -
8   -@Mapper
9   -public interface InfApiAccessLogCoreConvert {
10   -
11   - InfApiAccessLogCoreConvert INSTANCE = Mappers.getMapper(InfApiAccessLogCoreConvert.class);
12   -
13   - InfApiAccessLogDO convert(ApiAccessLogCreateReqDTO bean);
14   -
15   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/logger/InfApiErrorLogCoreConvert.java deleted
1   -package cn.iocoder.yudao.module.infra.convert.logger;
2   -
3   -import cn.iocoder.yudao.framework.apilog.core.service.dto.ApiErrorLogCreateReqDTO;
4   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiErrorLogDO;
5   -import org.mapstruct.Mapper;
6   -import org.mapstruct.factory.Mappers;
7   -
8   -@Mapper
9   -public interface InfApiErrorLogCoreConvert {
10   -
11   - InfApiErrorLogCoreConvert INSTANCE = Mappers.getMapper(InfApiErrorLogCoreConvert.class);
12   -
13   - InfApiErrorLogDO convert(ApiErrorLogCreateReqDTO bean);
14   -
15   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/convert/redis/RedisConvert.java
... ... @@ -2,8 +2,8 @@ package cn.iocoder.yudao.module.infra.convert.redis;
2 2  
3 3 import cn.hutool.core.util.StrUtil;
4 4 import cn.iocoder.yudao.framework.redis.core.RedisKeyDefine;
5   -import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.InfRedisKeyRespVO;
6   -import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.InfRedisMonitorRespVO;
  5 +import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.RedisKeyRespVO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.redis.vo.RedisMonitorRespVO;
7 7 import org.mapstruct.Mapper;
8 8 import org.mapstruct.factory.Mappers;
9 9  
... ... @@ -16,11 +16,11 @@ public interface RedisConvert {
16 16  
17 17 RedisConvert INSTANCE = Mappers.getMapper(RedisConvert.class);
18 18  
19   - default InfRedisMonitorRespVO build(Properties info, Long dbSize, Properties commandStats) {
20   - InfRedisMonitorRespVO respVO = InfRedisMonitorRespVO.builder().info(info).dbSize(dbSize)
  19 + default RedisMonitorRespVO build(Properties info, Long dbSize, Properties commandStats) {
  20 + RedisMonitorRespVO respVO = RedisMonitorRespVO.builder().info(info).dbSize(dbSize)
21 21 .commandStats(new ArrayList<>(commandStats.size())).build();
22 22 commandStats.forEach((key, value) -> {
23   - respVO.getCommandStats().add(InfRedisMonitorRespVO.CommandStat.builder()
  23 + respVO.getCommandStats().add(RedisMonitorRespVO.CommandStat.builder()
24 24 .command(StrUtil.subAfter((String) key, "cmdstat_", false))
25 25 .calls(Integer.valueOf(StrUtil.subBetween((String) value, "calls=", ",")))
26 26 .usec(Long.valueOf(StrUtil.subBetween((String) value, "usec=", ",")))
... ... @@ -29,6 +29,6 @@ public interface RedisConvert {
29 29 return respVO;
30 30 }
31 31  
32   - List<InfRedisKeyRespVO> convertList(List<RedisKeyDefine> list);
  32 + List<RedisKeyRespVO> convertList(List<RedisKeyDefine> list);
33 33  
34 34 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/config/InfConfigDO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/config/ConfigDO.java
... ... @@ -13,11 +13,11 @@ import lombok.ToString;
13 13 *
14 14 * @author 芋道源码
15 15 */
16   -@TableName("inf_config")
  16 +@TableName("infra_config")
17 17 @Data
18 18 @EqualsAndHashCode(callSuper = true)
19 19 @ToString(callSuper = true)
20   -public class InfConfigDO extends BaseDO {
  20 +public class ConfigDO extends BaseDO {
21 21  
22 22 /**
23 23 * 参数主键
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/file/InfFileDO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/file/FileDO.java
1 1 package cn.iocoder.yudao.module.infra.dal.dataobject.file;
2 2  
3   -import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
4 3 import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
5 4 import com.baomidou.mybatisplus.annotation.IdType;
6 5 import com.baomidou.mybatisplus.annotation.TableField;
... ... @@ -16,13 +15,13 @@ import java.io.InputStream;
16 15 * @author 芋道源码
17 16 */
18 17 @Data
19   -@TableName("inf_file")
  18 +@TableName("infra_file")
20 19 @EqualsAndHashCode(callSuper = true)
21 20 @ToString(callSuper = true)
22 21 @Builder
23 22 @NoArgsConstructor
24 23 @AllArgsConstructor
25   -public class InfFileDO extends TenantBaseDO {
  24 +public class FileDO extends TenantBaseDO {
26 25  
27 26 /**
28 27 * 文件路径
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/job/InfJobDO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/job/JobDO.java
1 1 package cn.iocoder.yudao.module.infra.dal.dataobject.job;
2 2  
3 3 import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
4   -import cn.iocoder.yudao.module.infra.enums.job.InfJobStatusEnum;
  4 +import cn.iocoder.yudao.module.infra.enums.job.JobStatusEnum;
5 5 import com.baomidou.mybatisplus.annotation.TableId;
6 6 import com.baomidou.mybatisplus.annotation.TableName;
7 7 import lombok.*;
... ... @@ -11,14 +11,14 @@ import lombok.*;
11 11 *
12 12 * @author 芋道源码
13 13 */
14   -@TableName("inf_job")
  14 +@TableName("infra_job")
15 15 @Data
16 16 @EqualsAndHashCode(callSuper = true)
17 17 @ToString(callSuper = true)
18 18 @Builder
19 19 @NoArgsConstructor
20 20 @AllArgsConstructor
21   -public class InfJobDO extends BaseDO {
  21 +public class JobDO extends BaseDO {
22 22  
23 23 /**
24 24 * 任务编号
... ... @@ -32,7 +32,7 @@ public class InfJobDO extends BaseDO {
32 32 /**
33 33 * 任务状态
34 34 *
35   - * 枚举 {@link InfJobStatusEnum}
  35 + * 枚举 {@link JobStatusEnum}
36 36 */
37 37 private Integer status;
38 38 /**
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/job/InfJobLogDO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/job/JobLogDO.java
... ... @@ -2,7 +2,7 @@ package cn.iocoder.yudao.module.infra.dal.dataobject.job;
2 2  
3 3 import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
4 4 import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
5   -import cn.iocoder.yudao.module.infra.enums.job.InfJobLogStatusEnum;
  5 +import cn.iocoder.yudao.module.infra.enums.job.JobLogStatusEnum;
6 6 import com.baomidou.mybatisplus.annotation.TableName;
7 7 import lombok.*;
8 8  
... ... @@ -13,14 +13,14 @@ import java.util.Date;
13 13 *
14 14 * @author 芋道源码
15 15 */
16   -@TableName("inf_job_log")
  16 +@TableName("infra_job_log")
17 17 @Data
18 18 @EqualsAndHashCode(callSuper = true)
19 19 @ToString(callSuper = true)
20 20 @Builder
21 21 @NoArgsConstructor
22 22 @AllArgsConstructor
23   -public class InfJobLogDO extends BaseDO {
  23 +public class JobLogDO extends BaseDO {
24 24  
25 25 /**
26 26 * 日志编号
... ... @@ -29,19 +29,19 @@ public class InfJobLogDO extends BaseDO {
29 29 /**
30 30 * 任务编号
31 31 *
32   - * 关联 {@link InfJobDO#getId()}
  32 + * 关联 {@link JobDO#getId()}
33 33 */
34 34 private Long jobId;
35 35 /**
36 36 * 处理器的名字
37 37 *
38   - * 冗余字段 {@link InfJobDO#getHandlerName()}
  38 + * 冗余字段 {@link JobDO#getHandlerName()}
39 39 */
40 40 private String handlerName;
41 41 /**
42 42 * 处理器的参数
43 43 *
44   - * 冗余字段 {@link InfJobDO#getHandlerParam()}
  44 + * 冗余字段 {@link JobDO#getHandlerParam()}
45 45 */
46 46 private String handlerParam;
47 47 /**
... ... @@ -66,7 +66,7 @@ public class InfJobLogDO extends BaseDO {
66 66 /**
67 67 * 状态
68 68 *
69   - * 枚举 {@link InfJobLogStatusEnum}
  69 + * 枚举 {@link JobLogStatusEnum}
70 70 */
71 71 private Integer status;
72 72 /**
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/logger/InfApiAccessLogDO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/logger/ApiAccessLogDO.java
... ... @@ -14,14 +14,14 @@ import java.util.Date;
14 14 *
15 15 * @author 芋道源码
16 16 */
17   -@TableName("inf_api_access_log")
  17 +@TableName("infra_api_access_log")
18 18 @Data
19 19 @EqualsAndHashCode(callSuper = true)
20 20 @ToString(callSuper = true)
21 21 @Builder
22 22 @NoArgsConstructor
23 23 @AllArgsConstructor
24   -public class InfApiAccessLogDO extends TenantBaseDO {
  24 +public class ApiAccessLogDO extends TenantBaseDO {
25 25  
26 26 /**
27 27 * 编号
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/logger/InfApiErrorLogDO.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/logger/ApiErrorLogDO.java
1 1 package cn.iocoder.yudao.module.infra.dal.dataobject.logger;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.enums.logger.InfApiErrorLogProcessStatusEnum;
4 3 import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
5 4 import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
6 5 import com.baomidou.mybatisplus.annotation.TableId;
... ... @@ -14,14 +13,14 @@ import java.util.Date;
14 13 *
15 14 * @author 芋道源码
16 15 */
17   -@TableName("inf_api_error_log")
  16 +@TableName("infra_api_error_log")
18 17 @Data
19 18 @EqualsAndHashCode(callSuper = true)
20 19 @ToString(callSuper = true)
21 20 @Builder
22 21 @NoArgsConstructor
23 22 @AllArgsConstructor
24   -public class InfApiErrorLogDO extends TenantBaseDO {
  23 +public class ApiErrorLogDO extends TenantBaseDO {
25 24  
26 25 /**
27 26 * 编号
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/config/InfConfigCoreDAOImpl.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/config/ConfigCoreDAOImpl.java
... ... @@ -16,11 +16,11 @@ import java.util.List;
16 16 *
17 17 * @author 芋道源码
18 18 */
19   -public class InfConfigCoreDAOImpl implements ConfigFrameworkDAO {
  19 +public class ConfigCoreDAOImpl implements ConfigFrameworkDAO {
20 20  
21 21 private final JdbcTemplate jdbcTemplate;
22 22  
23   - public InfConfigCoreDAOImpl(String jdbcUrl, String username, String password) {
  23 + public ConfigCoreDAOImpl(String jdbcUrl, String username, String password) {
24 24 DataSource dataSource = new DriverManagerDataSource(jdbcUrl, username, password);
25 25 this.jdbcTemplate = new JdbcTemplate(dataSource);
26 26 }
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/config/InfConfigMapper.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/config/ConfigMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.config;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.config.InfConfigDO;
4 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
5 4 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
6 5 import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX;
7 6 import cn.iocoder.yudao.module.infra.controller.admin.config.vo.ConfigExportReqVO;
8 7 import cn.iocoder.yudao.module.infra.controller.admin.config.vo.ConfigPageReqVO;
  8 +import cn.iocoder.yudao.module.infra.dal.dataobject.config.ConfigDO;
9 9 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
10 10 import org.apache.ibatis.annotations.Mapper;
11 11  
12 12 import java.util.List;
13 13  
14 14 @Mapper
15   -public interface InfConfigMapper extends BaseMapperX<InfConfigDO> {
  15 +public interface ConfigMapper extends BaseMapperX<ConfigDO> {
16 16  
17   - default InfConfigDO selectByKey(String key) {
18   - return selectOne(new QueryWrapper<InfConfigDO>().eq("`key`", key));
  17 + default ConfigDO selectByKey(String key) {
  18 + return selectOne(new QueryWrapper<ConfigDO>().eq("`key`", key));
19 19 }
20 20  
21   - default PageResult<InfConfigDO> selectPage(ConfigPageReqVO reqVO) {
22   - return selectPage(reqVO, new QueryWrapperX<InfConfigDO>()
  21 + default PageResult<ConfigDO> selectPage(ConfigPageReqVO reqVO) {
  22 + return selectPage(reqVO, new QueryWrapperX<ConfigDO>()
23 23 .likeIfPresent("name", reqVO.getName())
24 24 .likeIfPresent("`key`", reqVO.getKey())
25 25 .eqIfPresent("`type`", reqVO.getType())
26 26 .betweenIfPresent("create_time", reqVO.getBeginTime(), reqVO.getEndTime()));
27 27 }
28 28  
29   - default List<InfConfigDO> selectList(ConfigExportReqVO reqVO) {
30   - return selectList(new QueryWrapperX<InfConfigDO>()
  29 + default List<ConfigDO> selectList(ConfigExportReqVO reqVO) {
  30 + return selectList(new QueryWrapperX<ConfigDO>()
31 31 .likeIfPresent("name", reqVO.getName())
32 32 .likeIfPresent("`key`", reqVO.getKey())
33 33 .eqIfPresent("`type`", reqVO.getType())
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/file/InfFileCoreMapper.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/file/FileMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.file;
2 2  
  3 +import cn.iocoder.yudao.framework.common.pojo.PageResult;
3 4 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
4   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
  5 +import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.file.vo.FilePageReqVO;
  7 +import cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO;
5 8 import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
6 9 import org.apache.ibatis.annotations.Mapper;
7 10  
  11 +/**
  12 + * 文件操作 Mapper
  13 + *
  14 + * @author 芋道源码
  15 + */
8 16 @Mapper
9   -public interface InfFileCoreMapper extends BaseMapperX<InfFileDO> {
  17 +public interface FileMapper extends BaseMapperX<FileDO> {
  18 +
  19 + default PageResult<FileDO> selectPage(FilePageReqVO reqVO) {
  20 + return selectPage(reqVO, new QueryWrapperX<FileDO>()
  21 + .likeIfPresent("id", reqVO.getId())
  22 + .likeIfPresent("type", reqVO.getType())
  23 + .betweenIfPresent("create_time", reqVO.getBeginCreateTime(), reqVO.getEndCreateTime())
  24 + .orderByDesc("create_time"));
  25 + }
10 26  
11 27 default Integer selectCountById(String id) {
12   - return selectCount(InfFileDO::getId, id);
  28 + return selectCount(FileDO::getId, id);
13 29 }
14 30  
15 31 /**
... ... @@ -21,7 +37,7 @@ public interface InfFileCoreMapper extends BaseMapperX&lt;InfFileDO&gt; {
21 37 * @return 文件
22 38 */
23 39 @InterceptorIgnore(tenantLine = "true")
24   - default InfFileDO selectByPath(String path) {
  40 + default FileDO selectByPath(String path) {
25 41 return selectById(path);
26 42 }
27 43  
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/file/InfFileMapper.java deleted
1   -package cn.iocoder.yudao.module.infra.dal.mysql.file;
2   -
3   -import cn.iocoder.yudao.module.infra.controller.admin.file.vo.InfFilePageReqVO;
4   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
5   -import cn.iocoder.yudao.framework.common.pojo.PageResult;
6   -import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
7   -import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX;
8   -import org.apache.ibatis.annotations.Mapper;
9   -
10   -/**
11   - * admin 文件操作 Mapper
12   - *
13   - * @author 芋道源码
14   - */
15   -@Mapper
16   -public interface InfFileMapper extends BaseMapperX<InfFileDO> {
17   - default PageResult<InfFileDO> selectPage(InfFilePageReqVO reqVO) {
18   - return selectPage(reqVO, new QueryWrapperX<InfFileDO>()
19   - .likeIfPresent("id", reqVO.getId())
20   - .likeIfPresent("type", reqVO.getType())
21   - .betweenIfPresent("create_time", reqVO.getBeginCreateTime(), reqVO.getEndCreateTime())
22   - .orderByDesc("create_time"));
23   - }
24   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/job/InfJobLogMapper.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/job/JobLogMapper.java
... ... @@ -3,9 +3,9 @@ package cn.iocoder.yudao.module.infra.dal.mysql.job;
3 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
4 4 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
5 5 import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX;
6   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogExportReqVO;
7   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.InfJobLogPageReqVO;
8   -import cn.iocoder.yudao.module.infra.dal.dataobject.job.InfJobLogDO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogExportReqVO;
  7 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.log.JobLogPageReqVO;
  8 +import cn.iocoder.yudao.module.infra.dal.dataobject.job.JobLogDO;
9 9 import org.apache.ibatis.annotations.Mapper;
10 10  
11 11 import java.util.List;
... ... @@ -16,10 +16,10 @@ import java.util.List;
16 16 * @author 芋道源码
17 17 */
18 18 @Mapper
19   -public interface InfJobLogMapper extends BaseMapperX<InfJobLogDO> {
  19 +public interface JobLogMapper extends BaseMapperX<JobLogDO> {
20 20  
21   - default PageResult<InfJobLogDO> selectPage(InfJobLogPageReqVO reqVO) {
22   - return selectPage(reqVO, new QueryWrapperX<InfJobLogDO>()
  21 + default PageResult<JobLogDO> selectPage(JobLogPageReqVO reqVO) {
  22 + return selectPage(reqVO, new QueryWrapperX<JobLogDO>()
23 23 .eqIfPresent("job_id", reqVO.getJobId())
24 24 .likeIfPresent("handler_name", reqVO.getHandlerName())
25 25 .geIfPresent("begin_time", reqVO.getBeginTime())
... ... @@ -29,8 +29,8 @@ public interface InfJobLogMapper extends BaseMapperX&lt;InfJobLogDO&gt; {
29 29 );
30 30 }
31 31  
32   - default List<InfJobLogDO> selectList(InfJobLogExportReqVO reqVO) {
33   - return selectList(new QueryWrapperX<InfJobLogDO>()
  32 + default List<JobLogDO> selectList(JobLogExportReqVO reqVO) {
  33 + return selectList(new QueryWrapperX<JobLogDO>()
34 34 .eqIfPresent("job_id", reqVO.getJobId())
35 35 .likeIfPresent("handler_name", reqVO.getHandlerName())
36 36 .geIfPresent("begin_time", reqVO.getBeginTime())
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/job/InfJobMapper.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/job/JobMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.job;
2 2  
3   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.InfJobExportReqVO;
4   -import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.InfJobPageReqVO;
5   -import cn.iocoder.yudao.module.infra.dal.dataobject.job.InfJobDO;
  3 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.JobExportReqVO;
  4 +import cn.iocoder.yudao.module.infra.controller.admin.job.vo.job.JobPageReqVO;
  5 +import cn.iocoder.yudao.module.infra.dal.dataobject.job.JobDO;
6 6 import cn.iocoder.yudao.framework.common.pojo.PageResult;
7 7 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
8 8 import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
... ... @@ -16,25 +16,25 @@ import java.util.List;
16 16 * @author 芋道源码
17 17 */
18 18 @Mapper
19   -public interface InfJobMapper extends BaseMapperX<InfJobDO> {
  19 +public interface JobMapper extends BaseMapperX<JobDO> {
20 20  
21   - default InfJobDO selectByHandlerName(String handlerName) {
22   - return selectOne(InfJobDO::getHandlerName, handlerName);
  21 + default JobDO selectByHandlerName(String handlerName) {
  22 + return selectOne(JobDO::getHandlerName, handlerName);
23 23 }
24 24  
25   - default PageResult<InfJobDO> selectPage(InfJobPageReqVO reqVO) {
26   - return selectPage(reqVO, new LambdaQueryWrapperX<InfJobDO>()
27   - .likeIfPresent(InfJobDO::getName, reqVO.getName())
28   - .eqIfPresent(InfJobDO::getStatus, reqVO.getStatus())
29   - .likeIfPresent(InfJobDO::getHandlerName, reqVO.getHandlerName())
  25 + default PageResult<JobDO> selectPage(JobPageReqVO reqVO) {
  26 + return selectPage(reqVO, new LambdaQueryWrapperX<JobDO>()
  27 + .likeIfPresent(JobDO::getName, reqVO.getName())
  28 + .eqIfPresent(JobDO::getStatus, reqVO.getStatus())
  29 + .likeIfPresent(JobDO::getHandlerName, reqVO.getHandlerName())
30 30 );
31 31 }
32 32  
33   - default List<InfJobDO> selectList(InfJobExportReqVO reqVO) {
34   - return selectList(new LambdaQueryWrapperX<InfJobDO>()
35   - .likeIfPresent(InfJobDO::getName, reqVO.getName())
36   - .eqIfPresent(InfJobDO::getStatus, reqVO.getStatus())
37   - .likeIfPresent(InfJobDO::getHandlerName, reqVO.getHandlerName())
  33 + default List<JobDO> selectList(JobExportReqVO reqVO) {
  34 + return selectList(new LambdaQueryWrapperX<JobDO>()
  35 + .likeIfPresent(JobDO::getName, reqVO.getName())
  36 + .eqIfPresent(JobDO::getStatus, reqVO.getStatus())
  37 + .likeIfPresent(JobDO::getHandlerName, reqVO.getHandlerName())
38 38 );
39 39 }
40 40  
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/logger/InfApiAccessLogMapper.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/logger/ApiAccessLogMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.logger;
2 2  
3   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogExportReqVO;
4   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.InfApiAccessLogPageReqVO;
5   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiAccessLogDO;
  3 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogExportReqVO;
  4 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogPageReqVO;
6 5 import cn.iocoder.yudao.framework.common.pojo.PageResult;
7 6 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
8 7 import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX;
  8 +import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiAccessLogDO;
9 9 import org.apache.ibatis.annotations.Mapper;
10 10  
11 11 import java.util.List;
... ... @@ -16,10 +16,10 @@ import java.util.List;
16 16 * @author 芋道源码
17 17 */
18 18 @Mapper
19   -public interface InfApiAccessLogMapper extends BaseMapperX<InfApiAccessLogDO> {
  19 +public interface ApiAccessLogMapper extends BaseMapperX<ApiAccessLogDO> {
20 20  
21   - default PageResult<InfApiAccessLogDO> selectPage(InfApiAccessLogPageReqVO reqVO) {
22   - return selectPage(reqVO, new QueryWrapperX<InfApiAccessLogDO>()
  21 + default PageResult<ApiAccessLogDO> selectPage(ApiAccessLogPageReqVO reqVO) {
  22 + return selectPage(reqVO, new QueryWrapperX<ApiAccessLogDO>()
23 23 .eqIfPresent("user_id", reqVO.getUserId())
24 24 .eqIfPresent("user_type", reqVO.getUserType())
25 25 .eqIfPresent("application_name", reqVO.getApplicationName())
... ... @@ -31,8 +31,8 @@ public interface InfApiAccessLogMapper extends BaseMapperX&lt;InfApiAccessLogDO&gt; {
31 31 );
32 32 }
33 33  
34   - default List<InfApiAccessLogDO> selectList(InfApiAccessLogExportReqVO reqVO) {
35   - return selectList(new QueryWrapperX<InfApiAccessLogDO>()
  34 + default List<ApiAccessLogDO> selectList(ApiAccessLogExportReqVO reqVO) {
  35 + return selectList(new QueryWrapperX<ApiAccessLogDO>()
36 36 .eqIfPresent("user_id", reqVO.getUserId())
37 37 .eqIfPresent("user_type", reqVO.getUserType())
38 38 .eqIfPresent("application_name", reqVO.getApplicationName())
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/logger/InfApiErrorLogMapper.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/logger/ApiErrorLogMapper.java
1 1 package cn.iocoder.yudao.module.infra.dal.mysql.logger;
2 2  
3   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiErrorLogDO;
4 3 import cn.iocoder.yudao.framework.common.pojo.PageResult;
5 4 import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
6 5 import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX;
7   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogExportReqVO;
8   -import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.InfApiErrorLogPageReqVO;
  6 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogExportReqVO;
  7 +import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogPageReqVO;
  8 +import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiErrorLogDO;
9 9 import org.apache.ibatis.annotations.Mapper;
10 10  
11 11 import java.util.List;
... ... @@ -16,10 +16,10 @@ import java.util.List;
16 16 * @author 芋道源码
17 17 */
18 18 @Mapper
19   -public interface InfApiErrorLogMapper extends BaseMapperX<InfApiErrorLogDO> {
  19 +public interface ApiErrorLogMapper extends BaseMapperX<ApiErrorLogDO> {
20 20  
21   - default PageResult<InfApiErrorLogDO> selectPage(InfApiErrorLogPageReqVO reqVO) {
22   - return selectPage(reqVO, new QueryWrapperX<InfApiErrorLogDO>()
  21 + default PageResult<ApiErrorLogDO> selectPage(ApiErrorLogPageReqVO reqVO) {
  22 + return selectPage(reqVO, new QueryWrapperX<ApiErrorLogDO>()
23 23 .eqIfPresent("user_id", reqVO.getUserId())
24 24 .eqIfPresent("user_type", reqVO.getUserType())
25 25 .eqIfPresent("application_name", reqVO.getApplicationName())
... ... @@ -30,8 +30,8 @@ public interface InfApiErrorLogMapper extends BaseMapperX&lt;InfApiErrorLogDO&gt; {
30 30 );
31 31 }
32 32  
33   - default List<InfApiErrorLogDO> selectList(InfApiErrorLogExportReqVO reqVO) {
34   - return selectList(new QueryWrapperX<InfApiErrorLogDO>()
  33 + default List<ApiErrorLogDO> selectList(ApiErrorLogExportReqVO reqVO) {
  34 + return selectList(new QueryWrapperX<ApiErrorLogDO>()
35 35 .eqIfPresent("user_id", reqVO.getUserId())
36 36 .eqIfPresent("user_type", reqVO.getUserType())
37 37 .eqIfPresent("application_name", reqVO.getApplicationName())
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/logger/InfApiAccessLogCoreMapper.java deleted
1   -package cn.iocoder.yudao.module.infra.dal.mysql.logger;
2   -
3   -import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
4   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiAccessLogDO;
5   -import org.apache.ibatis.annotations.Mapper;
6   -
7   -/**
8   - * API 访问日志 Mapper
9   - *
10   - * @author 芋道源码
11   - */
12   -@Mapper
13   -public interface InfApiAccessLogCoreMapper extends BaseMapperX<InfApiAccessLogDO> {
14   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/dal/mysql/logger/InfApiErrorLogCoreMapper.java deleted
1   -package cn.iocoder.yudao.module.infra.dal.mysql.logger;
2   -
3   -import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
4   -import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.logger.InfApiErrorLogDO;
5   -import org.apache.ibatis.annotations.Mapper;
6   -
7   -@Mapper
8   -public interface InfApiErrorLogCoreMapper extends BaseMapperX<InfApiErrorLogDO> {
9   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/SysErrorCodeConstants.java deleted
1   -package cn.iocoder.yudao.module.infra.enums;
2   -
3   -import cn.iocoder.yudao.framework.common.exception.ErrorCode;
4   -
5   -/**
6   - * System 错误码枚举类
7   - *
8   - * system 系统,使用 1-006-000-000 段
9   - */
10   -public interface SysErrorCodeConstants {
11   -
12   - // ========= 文件相关 1006001000=================
13   - ErrorCode FILE_PATH_EXISTS = new ErrorCode(1006001000, "文件路径已存在");
14   - ErrorCode FILE_NOT_EXISTS = new ErrorCode(1006001002, "文件不存在");
15   -
16   -}
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/config/InfConfigTypeEnum.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/config/ConfigTypeEnum.java
... ... @@ -5,7 +5,7 @@ import lombok.Getter;
5 5  
6 6 @Getter
7 7 @AllArgsConstructor
8   -public enum InfConfigTypeEnum {
  8 +public enum ConfigTypeEnum {
9 9  
10 10 /**
11 11 * 系统配置
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/job/InfJobLogStatusEnum.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/job/JobLogStatusEnum.java
... ... @@ -10,7 +10,7 @@ import lombok.Getter;
10 10 */
11 11 @Getter
12 12 @AllArgsConstructor
13   -public enum InfJobLogStatusEnum {
  13 +public enum JobLogStatusEnum {
14 14  
15 15 RUNNING(0), // 运行中
16 16 SUCCESS(1), // 成功
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/job/InfJobStatusEnum.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/job/JobStatusEnum.java
... ... @@ -3,12 +3,11 @@ package cn.iocoder.yudao.module.infra.enums.job;
3 3 import com.google.common.collect.Sets;
4 4 import lombok.AllArgsConstructor;
5 5 import lombok.Getter;
  6 +import org.quartz.impl.jdbcjobstore.Constants;
6 7  
7 8 import java.util.Collections;
8 9 import java.util.Set;
9 10  
10   -import static org.quartz.impl.jdbcjobstore.Constants.*;
11   -
12 11 /**
13 12 * 任务状态的枚举
14 13 *
... ... @@ -16,7 +15,7 @@ import static org.quartz.impl.jdbcjobstore.Constants.*;
16 15 */
17 16 @Getter
18 17 @AllArgsConstructor
19   -public enum InfJobStatusEnum {
  18 +public enum JobStatusEnum {
20 19  
21 20 /**
22 21 * 初始化中
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/logger/InfApiErrorLogProcessStatusEnum.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/enums/logger/ApiErrorLogProcessStatusEnum.java
... ... @@ -10,7 +10,7 @@ import lombok.Getter;
10 10 */
11 11 @AllArgsConstructor
12 12 @Getter
13   -public enum InfApiErrorLogProcessStatusEnum {
  13 +public enum ApiErrorLogProcessStatusEnum {
14 14  
15 15 INIT(0, "未处理"),
16 16 DONE(1, "已处理"),
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/file/config/FileConfiguration.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/framework/file/config/FileConfiguration.java
1   -package cn.iocoder.yudao.module.infra.file.config;
  1 +package cn.iocoder.yudao.module.infra.framework.file.config;
2 2  
3 3 import org.springframework.boot.context.properties.EnableConfigurationProperties;
4 4 import org.springframework.context.annotation.Configuration;
... ...
yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/file/config/FileProperties.java renamed to yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/framework/file/config/FileProperties.java
1   -package cn.iocoder.yudao.module.infra.file.config;
  1 +package cn.iocoder.yudao.module.infra.framework.file.config;
2 2  
3 3 import lombok.Data;
4 4 import org.springframework.boot.context.properties.ConfigurationProperties;
... ...