Commit 8b6bc7c54e49889c1c0211135bb33c1be99f0d53
Merge branch 'master-jdk21' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into develop
Showing
136 changed files
with
93 additions
and
267 deletions
yudao-dependencies/pom.xml
| @@ -108,16 +108,6 @@ | @@ -108,16 +108,6 @@ | ||
| 108 | </dependency> | 108 | </dependency> |
| 109 | <dependency> | 109 | <dependency> |
| 110 | <groupId>cn.iocoder.boot</groupId> | 110 | <groupId>cn.iocoder.boot</groupId> |
| 111 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 112 | - <version>${revision}</version> | ||
| 113 | - </dependency> | ||
| 114 | - <dependency> | ||
| 115 | - <groupId>cn.iocoder.boot</groupId> | ||
| 116 | - <artifactId>yudao-spring-boot-starter-biz-pay</artifactId> | ||
| 117 | - <version>${revision}</version> | ||
| 118 | - </dependency> | ||
| 119 | - <dependency> | ||
| 120 | - <groupId>cn.iocoder.boot</groupId> | ||
| 121 | <artifactId>yudao-spring-boot-starter-biz-tenant</artifactId> | 111 | <artifactId>yudao-spring-boot-starter-biz-tenant</artifactId> |
| 122 | <version>${revision}</version> | 112 | <version>${revision}</version> |
| 123 | </dependency> | 113 | </dependency> |
| @@ -131,16 +121,6 @@ | @@ -131,16 +121,6 @@ | ||
| 131 | <artifactId>yudao-spring-boot-starter-biz-ip</artifactId> | 121 | <artifactId>yudao-spring-boot-starter-biz-ip</artifactId> |
| 132 | <version>${revision}</version> | 122 | <version>${revision}</version> |
| 133 | </dependency> | 123 | </dependency> |
| 134 | - <dependency> | ||
| 135 | - <groupId>cn.iocoder.boot</groupId> | ||
| 136 | - <artifactId>yudao-spring-boot-starter-captcha</artifactId> | ||
| 137 | - <version>${revision}</version> | ||
| 138 | - </dependency> | ||
| 139 | - <dependency> | ||
| 140 | - <groupId>cn.iocoder.boot</groupId> | ||
| 141 | - <artifactId>yudao-spring-boot-starter-desensitize</artifactId> | ||
| 142 | - <version>${revision}</version> | ||
| 143 | - </dependency> | ||
| 144 | 124 | ||
| 145 | <!-- Spring 核心 --> | 125 | <!-- Spring 核心 --> |
| 146 | <dependency> | 126 | <dependency> |
| @@ -401,11 +381,6 @@ | @@ -401,11 +381,6 @@ | ||
| 401 | 381 | ||
| 402 | <!-- 工作流相关 --> | 382 | <!-- 工作流相关 --> |
| 403 | <dependency> | 383 | <dependency> |
| 404 | - <groupId>cn.iocoder.boot</groupId> | ||
| 405 | - <artifactId>yudao-spring-boot-starter-flowable</artifactId> | ||
| 406 | - <version>${revision}</version> | ||
| 407 | - </dependency> | ||
| 408 | - <dependency> | ||
| 409 | <groupId>org.flowable</groupId> | 384 | <groupId>org.flowable</groupId> |
| 410 | <artifactId>flowable-spring-boot-starter-process</artifactId> | 385 | <artifactId>flowable-spring-boot-starter-process</artifactId> |
| 411 | <version>${flowable.version}</version> | 386 | <version>${flowable.version}</version> |
yudao-framework/pom.xml
| @@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
| 15 | <module>yudao-spring-boot-starter-redis</module> | 15 | <module>yudao-spring-boot-starter-redis</module> |
| 16 | <module>yudao-spring-boot-starter-web</module> | 16 | <module>yudao-spring-boot-starter-web</module> |
| 17 | <module>yudao-spring-boot-starter-security</module> | 17 | <module>yudao-spring-boot-starter-security</module> |
| 18 | + <module>yudao-spring-boot-starter-websocket</module> | ||
| 18 | 19 | ||
| 19 | <module>yudao-spring-boot-starter-monitor</module> | 20 | <module>yudao-spring-boot-starter-monitor</module> |
| 20 | <module>yudao-spring-boot-starter-protection</module> | 21 | <module>yudao-spring-boot-starter-protection</module> |
| @@ -25,16 +26,9 @@ | @@ -25,16 +26,9 @@ | ||
| 25 | <module>yudao-spring-boot-starter-test</module> | 26 | <module>yudao-spring-boot-starter-test</module> |
| 26 | 27 | ||
| 27 | <module>yudao-spring-boot-starter-biz-operatelog</module> | 28 | <module>yudao-spring-boot-starter-biz-operatelog</module> |
| 28 | - <module>yudao-spring-boot-starter-biz-dict</module> | ||
| 29 | - | ||
| 30 | - <module>yudao-spring-boot-starter-biz-pay</module> | ||
| 31 | <module>yudao-spring-boot-starter-biz-tenant</module> | 29 | <module>yudao-spring-boot-starter-biz-tenant</module> |
| 32 | <module>yudao-spring-boot-starter-biz-data-permission</module> | 30 | <module>yudao-spring-boot-starter-biz-data-permission</module> |
| 33 | <module>yudao-spring-boot-starter-biz-ip</module> | 31 | <module>yudao-spring-boot-starter-biz-ip</module> |
| 34 | - | ||
| 35 | - <module>yudao-spring-boot-starter-flowable</module> | ||
| 36 | - <module>yudao-spring-boot-starter-captcha</module> | ||
| 37 | - <module>yudao-spring-boot-starter-websocket</module> | ||
| 38 | </modules> | 32 | </modules> |
| 39 | 33 | ||
| 40 | <artifactId>yudao-framework</artifactId> | 34 | <artifactId>yudao-framework</artifactId> |
yudao-framework/yudao-spring-boot-starter-biz-dict/pom.xml deleted
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | -<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| 3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 4 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 5 | - <parent> | ||
| 6 | - <groupId>cn.iocoder.boot</groupId> | ||
| 7 | - <artifactId>yudao-framework</artifactId> | ||
| 8 | - <version>${revision}</version> | ||
| 9 | - </parent> | ||
| 10 | - <modelVersion>4.0.0</modelVersion> | ||
| 11 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 12 | - <packaging>jar</packaging> | ||
| 13 | - | ||
| 14 | - <name>${project.artifactId}</name> | ||
| 15 | - <description>字典类型、数据</description> | ||
| 16 | - <url>https://github.com/YunaiV/ruoyi-vue-pro</url> | ||
| 17 | - | ||
| 18 | - <dependencies> | ||
| 19 | - <dependency> | ||
| 20 | - <groupId>cn.iocoder.boot</groupId> | ||
| 21 | - <artifactId>yudao-common</artifactId> | ||
| 22 | - </dependency> | ||
| 23 | - | ||
| 24 | - <!-- Spring 核心 --> | ||
| 25 | - <dependency> | ||
| 26 | - <groupId>org.springframework.boot</groupId> | ||
| 27 | - <artifactId>spring-boot-starter</artifactId> | ||
| 28 | - </dependency> | ||
| 29 | - | ||
| 30 | - <!-- 业务组件 --> | ||
| 31 | - <dependency> | ||
| 32 | - <groupId>cn.iocoder.boot</groupId> | ||
| 33 | - <artifactId>yudao-module-system-api</artifactId> <!-- 需要使用它,进行 Token 的校验 --> | ||
| 34 | - <version>${revision}</version> | ||
| 35 | - </dependency> | ||
| 36 | - | ||
| 37 | - <!-- 工具类相关 --> | ||
| 38 | - <dependency> | ||
| 39 | - <groupId>com.google.guava</groupId> | ||
| 40 | - <artifactId>guava</artifactId> | ||
| 41 | - </dependency> | ||
| 42 | - | ||
| 43 | - <!-- Test 测试相关 --> | ||
| 44 | - <dependency> | ||
| 45 | - <groupId>cn.iocoder.boot</groupId> | ||
| 46 | - <artifactId>yudao-spring-boot-starter-test</artifactId> | ||
| 47 | - <scope>test</scope> | ||
| 48 | - </dependency> | ||
| 49 | - </dependencies> | ||
| 50 | -</project> |
yudao-framework/yudao-spring-boot-starter-biz-dict/src/main/java/cn/iocoder/yudao/framework/dict/core/package-info.java deleted
yudao-framework/yudao-spring-boot-starter-captcha/pom.xml deleted
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | -<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| 3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 4 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 5 | - <parent> | ||
| 6 | - <groupId>cn.iocoder.boot</groupId> | ||
| 7 | - <artifactId>yudao-framework</artifactId> | ||
| 8 | - <version>${revision}</version> | ||
| 9 | - </parent> | ||
| 10 | - <modelVersion>4.0.0</modelVersion> | ||
| 11 | - <artifactId>yudao-spring-boot-starter-captcha</artifactId> | ||
| 12 | - <packaging>jar</packaging> | ||
| 13 | - | ||
| 14 | - <name>${project.artifactId}</name> | ||
| 15 | - <description>验证码拓展 | ||
| 16 | - 1. 基于 aj-captcha 实现滑块验证码,文档:https://ajcaptcha.beliefteam.cn/captcha-doc/ | ||
| 17 | - </description> | ||
| 18 | - | ||
| 19 | - <dependencies> | ||
| 20 | - <dependency> | ||
| 21 | - <groupId>com.xingyuv</groupId> | ||
| 22 | - <artifactId>spring-boot-starter-captcha-plus</artifactId> | ||
| 23 | - </dependency> | ||
| 24 | - <!-- Spring 核心 --> | ||
| 25 | - <dependency> | ||
| 26 | - <groupId>org.springframework.boot</groupId> | ||
| 27 | - <artifactId>spring-boot-starter</artifactId> | ||
| 28 | - </dependency> | ||
| 29 | - | ||
| 30 | - <!-- DB 相关 --> | ||
| 31 | - <dependency> | ||
| 32 | - <groupId>cn.iocoder.boot</groupId> | ||
| 33 | - <artifactId>yudao-spring-boot-starter-redis</artifactId> | ||
| 34 | - </dependency> | ||
| 35 | - | ||
| 36 | - </dependencies> | ||
| 37 | - | ||
| 38 | -</project> |
yudao-framework/yudao-spring-boot-starter-captcha/src/main/java/cn/iocoder/yudao/framework/captcha/config/YudaoCaptchaConfiguration.java deleted
| 1 | -package cn.iocoder.yudao.framework.captcha.config; | ||
| 2 | - | ||
| 3 | -import cn.iocoder.yudao.framework.captcha.core.service.RedisCaptchaServiceImpl; | ||
| 4 | -import com.xingyuv.captcha.properties.AjCaptchaProperties; | ||
| 5 | -import com.xingyuv.captcha.service.CaptchaCacheService; | ||
| 6 | -import com.xingyuv.captcha.service.impl.CaptchaServiceFactory; | ||
| 7 | -import org.springframework.boot.autoconfigure.AutoConfiguration; | ||
| 8 | -import org.springframework.context.annotation.Bean; | ||
| 9 | -import org.springframework.data.redis.core.StringRedisTemplate; | ||
| 10 | - | ||
| 11 | -import jakarta.annotation.Resource; | ||
| 12 | - | ||
| 13 | -@AutoConfiguration | ||
| 14 | -public class YudaoCaptchaConfiguration { | ||
| 15 | - | ||
| 16 | - @Resource | ||
| 17 | - private StringRedisTemplate stringRedisTemplate; | ||
| 18 | - | ||
| 19 | - @Bean | ||
| 20 | - public CaptchaCacheService captchaCacheService(AjCaptchaProperties config) { | ||
| 21 | - // 缓存类型 redis/local/.... | ||
| 22 | - CaptchaCacheService ret = CaptchaServiceFactory.getCache(config.getCacheType().name()); | ||
| 23 | - if (ret instanceof RedisCaptchaServiceImpl) { | ||
| 24 | - ((RedisCaptchaServiceImpl) ret).setStringRedisTemplate(stringRedisTemplate); | ||
| 25 | - } | ||
| 26 | - return ret; | ||
| 27 | - } | ||
| 28 | - | ||
| 29 | -} |
yudao-framework/yudao-spring-boot-starter-captcha/src/main/java/cn/iocoder/yudao/framework/captcha/core/enums/CaptchaRedisKeyConstants.java deleted
| 1 | -package cn.iocoder.yudao.framework.captcha.core.enums; | ||
| 2 | - | ||
| 3 | -/** | ||
| 4 | - * 验证码 Redis Key 枚举类 | ||
| 5 | - * | ||
| 6 | - * @author 芋道源码 | ||
| 7 | - */ | ||
| 8 | -public interface CaptchaRedisKeyConstants { | ||
| 9 | - | ||
| 10 | - /** | ||
| 11 | - * 验证码的请求限流 | ||
| 12 | - * | ||
| 13 | - * KEY 格式:AJ.CAPTCHA.REQ.LIMIT-%s-%s | ||
| 14 | - * VALUE 数据类型:String // 例如说:验证失败 5 次,get 接口锁定 | ||
| 15 | - * 过期时间:60 秒 | ||
| 16 | - */ | ||
| 17 | - String AJ_CAPTCHA_REQ_LIMIT = "AJ.CAPTCHA.REQ.LIMIT-%s-%s"; | ||
| 18 | - | ||
| 19 | - /** | ||
| 20 | - * 验证码的坐标 | ||
| 21 | - * | ||
| 22 | - * KEY 格式:RUNNING:CAPTCHA:%s // AbstractCaptchaService.REDIS_CAPTCHA_KEY | ||
| 23 | - * VALUE 数据类型:String // PointVO.class {"secretKey":"PP1w2Frr2KEejD2m","x":162,"y":5} | ||
| 24 | - * 过期时间:120 秒 | ||
| 25 | - */ | ||
| 26 | - String AJ_CAPTCHA_RUNNING = "RUNNING:CAPTCHA:%s"; | ||
| 27 | - | ||
| 28 | -} |
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/META-INF/services/com.xingyuv.captcha.service.CaptchaCacheService deleted
| 1 | -cn.iocoder.yudao.framework.captcha.core.service.RedisCaptchaServiceImpl |
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports deleted
yudao-framework/yudao-spring-boot-starter-excel/pom.xml
| @@ -21,11 +21,17 @@ | @@ -21,11 +21,17 @@ | ||
| 21 | <artifactId>yudao-common</artifactId> | 21 | <artifactId>yudao-common</artifactId> |
| 22 | </dependency> | 22 | </dependency> |
| 23 | 23 | ||
| 24 | + <!-- Spring 核心 --> | ||
| 25 | + <dependency> | ||
| 26 | + <groupId>org.springframework.boot</groupId> | ||
| 27 | + <artifactId>spring-boot-starter</artifactId> | ||
| 28 | + </dependency> | ||
| 29 | + | ||
| 24 | <!-- 业务组件 --> | 30 | <!-- 业务组件 --> |
| 25 | <dependency> | 31 | <dependency> |
| 26 | <groupId>cn.iocoder.boot</groupId> | 32 | <groupId>cn.iocoder.boot</groupId> |
| 27 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 28 | - <optional>true</optional> <!-- 如果希望使用 @DictFormat 注解,需要引入该依赖 --> | 33 | + <artifactId>yudao-module-system-api</artifactId> <!-- 需要使用它,进行 Dict 的查询 --> |
| 34 | + <version>${revision}</version> | ||
| 29 | </dependency> | 35 | </dependency> |
| 30 | 36 | ||
| 31 | <!-- Web 相关 --> | 37 | <!-- Web 相关 --> |
| @@ -46,11 +52,24 @@ | @@ -46,11 +52,24 @@ | ||
| 46 | <groupId>com.alibaba</groupId> | 52 | <groupId>com.alibaba</groupId> |
| 47 | <artifactId>easyexcel</artifactId> | 53 | <artifactId>easyexcel</artifactId> |
| 48 | </dependency> | 54 | </dependency> |
| 55 | + | ||
| 56 | + <dependency> | ||
| 57 | + <groupId>com.google.guava</groupId> | ||
| 58 | + <artifactId>guava</artifactId> | ||
| 59 | + </dependency> | ||
| 60 | + | ||
| 49 | <dependency> | 61 | <dependency> |
| 50 | <groupId>cn.iocoder.boot</groupId> | 62 | <groupId>cn.iocoder.boot</groupId> |
| 51 | <artifactId>yudao-spring-boot-starter-biz-ip</artifactId> | 63 | <artifactId>yudao-spring-boot-starter-biz-ip</artifactId> |
| 52 | <optional>true</optional> <!-- 设置为 optional,只有在 AreaConvert 的时候使用 --> | 64 | <optional>true</optional> <!-- 设置为 optional,只有在 AreaConvert 的时候使用 --> |
| 53 | </dependency> | 65 | </dependency> |
| 66 | + | ||
| 67 | + <!-- Test 测试相关 --> | ||
| 68 | + <dependency> | ||
| 69 | + <groupId>cn.iocoder.boot</groupId> | ||
| 70 | + <artifactId>yudao-spring-boot-starter-test</artifactId> | ||
| 71 | + <scope>test</scope> | ||
| 72 | + </dependency> | ||
| 54 | </dependencies> | 73 | </dependencies> |
| 55 | 74 | ||
| 56 | </project> | 75 | </project> |
yudao-framework/yudao-spring-boot-starter-biz-dict/src/main/java/cn/iocoder/yudao/framework/dict/config/YudaoDictAutoConfiguration.java renamed to yudao-framework/yudao-spring-boot-starter-excel/src/main/java/cn/iocoder/yudao/framework/dict/config/YudaoDictAutoConfiguration.java
| 1 | package cn.iocoder.yudao.framework.dict.config; | 1 | package cn.iocoder.yudao.framework.dict.config; |
| 2 | 2 | ||
| 3 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 3 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 4 | import cn.iocoder.yudao.module.system.api.dict.DictDataApi; | 4 | import cn.iocoder.yudao.module.system.api.dict.DictDataApi; |
| 5 | import org.springframework.boot.autoconfigure.AutoConfiguration; | 5 | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| 6 | import org.springframework.context.annotation.Bean; | 6 | import org.springframework.context.annotation.Bean; |
yudao-framework/yudao-spring-boot-starter-biz-dict/src/main/java/cn/iocoder/yudao/framework/dict/package-info.java renamed to yudao-framework/yudao-spring-boot-starter-excel/src/main/java/cn/iocoder/yudao/framework/dict/package-info.java
yudao-framework/yudao-spring-boot-starter-biz-dict/src/main/java/cn/iocoder/yudao/framework/dict/core/util/DictFrameworkUtils.java renamed to yudao-framework/yudao-spring-boot-starter-excel/src/main/java/cn/iocoder/yudao/framework/dict/util/DictFrameworkUtils.java
| 1 | -package cn.iocoder.yudao.framework.dict.core.util; | 1 | +package cn.iocoder.yudao.framework.dict.util; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.ObjectUtil; | 3 | import cn.hutool.core.util.ObjectUtil; |
| 4 | import cn.iocoder.yudao.framework.common.core.KeyValue; | 4 | import cn.iocoder.yudao.framework.common.core.KeyValue; |
yudao-framework/yudao-spring-boot-starter-excel/src/main/java/cn/iocoder/yudao/framework/excel/core/convert/DictConvert.java
| 1 | package cn.iocoder.yudao.framework.excel.core.convert; | 1 | package cn.iocoder.yudao.framework.excel.core.convert; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.convert.Convert; | 3 | import cn.hutool.core.convert.Convert; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; | 5 | import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; |
| 6 | import com.alibaba.excel.converters.Converter; | 6 | import com.alibaba.excel.converters.Converter; |
| 7 | import com.alibaba.excel.enums.CellDataTypeEnum; | 7 | import com.alibaba.excel.enums.CellDataTypeEnum; |
yudao-framework/yudao-spring-boot-starter-biz-dict/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports renamed to yudao-framework/yudao-spring-boot-starter-excel/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
yudao-framework/yudao-spring-boot-starter-biz-dict/src/test/java/cn/iocoder/yudao/framework/dict/core/util/DictFrameworkUtilsTest.java renamed to yudao-framework/yudao-spring-boot-starter-excel/src/test/java/cn/iocoder/yudao/framework/dict/core/util/DictFrameworkUtilsTest.java
| 1 | package cn.iocoder.yudao.framework.dict.core.util; | 1 | package cn.iocoder.yudao.framework.dict.core.util; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | 3 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; | ||
| 4 | import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest; | 5 | import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest; |
| 5 | import cn.iocoder.yudao.module.system.api.dict.DictDataApi; | 6 | import cn.iocoder.yudao.module.system.api.dict.DictDataApi; |
| 6 | import cn.iocoder.yudao.module.system.api.dict.dto.DictDataRespDTO; | 7 | import cn.iocoder.yudao.module.system.api.dict.dto.DictDataRespDTO; |
| @@ -31,6 +32,7 @@ public class DictFrameworkUtilsTest extends BaseMockitoUnitTest { | @@ -31,6 +32,7 @@ public class DictFrameworkUtilsTest extends BaseMockitoUnitTest { | ||
| 31 | DictDataRespDTO dataRespDTO = randomPojo(DictDataRespDTO.class, o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus())); | 32 | DictDataRespDTO dataRespDTO = randomPojo(DictDataRespDTO.class, o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus())); |
| 32 | // mock 方法 | 33 | // mock 方法 |
| 33 | when(dictDataApi.getDictData(dataRespDTO.getDictType(), dataRespDTO.getValue())).thenReturn(dataRespDTO); | 34 | when(dictDataApi.getDictData(dataRespDTO.getDictType(), dataRespDTO.getValue())).thenReturn(dataRespDTO); |
| 35 | + | ||
| 34 | // 断言返回值 | 36 | // 断言返回值 |
| 35 | assertEquals(dataRespDTO.getLabel(), DictFrameworkUtils.getDictDataLabel(dataRespDTO.getDictType(), dataRespDTO.getValue())); | 37 | assertEquals(dataRespDTO.getLabel(), DictFrameworkUtils.getDictDataLabel(dataRespDTO.getDictType(), dataRespDTO.getValue())); |
| 36 | } | 38 | } |
| @@ -41,6 +43,7 @@ public class DictFrameworkUtilsTest extends BaseMockitoUnitTest { | @@ -41,6 +43,7 @@ public class DictFrameworkUtilsTest extends BaseMockitoUnitTest { | ||
| 41 | DictDataRespDTO resp = randomPojo(DictDataRespDTO.class, o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus())); | 43 | DictDataRespDTO resp = randomPojo(DictDataRespDTO.class, o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus())); |
| 42 | // mock 方法 | 44 | // mock 方法 |
| 43 | when(dictDataApi.parseDictData(resp.getDictType(), resp.getLabel())).thenReturn(resp); | 45 | when(dictDataApi.parseDictData(resp.getDictType(), resp.getLabel())).thenReturn(resp); |
| 46 | + | ||
| 44 | // 断言返回值 | 47 | // 断言返回值 |
| 45 | assertEquals(resp.getValue(), DictFrameworkUtils.parseDictDataValue(resp.getDictType(), resp.getLabel())); | 48 | assertEquals(resp.getValue(), DictFrameworkUtils.parseDictDataValue(resp.getDictType(), resp.getLabel())); |
| 46 | } | 49 | } |
yudao-module-bpm/pom.xml
| @@ -11,6 +11,7 @@ | @@ -11,6 +11,7 @@ | ||
| 11 | <modules> | 11 | <modules> |
| 12 | <module>yudao-module-bpm-api</module> | 12 | <module>yudao-module-bpm-api</module> |
| 13 | <module>yudao-module-bpm-biz</module> | 13 | <module>yudao-module-bpm-biz</module> |
| 14 | + <module>yudao-spring-boot-starter-flowable</module> | ||
| 14 | </modules> | 15 | </modules> |
| 15 | <artifactId>yudao-module-bpm</artifactId> | 16 | <artifactId>yudao-module-bpm</artifactId> |
| 16 | <packaging>pom</packaging> | 17 | <packaging>pom</packaging> |
yudao-module-bpm/yudao-module-bpm-biz/pom.xml
| @@ -63,10 +63,12 @@ | @@ -63,10 +63,12 @@ | ||
| 63 | <groupId>cn.iocoder.boot</groupId> | 63 | <groupId>cn.iocoder.boot</groupId> |
| 64 | <artifactId>yudao-spring-boot-starter-test</artifactId> | 64 | <artifactId>yudao-spring-boot-starter-test</artifactId> |
| 65 | </dependency> | 65 | </dependency> |
| 66 | + | ||
| 66 | <!-- 工作流相关 --> | 67 | <!-- 工作流相关 --> |
| 67 | <dependency> | 68 | <dependency> |
| 68 | <groupId>cn.iocoder.boot</groupId> | 69 | <groupId>cn.iocoder.boot</groupId> |
| 69 | <artifactId>yudao-spring-boot-starter-flowable</artifactId> | 70 | <artifactId>yudao-spring-boot-starter-flowable</artifactId> |
| 71 | + <version>${revision}</version> | ||
| 70 | </dependency> | 72 | </dependency> |
| 71 | </dependencies> | 73 | </dependencies> |
| 72 | </project> | 74 | </project> |
yudao-framework/yudao-spring-boot-starter-flowable/pom.xml renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/pom.xml
| @@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <parent> | 5 | <parent> |
| 6 | - <artifactId>yudao-framework</artifactId> | ||
| 7 | <groupId>cn.iocoder.boot</groupId> | 6 | <groupId>cn.iocoder.boot</groupId> |
| 7 | + <artifactId>yudao-module-bpm</artifactId> | ||
| 8 | <version>${revision}</version> | 8 | <version>${revision}</version> |
| 9 | </parent> | 9 | </parent> |
| 10 | <modelVersion>4.0.0</modelVersion> | 10 | <modelVersion>4.0.0</modelVersion> |
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/config/YudaoFlowableConfiguration.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/config/YudaoFlowableConfiguration.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/context/FlowableContextHolder.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/context/FlowableContextHolder.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/enums/BpmnModelConstants.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/enums/BpmnModelConstants.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/package-info.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/package-info.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/util/BpmnModelUtils.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/util/BpmnModelUtils.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/util/FlowableUtils.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/util/FlowableUtils.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/web/FlowableWebFilter.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/core/web/FlowableWebFilter.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/package-info.java renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/java/cn/iocoder/yudao/framework/flowable/package-info.java
yudao-framework/yudao-spring-boot-starter-flowable/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports renamed to yudao-module-bpm/yudao-spring-boot-starter-flowable/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
yudao-module-crm/yudao-module-crm-biz/pom.xml
| @@ -69,10 +69,6 @@ | @@ -69,10 +69,6 @@ | ||
| 69 | <groupId>cn.iocoder.boot</groupId> | 69 | <groupId>cn.iocoder.boot</groupId> |
| 70 | <artifactId>yudao-spring-boot-starter-excel</artifactId> | 70 | <artifactId>yudao-spring-boot-starter-excel</artifactId> |
| 71 | </dependency> | 71 | </dependency> |
| 72 | - <dependency> | ||
| 73 | - <groupId>cn.iocoder.boot</groupId> | ||
| 74 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 75 | - </dependency> | ||
| 76 | 72 | ||
| 77 | <!-- Test 测试相关 --> | 73 | <!-- Test 测试相关 --> |
| 78 | <dependency> | 74 | <dependency> |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/CrmCustomerIndustryParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import com.mzt.logapi.service.IParseFunction; | 5 | import com.mzt.logapi.service.IParseFunction; |
| 6 | import lombok.extern.slf4j.Slf4j; | 6 | import lombok.extern.slf4j.Slf4j; |
| 7 | import org.springframework.stereotype.Component; | 7 | import org.springframework.stereotype.Component; |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/CrmCustomerLevelParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import com.mzt.logapi.service.IParseFunction; | 5 | import com.mzt.logapi.service.IParseFunction; |
| 6 | import lombok.extern.slf4j.Slf4j; | 6 | import lombok.extern.slf4j.Slf4j; |
| 7 | import org.springframework.stereotype.Component; | 7 | import org.springframework.stereotype.Component; |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/CrmCustomerSourceParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import com.mzt.logapi.service.IParseFunction; | 5 | import com.mzt.logapi.service.IParseFunction; |
| 6 | import lombok.extern.slf4j.Slf4j; | 6 | import lombok.extern.slf4j.Slf4j; |
| 7 | import org.springframework.stereotype.Component; | 7 | import org.springframework.stereotype.Component; |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/CrmProductStatusParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.module.crm.enums.DictTypeConstants; | 5 | import cn.iocoder.yudao.module.crm.enums.DictTypeConstants; |
| 6 | import com.mzt.logapi.service.IParseFunction; | 6 | import com.mzt.logapi.service.IParseFunction; |
| 7 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/CrmProductUnitParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.module.crm.enums.DictTypeConstants; | 5 | import cn.iocoder.yudao.module.crm.enums.DictTypeConstants; |
| 6 | import com.mzt.logapi.service.IParseFunction; | 6 | import com.mzt.logapi.service.IParseFunction; |
| 7 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/CrmReceivableReturnTypeParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import com.mzt.logapi.service.IParseFunction; | 5 | import com.mzt.logapi.service.IParseFunction; |
| 6 | import lombok.extern.slf4j.Slf4j; | 6 | import lombok.extern.slf4j.Slf4j; |
| 7 | import org.springframework.stereotype.Component; | 7 | import org.springframework.stereotype.Component; |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/SysBooleanParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.module.infra.enums.DictTypeConstants; | 5 | import cn.iocoder.yudao.module.infra.enums.DictTypeConstants; |
| 6 | import com.mzt.logapi.service.IParseFunction; | 6 | import com.mzt.logapi.service.IParseFunction; |
| 7 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/framework/operatelog/core/SysSexParseFunction.java
| 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.crm.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.module.system.enums.DictTypeConstants; | 5 | import cn.iocoder.yudao.module.system.enums.DictTypeConstants; |
| 6 | import com.mzt.logapi.service.IParseFunction; | 6 | import com.mzt.logapi.service.IParseFunction; |
| 7 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
yudao-module-erp/yudao-module-erp-biz/pom.xml
| @@ -61,10 +61,6 @@ | @@ -61,10 +61,6 @@ | ||
| 61 | <groupId>cn.iocoder.boot</groupId> | 61 | <groupId>cn.iocoder.boot</groupId> |
| 62 | <artifactId>yudao-spring-boot-starter-excel</artifactId> | 62 | <artifactId>yudao-spring-boot-starter-excel</artifactId> |
| 63 | </dependency> | 63 | </dependency> |
| 64 | - <dependency> | ||
| 65 | - <groupId>cn.iocoder.boot</groupId> | ||
| 66 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 67 | - </dependency> | ||
| 68 | 64 | ||
| 69 | <!-- Test 测试相关 --> | 65 | <!-- Test 测试相关 --> |
| 70 | <dependency> | 66 | <dependency> |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/file/erweima.jpg
yudao-module-mall/yudao-module-product-biz/pom.xml
| @@ -34,10 +34,6 @@ | @@ -34,10 +34,6 @@ | ||
| 34 | <groupId>cn.iocoder.boot</groupId> | 34 | <groupId>cn.iocoder.boot</groupId> |
| 35 | <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId> | 35 | <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId> |
| 36 | </dependency> | 36 | </dependency> |
| 37 | - <dependency> | ||
| 38 | - <groupId>cn.iocoder.boot</groupId> | ||
| 39 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 40 | - </dependency> | ||
| 41 | 37 | ||
| 42 | <!-- Web 相关 --> | 38 | <!-- Web 相关 --> |
| 43 | <dependency> | 39 | <dependency> |
yudao-module-mall/yudao-module-promotion-biz/pom.xml
| @@ -77,10 +77,6 @@ | @@ -77,10 +77,6 @@ | ||
| 77 | <groupId>cn.iocoder.boot</groupId> | 77 | <groupId>cn.iocoder.boot</groupId> |
| 78 | <artifactId>yudao-spring-boot-starter-excel</artifactId> | 78 | <artifactId>yudao-spring-boot-starter-excel</artifactId> |
| 79 | </dependency> | 79 | </dependency> |
| 80 | - <dependency> | ||
| 81 | - <groupId>cn.iocoder.boot</groupId> | ||
| 82 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 83 | - </dependency> | ||
| 84 | </dependencies> | 80 | </dependencies> |
| 85 | 81 | ||
| 86 | </project> | 82 | </project> |
yudao-module-mall/yudao-module-statistics-biz/pom.xml
| @@ -90,10 +90,6 @@ | @@ -90,10 +90,6 @@ | ||
| 90 | <groupId>cn.iocoder.boot</groupId> | 90 | <groupId>cn.iocoder.boot</groupId> |
| 91 | <artifactId>yudao-spring-boot-starter-excel</artifactId> | 91 | <artifactId>yudao-spring-boot-starter-excel</artifactId> |
| 92 | </dependency> | 92 | </dependency> |
| 93 | - <dependency> | ||
| 94 | - <groupId>cn.iocoder.boot</groupId> | ||
| 95 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 96 | - </dependency> | ||
| 97 | </dependencies> | 93 | </dependencies> |
| 98 | 94 | ||
| 99 | </project> | 95 | </project> |
yudao-module-mall/yudao-module-trade-biz/pom.xml
| @@ -74,12 +74,6 @@ | @@ -74,12 +74,6 @@ | ||
| 74 | <artifactId>yudao-spring-boot-starter-security</artifactId> | 74 | <artifactId>yudao-spring-boot-starter-security</artifactId> |
| 75 | </dependency> | 75 | </dependency> |
| 76 | 76 | ||
| 77 | - <!-- TODO 芋艿:引入依赖要优化下: --> | ||
| 78 | - <dependency> | ||
| 79 | - <groupId>cn.iocoder.boot</groupId> | ||
| 80 | - <artifactId>yudao-spring-boot-starter-biz-pay</artifactId> | ||
| 81 | - </dependency> | ||
| 82 | - | ||
| 83 | <!-- DB 相关 --> | 77 | <!-- DB 相关 --> |
| 84 | <dependency> | 78 | <dependency> |
| 85 | <groupId>cn.iocoder.boot</groupId> | 79 | <groupId>cn.iocoder.boot</groupId> |
| @@ -102,11 +96,6 @@ | @@ -102,11 +96,6 @@ | ||
| 102 | <groupId>cn.iocoder.boot</groupId> | 96 | <groupId>cn.iocoder.boot</groupId> |
| 103 | <artifactId>yudao-spring-boot-starter-excel</artifactId> | 97 | <artifactId>yudao-spring-boot-starter-excel</artifactId> |
| 104 | </dependency> | 98 | </dependency> |
| 105 | - <dependency> | ||
| 106 | - <groupId>cn.iocoder.boot</groupId> | ||
| 107 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 108 | - </dependency> | ||
| 109 | - | ||
| 110 | </dependencies> | 99 | </dependencies> |
| 111 | 100 | ||
| 112 | </project> | 101 | </project> |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/brokerage/BrokerageWithdrawConvert.java
| 1 | package cn.iocoder.yudao.module.trade.convert.brokerage; | 1 | package cn.iocoder.yudao.module.trade.convert.brokerage; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO; | 5 | import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO; |
| 6 | import cn.iocoder.yudao.module.trade.controller.admin.brokerage.vo.withdraw.BrokerageWithdrawPageReqVO; | 6 | import cn.iocoder.yudao.module.trade.controller.admin.brokerage.vo.withdraw.BrokerageWithdrawPageReqVO; |
| 7 | import cn.iocoder.yudao.module.trade.controller.admin.brokerage.vo.withdraw.BrokerageWithdrawRespVO; | 7 | import cn.iocoder.yudao.module.trade.controller.admin.brokerage.vo.withdraw.BrokerageWithdrawRespVO; |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/order/TradeOrderConvert.java
| @@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil; | @@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil; | ||
| 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; | 6 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; |
| 7 | import cn.iocoder.yudao.framework.common.util.string.StrUtils; | 7 | import cn.iocoder.yudao.framework.common.util.string.StrUtils; |
| 8 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 8 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 9 | import cn.iocoder.yudao.framework.ip.core.utils.AreaUtils; | 9 | import cn.iocoder.yudao.framework.ip.core.utils.AreaUtils; |
| 10 | import cn.iocoder.yudao.module.member.api.address.dto.MemberAddressRespDTO; | 10 | import cn.iocoder.yudao.module.member.api.address.dto.MemberAddressRespDTO; |
| 11 | import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO; | 11 | import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO; |
yudao-module-pay/pom.xml
| @@ -13,6 +13,7 @@ | @@ -13,6 +13,7 @@ | ||
| 13 | <modules> | 13 | <modules> |
| 14 | <module>yudao-module-pay-api</module> | 14 | <module>yudao-module-pay-api</module> |
| 15 | <module>yudao-module-pay-biz</module> | 15 | <module>yudao-module-pay-biz</module> |
| 16 | + <module>yudao-spring-boot-starter-biz-pay</module> | ||
| 16 | </modules> | 17 | </modules> |
| 17 | 18 | ||
| 18 | <name>${project.artifactId}</name> | 19 | <name>${project.artifactId}</name> |
| @@ -21,5 +22,4 @@ | @@ -21,5 +22,4 @@ | ||
| 21 | 例如说:商户、应用、支付、退款等等 | 22 | 例如说:商户、应用、支付、退款等等 |
| 22 | </description> | 23 | </description> |
| 23 | 24 | ||
| 24 | - | ||
| 25 | </project> | 25 | </project> |
yudao-module-pay/yudao-module-pay-biz/pom.xml
| @@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <parent> | 5 | <parent> |
| 6 | - <artifactId>yudao-module-pay</artifactId> | ||
| 7 | <groupId>cn.iocoder.boot</groupId> | 6 | <groupId>cn.iocoder.boot</groupId> |
| 7 | + <artifactId>yudao-module-pay</artifactId> | ||
| 8 | <version>${revision}</version> | 8 | <version>${revision}</version> |
| 9 | </parent> | 9 | </parent> |
| 10 | <modelVersion>4.0.0</modelVersion> | 10 | <modelVersion>4.0.0</modelVersion> |
| @@ -37,6 +37,7 @@ | @@ -37,6 +37,7 @@ | ||
| 37 | <dependency> | 37 | <dependency> |
| 38 | <groupId>cn.iocoder.boot</groupId> | 38 | <groupId>cn.iocoder.boot</groupId> |
| 39 | <artifactId>yudao-spring-boot-starter-biz-pay</artifactId> | 39 | <artifactId>yudao-spring-boot-starter-biz-pay</artifactId> |
| 40 | + <version>${revision}</version> | ||
| 40 | </dependency> | 41 | </dependency> |
| 41 | <dependency> | 42 | <dependency> |
| 42 | <groupId>cn.iocoder.boot</groupId> | 43 | <groupId>cn.iocoder.boot</groupId> |
| @@ -78,11 +79,6 @@ | @@ -78,11 +79,6 @@ | ||
| 78 | <groupId>cn.iocoder.boot</groupId> | 79 | <groupId>cn.iocoder.boot</groupId> |
| 79 | <artifactId>yudao-spring-boot-starter-excel</artifactId> | 80 | <artifactId>yudao-spring-boot-starter-excel</artifactId> |
| 80 | </dependency> | 81 | </dependency> |
| 81 | - <dependency> | ||
| 82 | - <groupId>cn.iocoder.boot</groupId> | ||
| 83 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 84 | - </dependency> | ||
| 85 | - | ||
| 86 | </dependencies> | 82 | </dependencies> |
| 87 | 83 | ||
| 88 | </project> | 84 | </project> |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/convert/wallet/PayWalletRechargeConvert.java
| 1 | package cn.iocoder.yudao.module.pay.convert.wallet; | 1 | package cn.iocoder.yudao.module.pay.convert.wallet; |
| 2 | 2 | ||
| 3 | -import cn.hutool.core.collection.CollUtil; | ||
| 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; | 4 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; |
| 6 | import cn.iocoder.yudao.framework.common.util.collection.MapUtils; | 5 | import cn.iocoder.yudao.framework.common.util.collection.MapUtils; |
| 7 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; | 6 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| 8 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 7 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 9 | import cn.iocoder.yudao.module.pay.controller.app.wallet.vo.recharge.AppPayWalletRechargeCreateRespVO; | 8 | import cn.iocoder.yudao.module.pay.controller.app.wallet.vo.recharge.AppPayWalletRechargeCreateRespVO; |
| 10 | import cn.iocoder.yudao.module.pay.controller.app.wallet.vo.recharge.AppPayWalletRechargeRespVO; | 9 | import cn.iocoder.yudao.module.pay.controller.app.wallet.vo.recharge.AppPayWalletRechargeRespVO; |
| 11 | import cn.iocoder.yudao.module.pay.dal.dataobject.order.PayOrderDO; | 10 | import cn.iocoder.yudao.module.pay.dal.dataobject.order.PayOrderDO; |
yudao-framework/yudao-spring-boot-starter-biz-pay/pom.xml renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/pom.xml
| @@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <parent> | 5 | <parent> |
| 6 | - <artifactId>yudao-framework</artifactId> | ||
| 7 | <groupId>cn.iocoder.boot</groupId> | 6 | <groupId>cn.iocoder.boot</groupId> |
| 7 | + <artifactId>yudao-module-pay</artifactId> | ||
| 8 | <version>${revision}</version> | 8 | <version>${revision}</version> |
| 9 | </parent> | 9 | </parent> |
| 10 | <modelVersion>4.0.0</modelVersion> | 10 | <modelVersion>4.0.0</modelVersion> |
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/config/YudaoPayAutoConfiguration.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/config/YudaoPayAutoConfiguration.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/PayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/PayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/PayClientConfig.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/PayClientConfig.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/PayClientFactory.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/PayClientFactory.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/order/PayOrderRespDTO.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/order/PayOrderRespDTO.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/order/PayOrderUnifiedReqDTO.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/order/PayOrderUnifiedReqDTO.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/refund/PayRefundRespDTO.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/refund/PayRefundRespDTO.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/refund/PayRefundUnifiedReqDTO.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/refund/PayRefundUnifiedReqDTO.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/transfer/PayTransferRespDTO.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/transfer/PayTransferRespDTO.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/transfer/PayTransferUnifiedReqDTO.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/dto/transfer/PayTransferUnifiedReqDTO.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/exception/PayException.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/exception/PayException.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/AbstractPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/AbstractPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/NonePayClientConfig.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/NonePayClientConfig.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/PayClientFactoryImpl.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/PayClientFactoryImpl.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AbstractAlipayPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AbstractAlipayPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayAppPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayAppPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayBarPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayBarPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPayClientConfig.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPayClientConfig.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayQrPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayQrPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayWapPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayWapPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/mock/MockPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/mock/MockPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/AbstractWxPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/AbstractWxPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxAppPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxAppPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxBarPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxBarPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxLitePayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxLitePayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxNativePayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxNativePayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxPayClientConfig.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxPayClientConfig.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxPubPayClient.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxPubPayClient.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/channel/PayChannelEnum.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/channel/PayChannelEnum.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/order/PayOrderDisplayModeEnum.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/order/PayOrderDisplayModeEnum.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/order/PayOrderStatusRespEnum.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/order/PayOrderStatusRespEnum.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/refund/PayRefundStatusRespEnum.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/refund/PayRefundStatusRespEnum.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/transfer/PayTransferStatusRespEnum.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/transfer/PayTransferStatusRespEnum.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/transfer/PayTransferTypeEnum.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/enums/transfer/PayTransferTypeEnum.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/PayClientFactoryImplIntegrationTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/PayClientFactoryImplIntegrationTest.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AbstractAlipayClientTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AbstractAlipayClientTest.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayBarPayClientTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayBarPayClientTest.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClientTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClientTest.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayQrPayClientTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayQrPayClientTest.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayWapPayClientTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayWapPayClientTest.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxBarPayClientIntegrationTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxBarPayClientIntegrationTest.java
yudao-framework/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxNativePayClientIntegrationTest.java renamed to yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/test/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxNativePayClientIntegrationTest.java
yudao-module-system/yudao-module-system-biz/pom.xml
| @@ -36,10 +36,6 @@ | @@ -36,10 +36,6 @@ | ||
| 36 | </dependency> | 36 | </dependency> |
| 37 | <dependency> | 37 | <dependency> |
| 38 | <groupId>cn.iocoder.boot</groupId> | 38 | <groupId>cn.iocoder.boot</groupId> |
| 39 | - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | ||
| 40 | - </dependency> | ||
| 41 | - <dependency> | ||
| 42 | - <groupId>cn.iocoder.boot</groupId> | ||
| 43 | <artifactId>yudao-spring-boot-starter-biz-data-permission</artifactId> | 39 | <artifactId>yudao-spring-boot-starter-biz-data-permission</artifactId> |
| 44 | </dependency> | 40 | </dependency> |
| 45 | <dependency> | 41 | <dependency> |
| @@ -99,11 +95,6 @@ | @@ -99,11 +95,6 @@ | ||
| 99 | </dependency> | 95 | </dependency> |
| 100 | 96 | ||
| 101 | <dependency> | 97 | <dependency> |
| 102 | - <groupId>cn.iocoder.boot</groupId> | ||
| 103 | - <artifactId>yudao-spring-boot-starter-captcha</artifactId> | ||
| 104 | - </dependency> | ||
| 105 | - | ||
| 106 | - <dependency> | ||
| 107 | <groupId>org.springframework.boot</groupId> | 98 | <groupId>org.springframework.boot</groupId> |
| 108 | <artifactId>spring-boot-starter-mail</artifactId> | 99 | <artifactId>spring-boot-starter-mail</artifactId> |
| 109 | </dependency> | 100 | </dependency> |
| @@ -135,6 +126,11 @@ | @@ -135,6 +126,11 @@ | ||
| 135 | <groupId>com.tencentcloudapi</groupId> | 126 | <groupId>com.tencentcloudapi</groupId> |
| 136 | <artifactId>tencentcloud-sdk-java-sms</artifactId> <!-- 短信(腾讯云) --> | 127 | <artifactId>tencentcloud-sdk-java-sms</artifactId> <!-- 短信(腾讯云) --> |
| 137 | </dependency> | 128 | </dependency> |
| 129 | + | ||
| 130 | + <dependency> | ||
| 131 | + <groupId>com.xingyuv</groupId> | ||
| 132 | + <artifactId>spring-boot-starter-captcha-plus</artifactId> <!-- 验证码,一般用于登录使用 --> | ||
| 133 | + </dependency> | ||
| 138 | </dependencies> | 134 | </dependencies> |
| 139 | 135 | ||
| 140 | </project> | 136 | </project> |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/framework/captcha/config/YudaoCaptchaConfiguration.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.system.framework.captcha.config; | ||
| 2 | + | ||
| 3 | +import cn.iocoder.yudao.module.system.framework.captcha.core.RedisCaptchaServiceImpl; | ||
| 4 | +import com.xingyuv.captcha.properties.AjCaptchaProperties; | ||
| 5 | +import com.xingyuv.captcha.service.CaptchaCacheService; | ||
| 6 | +import com.xingyuv.captcha.service.impl.CaptchaServiceFactory; | ||
| 7 | +import org.springframework.context.annotation.Bean; | ||
| 8 | +import org.springframework.context.annotation.Configuration; | ||
| 9 | +import org.springframework.data.redis.core.StringRedisTemplate; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * 验证码的配置类 | ||
| 13 | + * | ||
| 14 | + * @author 芋道源码 | ||
| 15 | + */ | ||
| 16 | +@Configuration(proxyBeanMethods = false) | ||
| 17 | +public class YudaoCaptchaConfiguration { | ||
| 18 | + | ||
| 19 | + @Bean | ||
| 20 | + public CaptchaCacheService captchaCacheService(AjCaptchaProperties config, | ||
| 21 | + StringRedisTemplate stringRedisTemplate) { | ||
| 22 | + CaptchaCacheService captchaCacheService = CaptchaServiceFactory.getCache(config.getCacheType().name()); | ||
| 23 | + if (captchaCacheService instanceof RedisCaptchaServiceImpl) { | ||
| 24 | + ((RedisCaptchaServiceImpl) captchaCacheService).setStringRedisTemplate(stringRedisTemplate); | ||
| 25 | + } | ||
| 26 | + return captchaCacheService; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | +} |
yudao-framework/yudao-spring-boot-starter-captcha/src/main/java/cn/iocoder/yudao/framework/captcha/core/service/RedisCaptchaServiceImpl.java renamed to yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/framework/captcha/core/RedisCaptchaServiceImpl.java
| 1 | -package cn.iocoder.yudao.framework.captcha.core.service; | 1 | +package cn.iocoder.yudao.module.system.framework.captcha.core; |
| 2 | 2 | ||
| 3 | import com.xingyuv.captcha.service.CaptchaCacheService; | 3 | import com.xingyuv.captcha.service.CaptchaCacheService; |
| 4 | -import lombok.AllArgsConstructor; | ||
| 5 | -import lombok.NoArgsConstructor; | 4 | +import lombok.Setter; |
| 6 | import org.springframework.data.redis.core.StringRedisTemplate; | 5 | import org.springframework.data.redis.core.StringRedisTemplate; |
| 7 | 6 | ||
| 8 | -import jakarta.annotation.Resource; | ||
| 9 | import java.util.concurrent.TimeUnit; | 7 | import java.util.concurrent.TimeUnit; |
| 10 | 8 | ||
| 11 | /** | 9 | /** |
| @@ -13,11 +11,9 @@ import java.util.concurrent.TimeUnit; | @@ -13,11 +11,9 @@ import java.util.concurrent.TimeUnit; | ||
| 13 | * | 11 | * |
| 14 | * @author 星语 | 12 | * @author 星语 |
| 15 | */ | 13 | */ |
| 16 | -@NoArgsConstructor // 保证 aj-captcha 的 SPI 创建 | ||
| 17 | -@AllArgsConstructor | 14 | +@Setter |
| 18 | public class RedisCaptchaServiceImpl implements CaptchaCacheService { | 15 | public class RedisCaptchaServiceImpl implements CaptchaCacheService { |
| 19 | 16 | ||
| 20 | - @Resource // 保证 aj-captcha 的 SPI 创建时的注入 | ||
| 21 | private StringRedisTemplate stringRedisTemplate; | 17 | private StringRedisTemplate stringRedisTemplate; |
| 22 | 18 | ||
| 23 | @Override | 19 | @Override |
| @@ -25,10 +21,6 @@ public class RedisCaptchaServiceImpl implements CaptchaCacheService { | @@ -25,10 +21,6 @@ public class RedisCaptchaServiceImpl implements CaptchaCacheService { | ||
| 25 | return "redis"; | 21 | return "redis"; |
| 26 | } | 22 | } |
| 27 | 23 | ||
| 28 | - public void setStringRedisTemplate(StringRedisTemplate stringRedisTemplate) { | ||
| 29 | - this.stringRedisTemplate = stringRedisTemplate; | ||
| 30 | - } | ||
| 31 | - | ||
| 32 | @Override | 24 | @Override |
| 33 | public void set(String key, String value, long expiresInSeconds) { | 25 | public void set(String key, String value, long expiresInSeconds) { |
| 34 | stringRedisTemplate.opsForValue().set(key, value, expiresInSeconds, TimeUnit.SECONDS); | 26 | stringRedisTemplate.opsForValue().set(key, value, expiresInSeconds, TimeUnit.SECONDS); |
yudao-framework/yudao-spring-boot-starter-captcha/src/main/java/cn/iocoder/yudao/framework/captcha/package-info.java renamed to yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/framework/captcha/package-info.java
| 1 | /** | 1 | /** |
| 2 | * 验证码拓展 | 2 | * 验证码拓展 |
| 3 | - * 1. 基于 aj-captcha 实现滑块验证码,文档:https://ajcaptcha.beliefteam.cn/captcha-doc/ | 3 | + * |
| 4 | + * 基于 aj-captcha 实现滑块验证码,文档:https://ajcaptcha.beliefteam.cn/captcha-doc/ | ||
| 4 | * | 5 | * |
| 5 | * @author 星语 | 6 | * @author 星语 |
| 6 | */ | 7 | */ |
| 7 | -package cn.iocoder.yudao.framework.captcha; | 8 | +package cn.iocoder.yudao.module.system.framework.captcha; |
| 8 | \ No newline at end of file | 9 | \ No newline at end of file |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/framework/operatelog/core/BooleanParseFunction.java
| 1 | package cn.iocoder.yudao.module.system.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.system.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.module.infra.enums.DictTypeConstants; | 5 | import cn.iocoder.yudao.module.infra.enums.DictTypeConstants; |
| 6 | import com.mzt.logapi.service.IParseFunction; | 6 | import com.mzt.logapi.service.IParseFunction; |
| 7 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/framework/operatelog/core/SexParseFunction.java
| 1 | package cn.iocoder.yudao.module.system.framework.operatelog.core; | 1 | package cn.iocoder.yudao.module.system.framework.operatelog.core; |
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | -import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | 4 | +import cn.iocoder.yudao.framework.dict.util.DictFrameworkUtils; |
| 5 | import cn.iocoder.yudao.module.system.enums.DictTypeConstants; | 5 | import cn.iocoder.yudao.module.system.enums.DictTypeConstants; |
| 6 | import com.mzt.logapi.service.IParseFunction; | 6 | import com.mzt.logapi.service.IParseFunction; |
| 7 | import lombok.extern.slf4j.Slf4j; | 7 | import lombok.extern.slf4j.Slf4j; |
yudao-module-system/yudao-module-system-biz/src/main/resources/META-INF/services/com.xingyuv.captcha.service.CaptchaCacheService
0 → 100644
| 1 | +cn.iocoder.yudao.module.system.framework.captcha.core.RedisCaptchaServiceImpl |
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg1.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg1.png
17.4 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg2.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg2.png
28.1 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg3.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg3.png
25.2 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg4.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg4.png
27.2 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg5.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg5.png
23.5 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg6.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg6.png
18.7 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg7.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg7.png
20.9 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg8.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg8.png
29.6 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/original/bg9.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/original/bg9.png
26.3 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/1.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/1.png
2.11 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/10.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/10.png
1.62 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/11.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/11.png
1.62 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/12.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/12.png
1.62 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/13.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/13.png
1.83 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/14.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/14.png
1.83 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/15.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/15.png
1.83 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/16.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/16.png
1.79 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/17.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/17.png
1.8 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/18.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/18.png
1.79 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/19.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/19.png
1.79 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/8.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/8.png
1.62 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/11/9.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/11/9.png
1.62 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/2.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/2.png
2.24 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/3.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/3.png
2.19 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/jigsaw/slidingBlock/4.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/jigsaw/slidingBlock/4.png
2.2 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg1.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg1.png
23.5 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg10.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg10.png
27.2 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg2.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg2.png
27.7 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg3.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg3.png
22.9 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg4.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg4.png
24.8 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg5.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg5.png
16 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg6.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg6.png
23.1 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg7.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg7.png
25.5 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg8.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg8.png
26.6 KB
yudao-framework/yudao-spring-boot-starter-captcha/src/main/resources/images/pic-click/bg9.png renamed to yudao-module-system/yudao-module-system-biz/src/main/resources/images/pic-click/bg9.png
29.2 KB
yudao-module-system/yudao-module-system-biz/src/test/java/cn/iocoder/yudao/module/system/service/auth/AdminAuthServiceImplTest.java
| @@ -207,8 +207,8 @@ public class AdminAuthServiceImplTest extends BaseDbUnitTest { | @@ -207,8 +207,8 @@ public class AdminAuthServiceImplTest extends BaseDbUnitTest { | ||
| 207 | public void testSmsLogin_success() { | 207 | public void testSmsLogin_success() { |
| 208 | // 准备参数 | 208 | // 准备参数 |
| 209 | String mobile = randomString(); | 209 | String mobile = randomString(); |
| 210 | - String scene = randomString(); | ||
| 211 | - AuthSmsLoginReqVO reqVO = new AuthSmsLoginReqVO(mobile, scene); | 210 | + String code = randomString(); |
| 211 | + AuthSmsLoginReqVO reqVO = new AuthSmsLoginReqVO(mobile, code); | ||
| 212 | // mock 方法(用户信息) | 212 | // mock 方法(用户信息) |
| 213 | AdminUserDO user = randomPojo(AdminUserDO.class, o -> o.setId(1L)); | 213 | AdminUserDO user = randomPojo(AdminUserDO.class, o -> o.setId(1L)); |
| 214 | when(userService.getUserByMobile(eq(mobile))).thenReturn(user); | 214 | when(userService.getUserByMobile(eq(mobile))).thenReturn(user); |