feat: 添加代码生成器
This commit is contained in:
@@ -12,9 +12,9 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* @Classname GlobalConfig
|
||||
* @BelongsProject: qing-yu-club
|
||||
* @BelongsProject: schisandra-cloud-storage
|
||||
* @BelongsPackage: com.schisandra.auth.application.config
|
||||
* @Author: landaiqing
|
||||
* @Author: schisandra
|
||||
* @CreateTime: 2024-02-16 15:57
|
||||
* @Description: MVC全局处理
|
||||
* @Version: 1.0
|
||||
|
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
* @Classname SmsConfig
|
||||
* @BelongsProject: schisandra-cloud-storage
|
||||
* @BelongsPackage: com.schisandra.auth.common.config
|
||||
* @Author: landaiqing
|
||||
* @Author: schisandra
|
||||
* @CreateTime: 2024-05-08 18:46
|
||||
* @Description: TODO
|
||||
* @Version: 1.0
|
||||
|
@@ -14,7 +14,7 @@ import javax.annotation.Resource;
|
||||
* @Classname SchisandraAuthUserController
|
||||
* @BelongsProject: schisandra-cloud-storage
|
||||
* @BelongsPackage: com.schisandra.auth.application.controller
|
||||
* @Author: landaiqing
|
||||
* @Author: schisandra
|
||||
* @CreateTime: 2024-03-21 22:48
|
||||
* @Description: AuthUserController层
|
||||
* @Version: 1.0
|
||||
@@ -29,7 +29,7 @@ public class SchisandraAuthUserController {
|
||||
* @description 更新用户信息
|
||||
* @param schisandraAuthUserDTO
|
||||
* @return com.schisandra.auth.common.entity.Result<java.lang.Boolean>
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:06
|
||||
*/
|
||||
@PostMapping("update")
|
||||
@@ -111,7 +111,7 @@ public class SchisandraAuthUserController {
|
||||
* @description 用户信息断言校验
|
||||
* @param schisandraAuthUserDTO
|
||||
* @return void
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:09
|
||||
*/
|
||||
private void checkUserInfo(@RequestBody SchisandraAuthUserDTO schisandraAuthUserDTO) {
|
||||
|
@@ -25,7 +25,7 @@ public interface SchisandraAuthRoleDTOConverter {
|
||||
* @param authRoleDTO
|
||||
* @return com.schisandra.auth.domain.bo.SchisandraAuthRoleBO
|
||||
* @description DTO转BO
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:11
|
||||
*/
|
||||
|
||||
@@ -35,7 +35,7 @@ public interface SchisandraAuthRoleDTOConverter {
|
||||
* @description: BO转DTO
|
||||
* @param: [authUserBO]
|
||||
* @return: com.schisandra.auth.application.dto.SchisandraAuthRoleDTO
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
* @date: 2024/3/21 23:26
|
||||
*/
|
||||
SchisandraAuthRoleDTO convertBOToDTO(SchisandraAuthRoleBO authRoleBO);
|
||||
|
@@ -8,7 +8,7 @@ import org.mapstruct.factory.Mappers;
|
||||
/**
|
||||
* 用户dto转换器
|
||||
*
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface SchisandraAuthUserDTOConverter {
|
||||
@@ -19,7 +19,7 @@ public interface SchisandraAuthUserDTOConverter {
|
||||
* @param authUserDTO
|
||||
* @return com.schisandra.auth.domain.bo.SchisandraAuthUserBO
|
||||
* @description DTO转BO
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:11
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,7 @@ public interface SchisandraAuthUserDTOConverter {
|
||||
* @description: BO转DTO
|
||||
* @param: [authUserBO]
|
||||
* @return: com.schisandra.auth.application.dto.SchisandraAuthUserDTO
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
* @date: 2024/3/21 23:26
|
||||
*/
|
||||
SchisandraAuthUserDTO convertBOToDTO(SchisandraAuthUserBO authUserBO);
|
||||
|
@@ -23,7 +23,7 @@ public interface SchisandraSmsConfigDTOConvert {
|
||||
* @description 将bo转换为实体
|
||||
* @param schisandraSmsConfigDTO
|
||||
* @return com.schisandra.auth.infra.basic.entity.SchisandraAuthUser
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraSmsConfigBO convertDTOToBO(SchisandraSmsConfigDTO schisandraSmsConfigDTO);
|
||||
@@ -32,7 +32,7 @@ public interface SchisandraSmsConfigDTOConvert {
|
||||
* @description 将实体转换为bo
|
||||
* @param schisandraSmsConfigBO
|
||||
* @return com.schisandra.auth.domain.bo.SchisandraAuthUserBO
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraSmsConfigDTO convertBOToDTO(SchisandraSmsConfigBO schisandraSmsConfigBO);
|
||||
|
@@ -14,7 +14,7 @@ import java.util.Map;
|
||||
* @Classname SmsTypeHandlerFactory
|
||||
* @BelongsProject: schisandra-cloud-storage
|
||||
* @BelongsPackage: com.schisandra.auth.application.factory
|
||||
* @Author: landaiqing
|
||||
* @Author: schisandra
|
||||
* @CreateTime: 2024-05-11 18:36
|
||||
* @Description: TODO
|
||||
* @Version: 1.0
|
||||
|
@@ -16,7 +16,7 @@ import javax.annotation.Resource;
|
||||
* @Classname AlibabaSmsHandler
|
||||
* @BelongsProject: schisandra-cloud-storage
|
||||
* @BelongsPackage: com.schisandra.auth.application.handler
|
||||
* @Author: landaiqing
|
||||
* @Author: schisandra
|
||||
* @CreateTime: 2024-05-11 18:20
|
||||
* @Description: TODO
|
||||
* @Version: 1.0
|
||||
|
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
|
||||
* @Classname SchisandraSmsTypeHandler
|
||||
* @BelongsProject: schisandra-cloud-storage
|
||||
* @BelongsPackage: com.schisandra.auth.application.handler
|
||||
* @Author: landaiqing
|
||||
* @Author: schisandra
|
||||
* @CreateTime: 2024-05-11 18:04
|
||||
* @Description: TODO
|
||||
* @Version: 1.0
|
||||
|
@@ -3,7 +3,7 @@ package com.schisandra.auth.common.entity;
|
||||
/**
|
||||
* 分页请求实体
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
*/
|
||||
public class PageInfo {
|
||||
|
||||
|
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* 分页返回实体
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
*/
|
||||
@Data
|
||||
public class PageResult<T> implements Serializable {
|
||||
|
@@ -5,7 +5,7 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 返回结果泛型类
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
* @date: 2024/3/22 13:09
|
||||
*/
|
||||
@Data
|
||||
|
@@ -5,7 +5,7 @@ import lombok.Getter;
|
||||
/**
|
||||
* 用户状态枚举
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
*/
|
||||
@Getter
|
||||
public enum AuthUserStatusEnum {
|
||||
|
@@ -5,7 +5,7 @@ import lombok.Getter;
|
||||
/**
|
||||
* 删除状态枚举
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
*/
|
||||
@Getter
|
||||
public enum IsDeletedFlagEnum {
|
||||
|
@@ -4,7 +4,7 @@ import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @description: 返回结果状态枚举
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
* @date: 2024/3/22 13:10
|
||||
*/
|
||||
@Getter
|
||||
|
@@ -16,7 +16,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
|
||||
/**
|
||||
* Redis的config处理
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
*/
|
||||
@Configuration
|
||||
public class RedisConfig {
|
||||
|
@@ -13,7 +13,7 @@ import java.util.stream.Stream;
|
||||
/**
|
||||
* RedisUtil工具类
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
* @date: 2024/2/19
|
||||
*/
|
||||
@Component
|
||||
|
@@ -24,7 +24,7 @@ public interface SchisandraAuthRoleBOConverter {
|
||||
* @description 将bo转换为实体
|
||||
* @param schisandraAuthRoleBO
|
||||
* @return com.schisandra.auth.infra.basic.entity.SchisandraRoleUser
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraAuthRole convertBOToEntity(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
@@ -33,7 +33,7 @@ public interface SchisandraAuthRoleBOConverter {
|
||||
* @description 将实体转换为bo
|
||||
* @param schisandraAuthRole
|
||||
* @return com.schisandra.auth.domain.bo.SchisandraAuthRoleBO
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraAuthRoleBO convertEntityToBO(SchisandraAuthRole schisandraAuthRole);
|
||||
|
@@ -8,7 +8,7 @@ import org.mapstruct.factory.Mappers;
|
||||
/**
|
||||
* 用户bo转换器
|
||||
*
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
@@ -20,7 +20,7 @@ public interface SchisandraAuthUserBOConverter {
|
||||
* @description 将bo转换为实体
|
||||
* @param schisandraAuthUserBO
|
||||
* @return com.schisandra.auth.infra.basic.entity.SchisandraAuthUser
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraAuthUser convertBOToEntity(SchisandraAuthUserBO schisandraAuthUserBO);
|
||||
@@ -29,7 +29,7 @@ public interface SchisandraAuthUserBOConverter {
|
||||
* @description 将实体转换为bo
|
||||
* @param schisandraAuthUser
|
||||
* @return com.schisandra.auth.domain.bo.SchisandraAuthUserBO
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraAuthUserBO convertEntityToBO(SchisandraAuthUser schisandraAuthUser);
|
||||
|
@@ -27,7 +27,7 @@ public interface SchisandraSmsConfigBOConvert {
|
||||
* @description 将bo转换为实体
|
||||
* @param schisandraSmsConfigBO
|
||||
* @return com.schisandra.auth.infra.basic.entity.SchisandraAuthUser
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraSmsConfig convertBOToEntity(SchisandraSmsConfigBO schisandraSmsConfigBO);
|
||||
@@ -36,7 +36,7 @@ public interface SchisandraSmsConfigBOConvert {
|
||||
* @description 将实体转换为bo
|
||||
* @param schisandraSmsConfig
|
||||
* @return com.schisandra.auth.domain.bo.SchisandraAuthUserBO
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraSmsConfigBO convertEntityToBO(SchisandraSmsConfig schisandraSmsConfig);
|
||||
|
@@ -7,7 +7,7 @@ import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
/**
|
||||
* 用户领域service
|
||||
*
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21
|
||||
*/
|
||||
public interface SchisandraAuthUserDomainService {
|
||||
@@ -16,7 +16,7 @@ public interface SchisandraAuthUserDomainService {
|
||||
* @description 更新用户信息
|
||||
* @param schisandraAuthUserBO
|
||||
* @return java.lang.Object
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:14
|
||||
*/
|
||||
Object update(SchisandraAuthUserBO schisandraAuthUserBO);
|
||||
|
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* 用户领域service
|
||||
*
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21
|
||||
*/
|
||||
public interface SchisandraSmsConfigDomainService {
|
||||
|
@@ -21,7 +21,7 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
* @description 更新用户信息
|
||||
* @param schisandraAuthUserBO
|
||||
* @return java.lang.Object
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:14
|
||||
*/
|
||||
@Override
|
||||
|
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
/**
|
||||
* (SchisandraAuthUser)表数据库访问层
|
||||
*
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @since 2024-03-21 20:15:43
|
||||
*/
|
||||
public interface SchisandraAuthUserDao {
|
||||
|
@@ -7,7 +7,7 @@ import org.springframework.data.domain.PageRequest;
|
||||
/**
|
||||
* (SchisandraAuthUser)表服务接口
|
||||
*
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @since 2024-03-21 20:15:44
|
||||
*/
|
||||
public interface SchisandraAuthUserService {
|
||||
|
@@ -13,7 +13,7 @@ import javax.annotation.Resource;
|
||||
/**
|
||||
* (SchisandraAuthUser)表服务实现类
|
||||
*
|
||||
* @author landaiqing
|
||||
* @author schisandra
|
||||
* @since 2024-03-21 20:15:44
|
||||
*/
|
||||
@Service("schisandraAuthUserService")
|
||||
|
@@ -8,7 +8,7 @@ import java.security.NoSuchProviderException;
|
||||
/**
|
||||
* 数据库加密util
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
* @date: 2024/3/21
|
||||
*/
|
||||
public class DruidEncryptUtil {
|
||||
|
@@ -8,7 +8,7 @@ import org.springframework.context.annotation.ComponentScan;
|
||||
/**
|
||||
* 鉴权微服务启动类
|
||||
*
|
||||
* @author: landaiqing
|
||||
* @author: schisandra
|
||||
* @date: 2024/3/21
|
||||
*/
|
||||
@SpringBootApplication
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<Properties>
|
||||
<!-- 格式化输出:%date表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度 %msg:日志消息,%n是换行符-->
|
||||
<!-- %logger{36} 表示 Logger 名字最长36个字符 -->
|
||||
<property name="LOG_PATTERN" value="%clr{%d{yyyy-MM-dd HH:mm:ss.SSS}}{faint} %clr{%5p} %clr{${sys:PID}}{magenta} %clr{---}{faint} %clr{[%15.15t]}{faint} %clr{%-40.40c{1.}}{cyan} %clr{:}{faint} %m%n%xwEx" />
|
||||
<property name="LOG_PATTERN" value="%clr{%d{yyyy-MM-dd HH:mm:ss.SSS}}{faint} %clr{%5p} %clr{${sys:PID}}{magenta} %clr{---}{faint} %clr{[%thread]}{faint} %clr{%-40.40c{1.}}{cyan} %clr{:}{faint} %m%n%xwEx" />
|
||||
<!-- 定义日志存储的路径 -->
|
||||
<property name="FILE_PATH" value="../log" />
|
||||
<property name="FILE_NAME" value="schisandra-cloud-storage-auth.log" />
|
||||
|
Reference in New Issue
Block a user