mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	chore: top.charles7c.continew => top.continew
1.groupId 及基础包名调整,更短的包名,优化品牌形象 2.全局代码格式化
This commit is contained in:
		| @@ -1,10 +1,10 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||||
|          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||
| <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||
|          xmlns="http://maven.apache.org/POM/4.0.0" | ||||
|          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||
|     <modelVersion>4.0.0</modelVersion> | ||||
|     <parent> | ||||
|         <groupId>top.charles7c.continew</groupId> | ||||
|         <groupId>top.continew</groupId> | ||||
|         <artifactId>continew-admin</artifactId> | ||||
|         <version>${revision}</version> | ||||
|     </parent> | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config; | ||||
| package top.continew.admin.common.config; | ||||
| 
 | ||||
| import lombok.RequiredArgsConstructor; | ||||
| import org.springframework.context.annotation.Configuration; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.jackson; | ||||
| package top.continew.admin.common.config.jackson; | ||||
| 
 | ||||
| import cn.hutool.core.util.ClassUtil; | ||||
| import cn.hutool.core.util.ReflectUtil; | ||||
| @@ -30,14 +30,16 @@ import java.lang.reflect.Field; | ||||
| /** | ||||
|  * 通用枚举接口 IBaseEnum 反序列化器 | ||||
|  * | ||||
|  * @see IBaseEnum | ||||
|  * @author Charles7c | ||||
|  * @see IBaseEnum | ||||
|  * @since 2023/1/8 13:56 | ||||
|  */ | ||||
| @JacksonStdImpl | ||||
| public class BaseEnumDeserializer extends JsonDeserializer<IBaseEnum> { | ||||
| 
 | ||||
|     /** 静态实例 */ | ||||
|     /** | ||||
|      * 静态实例 | ||||
|      */ | ||||
|     public static final BaseEnumDeserializer SERIALIZER_INSTANCE = new BaseEnumDeserializer(); | ||||
| 
 | ||||
|     @Override | ||||
| @@ -14,28 +14,29 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.jackson; | ||||
| 
 | ||||
| import java.io.IOException; | ||||
| package top.continew.admin.common.config.jackson; | ||||
| 
 | ||||
| import com.fasterxml.jackson.core.JsonGenerator; | ||||
| import com.fasterxml.jackson.databind.JsonSerializer; | ||||
| import com.fasterxml.jackson.databind.SerializerProvider; | ||||
| import com.fasterxml.jackson.databind.annotation.JacksonStdImpl; | ||||
| 
 | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| import java.io.IOException; | ||||
| 
 | ||||
| /** | ||||
|  * 通用枚举接口 IBaseEnum 序列化器 | ||||
|  * | ||||
|  * @see IBaseEnum | ||||
|  * @author Charles7c | ||||
|  * @see IBaseEnum | ||||
|  * @since 2023/1/8 13:56 | ||||
|  */ | ||||
| @JacksonStdImpl | ||||
| public class BaseEnumSerializer extends JsonSerializer<IBaseEnum> { | ||||
| 
 | ||||
|     /** 静态实例 */ | ||||
|     /** | ||||
|      * 静态实例 | ||||
|      */ | ||||
|     public static final BaseEnumSerializer SERIALIZER_INSTANCE = new BaseEnumSerializer(); | ||||
| 
 | ||||
|     @Override | ||||
| @@ -14,24 +14,21 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.jackson; | ||||
| package top.continew.admin.common.config.jackson; | ||||
| 
 | ||||
| import com.fasterxml.jackson.databind.ObjectMapper; | ||||
| import com.fasterxml.jackson.databind.module.SimpleModule; | ||||
| import lombok.extern.slf4j.Slf4j; | ||||
| 
 | ||||
| import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.Configuration; | ||||
| import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; | ||||
| 
 | ||||
| import com.fasterxml.jackson.databind.*; | ||||
| import com.fasterxml.jackson.databind.module.SimpleModule; | ||||
| 
 | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| /** | ||||
|  * Jackson 配置 | ||||
|  * | ||||
|  * @see IBaseEnum | ||||
|  * @author Charles7c | ||||
|  * @see IBaseEnum | ||||
|  * @since 2022/12/11 13:23 | ||||
|  */ | ||||
| @Slf4j | ||||
| @@ -14,9 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.jackson; | ||||
| 
 | ||||
| import lombok.extern.slf4j.Slf4j; | ||||
| package top.continew.admin.common.config.jackson; | ||||
| 
 | ||||
| import com.fasterxml.jackson.databind.BeanDescription; | ||||
| import com.fasterxml.jackson.databind.DeserializationConfig; | ||||
| @@ -24,6 +22,7 @@ import com.fasterxml.jackson.databind.JsonDeserializer; | ||||
| import com.fasterxml.jackson.databind.JsonMappingException; | ||||
| import com.fasterxml.jackson.databind.module.SimpleDeserializers; | ||||
| import com.fasterxml.jackson.databind.type.ClassKey; | ||||
| import lombok.extern.slf4j.Slf4j; | ||||
| 
 | ||||
| /** | ||||
|  * 反序列化器包装类(重写 Jackson 反序列化枚举方法,参阅:FasterXML/jackson-databind#2842) | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.mybatis; | ||||
| package top.continew.admin.common.config.mybatis; | ||||
| 
 | ||||
| import org.springframework.security.crypto.password.PasswordEncoder; | ||||
| import top.continew.starter.security.crypto.encryptor.IEncryptor; | ||||
| @@ -14,11 +14,11 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.mybatis; | ||||
| package top.continew.admin.common.config.mybatis; | ||||
| 
 | ||||
| import cn.hutool.core.convert.Convert; | ||||
| import top.charles7c.continew.admin.common.model.dto.LoginUser; | ||||
| import top.charles7c.continew.admin.common.util.helper.LoginHelper; | ||||
| import top.continew.admin.common.model.dto.LoginUser; | ||||
| import top.continew.admin.common.util.helper.LoginHelper; | ||||
| import top.continew.starter.data.mybatis.plus.datapermission.DataPermissionCurrentUser; | ||||
| import top.continew.starter.data.mybatis.plus.datapermission.DataPermissionFilter; | ||||
| import top.continew.starter.data.mybatis.plus.datapermission.DataScope; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.mybatis; | ||||
| package top.continew.admin.common.config.mybatis; | ||||
| 
 | ||||
| import com.baomidou.mybatisplus.core.conditions.Wrapper; | ||||
| import com.baomidou.mybatisplus.core.metadata.IPage; | ||||
| @@ -28,8 +28,7 @@ import java.util.List; | ||||
| /** | ||||
|  * 数据权限 Mapper 基类 | ||||
|  * | ||||
|  * @param <T> | ||||
|  *            实体类 | ||||
|  * @param <T> 实体类 | ||||
|  * @author Charles7c | ||||
|  * @since 2023/9/3 21:50 | ||||
|  */ | ||||
| @@ -47,7 +46,7 @@ public interface DataPermissionMapper<T> extends BaseMapper<T> { | ||||
| 
 | ||||
|     /** | ||||
|      * 根据 entity 条件,查询全部记录(并翻页) | ||||
|      *  | ||||
|      * | ||||
|      * @param page         分页查询条件 | ||||
|      * @param queryWrapper 实体对象封装操作类(可以为 null) | ||||
|      * @return 全部记录(并翻页) | ||||
| @@ -14,12 +14,12 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.mybatis; | ||||
| package top.continew.admin.common.config.mybatis; | ||||
| 
 | ||||
| import cn.hutool.core.util.ObjectUtil; | ||||
| import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; | ||||
| import org.apache.ibatis.reflection.MetaObject; | ||||
| import top.charles7c.continew.admin.common.util.helper.LoginHelper; | ||||
| import top.continew.admin.common.util.helper.LoginHelper; | ||||
| import top.continew.starter.core.exception.BusinessException; | ||||
| import top.continew.starter.extension.crud.model.entity.BaseDO; | ||||
| 
 | ||||
| @@ -33,13 +33,21 @@ import java.time.LocalDateTime; | ||||
|  */ | ||||
| public class MyBatisPlusMetaObjectHandler implements MetaObjectHandler { | ||||
| 
 | ||||
|     /** 创建人 */ | ||||
|     /** | ||||
|      * 创建人 | ||||
|      */ | ||||
|     private static final String CREATE_USER = "createUser"; | ||||
|     /** 创建时间 */ | ||||
|     /** | ||||
|      * 创建时间 | ||||
|      */ | ||||
|     private static final String CREATE_TIME = "createTime"; | ||||
|     /** 修改人 */ | ||||
|     /** | ||||
|      * 修改人 | ||||
|      */ | ||||
|     private static final String UPDATE_USER = "updateUser"; | ||||
|     /** 修改时间 */ | ||||
|     /** | ||||
|      * 修改时间 | ||||
|      */ | ||||
|     private static final String UPDATE_TIME = "updateTime"; | ||||
| 
 | ||||
|     /** | ||||
| @@ -14,13 +14,11 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.mybatis; | ||||
| 
 | ||||
| import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.Configuration; | ||||
| package top.continew.admin.common.config.mybatis; | ||||
| 
 | ||||
| import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; | ||||
| 
 | ||||
| import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.Configuration; | ||||
| import org.springframework.security.crypto.password.PasswordEncoder; | ||||
| import top.continew.starter.data.mybatis.plus.datapermission.DataPermissionFilter; | ||||
| 
 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.properties; | ||||
| package top.continew.admin.common.config.properties; | ||||
| 
 | ||||
| import lombok.Data; | ||||
| import org.springframework.beans.factory.annotation.Value; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.config.properties; | ||||
| package top.continew.admin.common.config.properties; | ||||
| 
 | ||||
| import cn.hutool.extra.spring.SpringUtil; | ||||
| 
 | ||||
| @@ -27,7 +27,9 @@ import cn.hutool.extra.spring.SpringUtil; | ||||
|  */ | ||||
| public class RsaProperties { | ||||
| 
 | ||||
|     /** 私钥 */ | ||||
|     /** | ||||
|      * 私钥 | ||||
|      */ | ||||
|     public static final String PRIVATE_KEY; | ||||
| 
 | ||||
|     static { | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.constant; | ||||
| package top.continew.admin.common.constant; | ||||
| 
 | ||||
| import top.continew.starter.core.constant.StringConstants; | ||||
| 
 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.constant; | ||||
| package top.continew.admin.common.constant; | ||||
| 
 | ||||
| import top.continew.starter.extension.crud.constant.ContainerPool; | ||||
| 
 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.constant; | ||||
| package top.continew.admin.common.constant; | ||||
| 
 | ||||
| /** | ||||
|  * 正则相关常量 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.constant; | ||||
| package top.continew.admin.common.constant; | ||||
| 
 | ||||
| /** | ||||
|  * 系统相关常量 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.constant; | ||||
| package top.continew.admin.common.constant; | ||||
| 
 | ||||
| /** | ||||
|  * UI 相关常量 | ||||
| @@ -14,11 +14,10 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.enums; | ||||
| package top.continew.admin.common.enums; | ||||
| 
 | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| 
 | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| /** | ||||
| @@ -31,19 +30,29 @@ import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| @RequiredArgsConstructor | ||||
| public enum DataScopeEnum implements IBaseEnum<Integer> { | ||||
| 
 | ||||
|     /** 全部数据权限 */ | ||||
|     /** | ||||
|      * 全部数据权限 | ||||
|      */ | ||||
|     ALL(1, "全部数据权限"), | ||||
| 
 | ||||
|     /** 本部门及以下数据权限 */ | ||||
|     /** | ||||
|      * 本部门及以下数据权限 | ||||
|      */ | ||||
|     DEPT_AND_CHILD(2, "本部门及以下数据权限"), | ||||
| 
 | ||||
|     /** 本部门数据权限 */ | ||||
|     /** | ||||
|      * 本部门数据权限 | ||||
|      */ | ||||
|     DEPT(3, "本部门数据权限"), | ||||
| 
 | ||||
|     /** 仅本人数据权限 */ | ||||
|     /** | ||||
|      * 仅本人数据权限 | ||||
|      */ | ||||
|     SELF(4, "仅本人数据权限"), | ||||
| 
 | ||||
|     /** 自定义数据权限 */ | ||||
|     /** | ||||
|      * 自定义数据权限 | ||||
|      */ | ||||
|     CUSTOM(5, "自定义数据权限"),; | ||||
| 
 | ||||
|     private final Integer value; | ||||
| @@ -14,12 +14,11 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.enums; | ||||
| package top.continew.admin.common.enums; | ||||
| 
 | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| 
 | ||||
| import top.charles7c.continew.admin.common.constant.UiConstants; | ||||
| import top.continew.admin.common.constant.UiConstants; | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| /** | ||||
| @@ -32,10 +31,14 @@ import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| @RequiredArgsConstructor | ||||
| public enum DisEnableStatusEnum implements IBaseEnum<Integer> { | ||||
| 
 | ||||
|     /** 启用 */ | ||||
|     /** | ||||
|      * 启用 | ||||
|      */ | ||||
|     ENABLE(1, "启用", UiConstants.COLOR_SUCCESS), | ||||
| 
 | ||||
|     /** 禁用 */ | ||||
|     /** | ||||
|      * 禁用 | ||||
|      */ | ||||
|     DISABLE(2, "禁用", UiConstants.COLOR_ERROR),; | ||||
| 
 | ||||
|     private final Integer value; | ||||
| @@ -14,11 +14,10 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.enums; | ||||
| package top.continew.admin.common.enums; | ||||
| 
 | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| 
 | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| /** | ||||
| @@ -31,13 +30,19 @@ import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| @RequiredArgsConstructor | ||||
| public enum GenderEnum implements IBaseEnum<Integer> { | ||||
| 
 | ||||
|     /** 未知 */ | ||||
|     /** | ||||
|      * 未知 | ||||
|      */ | ||||
|     UNKNOWN(0, "未知"), | ||||
| 
 | ||||
|     /** 男 */ | ||||
|     /** | ||||
|      * 男 | ||||
|      */ | ||||
|     MALE(1, "男"), | ||||
| 
 | ||||
|     /** 女 */ | ||||
|     /** | ||||
|      * 女 | ||||
|      */ | ||||
|     FEMALE(2, "女"),; | ||||
| 
 | ||||
|     private final Integer value; | ||||
| @@ -14,11 +14,10 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.enums; | ||||
| package top.continew.admin.common.enums; | ||||
| 
 | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| 
 | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| /** | ||||
| @@ -31,13 +30,19 @@ import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| @RequiredArgsConstructor | ||||
| public enum MenuTypeEnum implements IBaseEnum<Integer> { | ||||
| 
 | ||||
|     /** 目录 */ | ||||
|     /** | ||||
|      * 目录 | ||||
|      */ | ||||
|     DIR(1, "目录"), | ||||
| 
 | ||||
|     /** 菜单 */ | ||||
|     /** | ||||
|      * 菜单 | ||||
|      */ | ||||
|     MENU(2, "菜单"), | ||||
| 
 | ||||
|     /** 按钮 */ | ||||
|     /** | ||||
|      * 按钮 | ||||
|      */ | ||||
|     BUTTON(3, "按钮"),; | ||||
| 
 | ||||
|     private final Integer value; | ||||
| @@ -14,12 +14,11 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.enums; | ||||
| package top.continew.admin.common.enums; | ||||
| 
 | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| 
 | ||||
| import top.charles7c.continew.admin.common.constant.UiConstants; | ||||
| import top.continew.admin.common.constant.UiConstants; | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| /** | ||||
| @@ -32,7 +31,9 @@ import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| @RequiredArgsConstructor | ||||
| public enum MessageTypeEnum implements IBaseEnum<Integer> { | ||||
| 
 | ||||
|     /** 系统消息 */ | ||||
|     /** | ||||
|      * 系统消息 | ||||
|      */ | ||||
|     SYSTEM(1, "系统消息", UiConstants.COLOR_PRIMARY),; | ||||
| 
 | ||||
|     private final Integer value; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.enums; | ||||
| package top.continew.admin.common.enums; | ||||
| 
 | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| @@ -29,10 +29,14 @@ import lombok.RequiredArgsConstructor; | ||||
| @RequiredArgsConstructor | ||||
| public enum SocialSourceEnum { | ||||
| 
 | ||||
|     /** 码云 */ | ||||
|     /** | ||||
|      * 码云 | ||||
|      */ | ||||
|     GITEE("码云"), | ||||
| 
 | ||||
|     /** GitHub */ | ||||
|     /** | ||||
|      * GitHub | ||||
|      */ | ||||
|     GITHUB("GitHub"),; | ||||
| 
 | ||||
|     private final String description; | ||||
| @@ -14,12 +14,11 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.enums; | ||||
| package top.continew.admin.common.enums; | ||||
| 
 | ||||
| import lombok.Getter; | ||||
| import lombok.RequiredArgsConstructor; | ||||
| 
 | ||||
| import top.charles7c.continew.admin.common.constant.UiConstants; | ||||
| import top.continew.admin.common.constant.UiConstants; | ||||
| import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| 
 | ||||
| /** | ||||
| @@ -32,10 +31,14 @@ import top.continew.starter.data.mybatis.plus.base.IBaseEnum; | ||||
| @RequiredArgsConstructor | ||||
| public enum SuccessFailureStatusEnum implements IBaseEnum<Integer> { | ||||
| 
 | ||||
|     /** 成功 */ | ||||
|     /** | ||||
|      * 成功 | ||||
|      */ | ||||
|     SUCCESS(1, "成功", UiConstants.COLOR_SUCCESS), | ||||
| 
 | ||||
|     /** 失败 */ | ||||
|     /** | ||||
|      * 失败 | ||||
|      */ | ||||
|     FAILURE(2, "失败", UiConstants.COLOR_ERROR),; | ||||
| 
 | ||||
|     private final Integer value; | ||||
| @@ -14,19 +14,17 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.model.dto; | ||||
| package top.continew.admin.common.model.dto; | ||||
| 
 | ||||
| import cn.hutool.core.collection.CollUtil; | ||||
| import lombok.Data; | ||||
| import top.continew.admin.common.constant.SysConstants; | ||||
| 
 | ||||
| import java.io.Serial; | ||||
| import java.io.Serializable; | ||||
| import java.time.LocalDateTime; | ||||
| import java.util.Set; | ||||
| 
 | ||||
| import lombok.Data; | ||||
| 
 | ||||
| import cn.hutool.core.collection.CollUtil; | ||||
| 
 | ||||
| import top.charles7c.continew.admin.common.constant.SysConstants; | ||||
| 
 | ||||
| /** | ||||
|  * 登录用户信息 | ||||
|  * | ||||
| @@ -14,15 +14,14 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.model.dto; | ||||
| package top.continew.admin.common.model.dto; | ||||
| 
 | ||||
| import lombok.Data; | ||||
| import top.continew.admin.common.enums.DataScopeEnum; | ||||
| 
 | ||||
| import java.io.Serial; | ||||
| import java.io.Serializable; | ||||
| 
 | ||||
| import lombok.Data; | ||||
| 
 | ||||
| import top.charles7c.continew.admin.common.enums.DataScopeEnum; | ||||
| 
 | ||||
| /** | ||||
|  * 角色信息 | ||||
|  * | ||||
| @@ -14,15 +14,14 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.model.resp; | ||||
| 
 | ||||
| import java.io.Serial; | ||||
| import java.io.Serializable; | ||||
| package top.continew.admin.common.model.resp; | ||||
| 
 | ||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||
| import lombok.Builder; | ||||
| import lombok.Data; | ||||
| 
 | ||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||
| import java.io.Serial; | ||||
| import java.io.Serializable; | ||||
| 
 | ||||
| /** | ||||
|  * 验证码信息 | ||||
| @@ -14,17 +14,15 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.model.resp; | ||||
| 
 | ||||
| import java.io.Serial; | ||||
| import java.io.Serializable; | ||||
| package top.continew.admin.common.model.resp; | ||||
| 
 | ||||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||
| import lombok.Data; | ||||
| import lombok.NoArgsConstructor; | ||||
| 
 | ||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||
| 
 | ||||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||||
| import java.io.Serial; | ||||
| import java.io.Serializable; | ||||
| 
 | ||||
| /** | ||||
|  * 键值对信息 | ||||
| @@ -14,12 +14,12 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.util; | ||||
| package top.continew.admin.common.util; | ||||
| 
 | ||||
| import cn.hutool.core.codec.Base64; | ||||
| import cn.hutool.crypto.SecureUtil; | ||||
| import cn.hutool.crypto.asymmetric.KeyType; | ||||
| import top.charles7c.continew.admin.common.config.properties.RsaProperties; | ||||
| import top.continew.admin.common.config.properties.RsaProperties; | ||||
| import top.continew.starter.core.util.validate.ValidationUtils; | ||||
| 
 | ||||
| /** | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.charles7c.continew.admin.common.util.helper; | ||||
| package top.continew.admin.common.util.helper; | ||||
| 
 | ||||
| import cn.dev33.satoken.context.SaHolder; | ||||
| import cn.dev33.satoken.exception.NotLoginException; | ||||
| @@ -24,8 +24,8 @@ import cn.hutool.core.util.StrUtil; | ||||
| import cn.hutool.extra.servlet.JakartaServletUtil; | ||||
| import cn.hutool.extra.spring.SpringUtil; | ||||
| import jakarta.servlet.http.HttpServletRequest; | ||||
| import top.charles7c.continew.admin.common.constant.CacheConstants; | ||||
| import top.charles7c.continew.admin.common.model.dto.LoginUser; | ||||
| import top.continew.admin.common.constant.CacheConstants; | ||||
| import top.continew.admin.common.model.dto.LoginUser; | ||||
| import top.continew.starter.core.util.ExceptionUtils; | ||||
| import top.continew.starter.core.util.IpUtils; | ||||
| import top.continew.starter.extension.crud.service.CommonUserService; | ||||
		Reference in New Issue
	
	Block a user