mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	chore: 调整部分类的所在包
This commit is contained in:
		| @@ -17,24 +17,12 @@ | ||||
|         <dependency> | ||||
|             <groupId>org.dromara.sms4j</groupId> | ||||
|             <artifactId>sms4j-spring-boot-starter</artifactId> | ||||
|             <exclusions> | ||||
|                 <exclusion> | ||||
|                     <groupId>cn.hutool</groupId> | ||||
|                     <artifactId>hutool-core</artifactId> | ||||
|                 </exclusion> | ||||
|             </exclusions> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- X File Storage(一行代码将文件存储到本地、FTP、SFTP、WebDAV、阿里云 OSS、华为云 OBS...等其它兼容 S3 协议的存储平台) --> | ||||
|         <dependency> | ||||
|             <groupId>org.dromara.x-file-storage</groupId> | ||||
|             <artifactId>x-file-storage-spring</artifactId> | ||||
|             <exclusions> | ||||
|                 <exclusion> | ||||
|                     <groupId>cn.hutool</groupId> | ||||
|                     <artifactId>hutool-core</artifactId> | ||||
|                 </exclusion> | ||||
|             </exclusions> | ||||
|         </dependency> | ||||
|         <!-- Amazon S3(Amazon Simple Storage Service,亚马逊简单存储服务,通用存储协议 S3,兼容主流云厂商对象存储) --> | ||||
|         <dependency> | ||||
|   | ||||
| @@ -16,26 +16,23 @@ | ||||
|  | ||||
| package top.charles7c.continew.admin.common.util.helper; | ||||
|  | ||||
| import java.time.LocalDateTime; | ||||
|  | ||||
| import jakarta.servlet.http.HttpServletRequest; | ||||
|  | ||||
| import lombok.AccessLevel; | ||||
| import lombok.NoArgsConstructor; | ||||
|  | ||||
| import cn.dev33.satoken.context.SaHolder; | ||||
| import cn.dev33.satoken.session.SaSession; | ||||
| import cn.dev33.satoken.stp.StpUtil; | ||||
| import cn.hutool.core.util.StrUtil; | ||||
| import cn.hutool.extra.servlet.JakartaServletUtil; | ||||
| import cn.hutool.extra.spring.SpringUtil; | ||||
|  | ||||
| import jakarta.servlet.http.HttpServletRequest; | ||||
| import lombok.AccessLevel; | ||||
| import lombok.NoArgsConstructor; | ||||
| import top.charles7c.continew.admin.common.constant.CacheConstants; | ||||
| import top.charles7c.continew.admin.common.model.dto.LoginUser; | ||||
| import top.charles7c.continew.starter.core.util.ExceptionUtils; | ||||
| import top.charles7c.continew.starter.core.util.IpUtils; | ||||
| import top.charles7c.continew.starter.core.util.ServletUtils; | ||||
| import top.charles7c.continew.starter.extension.crud.base.CommonUserService; | ||||
| import top.charles7c.continew.starter.web.util.ServletUtils; | ||||
|  | ||||
| import java.time.LocalDateTime; | ||||
|  | ||||
| /** | ||||
|  * 登录助手 | ||||
|   | ||||
| @@ -33,7 +33,7 @@ import top.charles7c.continew.admin.monitor.mapper.LogMapper; | ||||
| import top.charles7c.continew.admin.monitor.model.entity.LogDO; | ||||
| import top.charles7c.continew.admin.system.service.UserService; | ||||
| import top.charles7c.continew.starter.core.constant.StringConstants; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.core.util.ExceptionUtils; | ||||
| import top.charles7c.continew.starter.log.common.dao.LogDao; | ||||
| import top.charles7c.continew.starter.log.common.model.LogRecord; | ||||
|   | ||||
| @@ -38,11 +38,11 @@ import top.charles7c.continew.admin.system.model.resp.StorageResp; | ||||
| import top.charles7c.continew.admin.system.service.FileService; | ||||
| import top.charles7c.continew.admin.system.service.StorageService; | ||||
| import top.charles7c.continew.starter.core.constant.StringConstants; | ||||
| import top.charles7c.continew.starter.core.util.SpringUtils; | ||||
| import top.charles7c.continew.starter.core.util.URLUtils; | ||||
| import top.charles7c.continew.starter.core.util.validate.CheckUtils; | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.extension.crud.base.BaseServiceImpl; | ||||
| import top.charles7c.continew.starter.web.util.SpringWebUtils; | ||||
|  | ||||
| import java.util.Collections; | ||||
| import java.util.List; | ||||
| @@ -130,7 +130,7 @@ public class StorageServiceImpl extends BaseServiceImpl<StorageMapper, StorageDO | ||||
|                 config.setStoragePath(bucketName); | ||||
|                 fileStorageList.addAll(FileStorageServiceBuilder.buildLocalPlusFileStorage(Collections | ||||
|                     .singletonList(config))); | ||||
|                 SpringUtils.registerResourceHandler(MapUtil.of(URLUtil.url(req.getDomain()).getPath(), bucketName)); | ||||
|                 SpringWebUtils.registerResourceHandler(MapUtil.of(URLUtil.url(req.getDomain()).getPath(), bucketName)); | ||||
|             } | ||||
|             case S3 -> { | ||||
|                 String accessKey = req.getAccessKey(); | ||||
| @@ -159,7 +159,7 @@ public class StorageServiceImpl extends BaseServiceImpl<StorageMapper, StorageDO | ||||
|         FileStorage fileStorage = fileStorageService.getFileStorage(req.getCode()); | ||||
|         fileStorageList.remove(fileStorage); | ||||
|         fileStorage.close(); | ||||
|         SpringUtils.deRegisterResourceHandler(MapUtil.of(URLUtil.url(req.getDomain()).getPath(), req.getBucketName())); | ||||
|         SpringWebUtils.deRegisterResourceHandler(MapUtil.of(URLUtil.url(req.getDomain()).getPath(), req.getBucketName())); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -31,9 +31,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||
| import org.springframework.boot.autoconfigure.web.ServerProperties; | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | ||||
| import top.charles7c.continew.starter.core.annotation.EnableGlobalExceptionHandler; | ||||
| import top.charles7c.continew.starter.core.autoconfigure.project.ProjectProperties; | ||||
| import top.charles7c.continew.starter.extension.crud.annotation.EnableCrudRestController; | ||||
| import top.charles7c.continew.starter.web.annotation.EnableGlobalExceptionHandler; | ||||
|  | ||||
| import java.net.InetAddress; | ||||
|  | ||||
|   | ||||
| @@ -42,7 +42,7 @@ import top.charles7c.continew.admin.system.service.UserService; | ||||
| import top.charles7c.continew.starter.cache.redisson.util.RedisUtils; | ||||
| import top.charles7c.continew.starter.core.util.ExceptionUtils; | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | ||||
|  | ||||
| import java.util.List; | ||||
|   | ||||
| @@ -34,7 +34,7 @@ import top.charles7c.continew.admin.auth.model.resp.LoginResp; | ||||
| import top.charles7c.continew.admin.auth.service.LoginService; | ||||
| import top.charles7c.continew.starter.core.exception.BadRequestException; | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | ||||
|  | ||||
| import me.zhyd.oauth.model.AuthCallback; | ||||
|   | ||||
| @@ -52,7 +52,7 @@ import top.charles7c.continew.starter.core.autoconfigure.project.ProjectProperti | ||||
| import top.charles7c.continew.starter.core.util.TemplateUtils; | ||||
| import top.charles7c.continew.starter.core.util.validate.CheckUtils; | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | ||||
| import top.charles7c.continew.starter.messaging.mail.util.MailUtils; | ||||
|  | ||||
|   | ||||
| @@ -44,7 +44,7 @@ import top.charles7c.continew.starter.core.autoconfigure.project.ProjectProperti | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| import top.charles7c.continew.starter.extension.crud.model.query.SortQuery; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | ||||
|  | ||||
| import java.util.Arrays; | ||||
|   | ||||
| @@ -38,7 +38,7 @@ import top.charles7c.continew.admin.monitor.model.resp.DashboardTotalResp; | ||||
| import top.charles7c.continew.admin.monitor.service.DashboardService; | ||||
| import top.charles7c.continew.admin.system.model.resp.DashboardAnnouncementResp; | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | ||||
|  | ||||
| import java.util.List; | ||||
|   | ||||
| @@ -39,7 +39,7 @@ import top.charles7c.continew.admin.monitor.model.resp.SystemLogResp; | ||||
| import top.charles7c.continew.admin.monitor.service.LogService; | ||||
| import top.charles7c.continew.starter.extension.crud.model.query.PageQuery; | ||||
| import top.charles7c.continew.starter.extension.crud.model.resp.PageResp; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | ||||
|  | ||||
| /** | ||||
|   | ||||
| @@ -35,7 +35,7 @@ import top.charles7c.continew.admin.auth.service.OnlineUserService; | ||||
| import top.charles7c.continew.starter.core.util.validate.CheckUtils; | ||||
| import top.charles7c.continew.starter.extension.crud.model.query.PageQuery; | ||||
| import top.charles7c.continew.starter.extension.crud.model.resp.PageResp; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
|  | ||||
| /** | ||||
|  * 在线用户 API | ||||
|   | ||||
| @@ -34,7 +34,7 @@ import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.extension.crud.annotation.CrudRequestMapping; | ||||
| import top.charles7c.continew.starter.extension.crud.base.BaseController; | ||||
| import top.charles7c.continew.starter.extension.crud.base.ValidateGroup; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
|  | ||||
| /** | ||||
|  * 公告管理 API | ||||
|   | ||||
| @@ -36,7 +36,7 @@ import top.charles7c.continew.starter.extension.crud.annotation.CrudRequestMappi | ||||
| import top.charles7c.continew.starter.extension.crud.base.BaseController; | ||||
| import top.charles7c.continew.starter.extension.crud.base.ValidateGroup; | ||||
| import top.charles7c.continew.starter.extension.crud.enums.Api; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
|  | ||||
| /** | ||||
|  * 菜单管理 API | ||||
|   | ||||
| @@ -31,7 +31,7 @@ import top.charles7c.continew.admin.system.service.MessageService; | ||||
| import top.charles7c.continew.admin.system.service.MessageUserService; | ||||
| import top.charles7c.continew.starter.extension.crud.model.query.PageQuery; | ||||
| import top.charles7c.continew.starter.extension.crud.model.resp.PageResp; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | ||||
|  | ||||
| import java.util.List; | ||||
|   | ||||
| @@ -33,7 +33,7 @@ import top.charles7c.continew.admin.system.model.req.OptionReq; | ||||
| import top.charles7c.continew.admin.system.model.req.OptionResetValueReq; | ||||
| import top.charles7c.continew.admin.system.model.resp.OptionResp; | ||||
| import top.charles7c.continew.admin.system.service.OptionService; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
|  | ||||
| /** | ||||
|  * 参数管理 API | ||||
|   | ||||
| @@ -48,7 +48,7 @@ import top.charles7c.continew.admin.system.service.UserSocialService; | ||||
| import top.charles7c.continew.starter.cache.redisson.util.RedisUtils; | ||||
| import top.charles7c.continew.starter.core.util.ExceptionUtils; | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
|  | ||||
| import java.util.List; | ||||
| import java.util.stream.Collectors; | ||||
|   | ||||
| @@ -39,7 +39,7 @@ import top.charles7c.continew.admin.system.service.UserService; | ||||
| import top.charles7c.continew.starter.extension.crud.annotation.CrudRequestMapping; | ||||
| import top.charles7c.continew.starter.extension.crud.base.BaseController; | ||||
| import top.charles7c.continew.starter.extension.crud.base.ValidateGroup; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
|  | ||||
| /** | ||||
|  * 用户管理 API | ||||
|   | ||||
| @@ -42,7 +42,7 @@ import top.charles7c.continew.starter.core.autoconfigure.project.ProjectProperti | ||||
| import top.charles7c.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.charles7c.continew.starter.extension.crud.model.query.PageQuery; | ||||
| import top.charles7c.continew.starter.extension.crud.model.resp.PageResp; | ||||
| import top.charles7c.continew.starter.core.model.R; | ||||
| import top.charles7c.continew.starter.web.model.R; | ||||
|  | ||||
| /** | ||||
|  * 代码生成 API | ||||
|   | ||||
							
								
								
									
										8
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -31,7 +31,7 @@ | ||||
|     </modules> | ||||
|  | ||||
|     <properties> | ||||
|         <!-- 项目版本 --> | ||||
|         <!-- 项目版本号 --> | ||||
|         <revision>2.3.0-SNAPSHOT</revision> | ||||
|     </properties> | ||||
|  | ||||
| @@ -76,6 +76,12 @@ | ||||
|     </dependencyManagement> | ||||
|  | ||||
|     <dependencies> | ||||
|         <!-- Hutool(小而全的 Java 工具类库,通过静态方法封装,降低相关 API 的学习成本,提高工作效率,使 Java 拥有函数式语言般的优雅,让 Java 语言也可以“甜甜的”) --> | ||||
|         <dependency> | ||||
|             <groupId>cn.hutool</groupId> | ||||
|             <artifactId>hutool-all</artifactId> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- Lombok(在 Java 开发过程中用注解的方式,简化了 JavaBean 的编写,避免了冗余和样板式代码,让编写的类更加简洁) --> | ||||
|         <dependency> | ||||
|             <groupId>org.projectlombok</groupId> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user