修改角色管理中权限分配 新增登录日志表
修改 @Create 标识为 @since
This commit is contained in:
		@@ -27,7 +27,7 @@ import javax.servlet.http.HttpServletRequest;
 | 
			
		||||
 * Package: com.yovinchen.xlcs.common.aspect
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2024/1/23 10:43
 | 
			
		||||
 * @since 2024/1/23 10:43
 | 
			
		||||
 */
 | 
			
		||||
@Aspect
 | 
			
		||||
@Component
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ import com.yovinchen.xlcs.vo.user.UserLoginVo;
 | 
			
		||||
 * Package: com.yovinchen.xlcs.common.auth
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/22 17:40
 | 
			
		||||
 * @since 2023/9/22 17:40
 | 
			
		||||
 */
 | 
			
		||||
//ThreadLocal工具类
 | 
			
		||||
public class AuthContextHolder {
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ import javax.annotation.Resource;
 | 
			
		||||
 * Package: com.yovinchen.xlcs.common.auth
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/22 23:58
 | 
			
		||||
 * @since 2023/9/22 23:58
 | 
			
		||||
 */
 | 
			
		||||
@Configuration
 | 
			
		||||
public class LoginMvcConfigurerAdapter extends WebMvcConfigurationSupport {
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ import javax.servlet.http.HttpServletResponse;
 | 
			
		||||
 * Package: com.yovinchen.xlcs.common.auth
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/22 23:47
 | 
			
		||||
 * @since 2023/9/22 23:47
 | 
			
		||||
 */
 | 
			
		||||
public class UserLoginInterceptor implements HandlerInterceptor {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
 | 
			
		||||
 * MybatisPlus配置类
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/13 12:56
 | 
			
		||||
 * @since 2023/9/13 12:56
 | 
			
		||||
 */
 | 
			
		||||
@EnableTransactionManagement
 | 
			
		||||
@Configuration
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ import java.time.Duration;
 | 
			
		||||
 * Redis配置类
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/22 15:55
 | 
			
		||||
 * @since 2023/9/22 15:55
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@Configuration
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@ import org.springframework.util.StringUtils;
 | 
			
		||||
 * Package: com.yovinchen.xlcs.common.config
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/10/12 16:48
 | 
			
		||||
 * @since 2023/10/12 16:48
 | 
			
		||||
 */
 | 
			
		||||
@Data
 | 
			
		||||
@Configuration
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@ import java.util.List;
 | 
			
		||||
 * Package: com.yovinchen.xlcs.common.config
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/13 13:18
 | 
			
		||||
 * @since 2023/9/13 13:18
 | 
			
		||||
 */
 | 
			
		||||
@Configuration
 | 
			
		||||
@EnableSwagger2WebMvc
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ package com.yovinchen.xlcs.common.constant;
 | 
			
		||||
 * Redis常量配置类
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/22 15:57
 | 
			
		||||
 * @since 2023/9/22 15:57
 | 
			
		||||
 */
 | 
			
		||||
public class RedisConst {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 | 
			
		||||
 * 统一异常处理类
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/13 13:03
 | 
			
		||||
 * @since 2023/9/13 13:03
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ControllerAdvice
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ import lombok.Data;
 | 
			
		||||
 * 自定义异常类
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/13 13:05
 | 
			
		||||
 * @since 2023/9/13 13:05
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@Data
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ import lombok.Data;
 | 
			
		||||
 * 统一返回结果类
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/13 13:01
 | 
			
		||||
 * @since 2023/9/13 13:01
 | 
			
		||||
 */
 | 
			
		||||
@Data
 | 
			
		||||
public class Result<T> {
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ import lombok.Getter;
 | 
			
		||||
 * 统一返回结果状态信息类
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/13 12:59
 | 
			
		||||
 * @since 2023/9/13 12:59
 | 
			
		||||
 */
 | 
			
		||||
@Getter
 | 
			
		||||
public enum ResultCodeEnum {
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
 | 
			
		||||
 * Package: com.yovinchen.xlcs
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/9/14 08:49
 | 
			
		||||
 * @since 2023/9/14 08:49
 | 
			
		||||
 */
 | 
			
		||||
public class CodeGet {
 | 
			
		||||
 | 
			
		||||
@@ -25,7 +25,7 @@ public class CodeGet {
 | 
			
		||||
        // 2、全局配置
 | 
			
		||||
        // 全局配置
 | 
			
		||||
        GlobalConfig gc = new GlobalConfig();
 | 
			
		||||
        gc.setOutputDir("yovinchen-xlcs-parent/service/service-order" + "/src/main/java");
 | 
			
		||||
        gc.setOutputDir("xlcs-parent/service/service-acl" + "/src/main/java");
 | 
			
		||||
 | 
			
		||||
        gc.setServiceName("%sService");    //去掉Service接口的首字母I
 | 
			
		||||
        gc.setAuthor("yovinchen");
 | 
			
		||||
@@ -34,17 +34,17 @@ public class CodeGet {
 | 
			
		||||
 | 
			
		||||
        // 3、数据源配置
 | 
			
		||||
        DataSourceConfig dsc = new DataSourceConfig();
 | 
			
		||||
        dsc.setUrl("jdbc:mysql://82.157.68.223:3306/shequ-order?serverTimezone=GMT%2B8&useSSL=false");
 | 
			
		||||
        dsc.setUrl("jdbc:mysql://82.157.68.223:3306/shequ-acl?serverTimezone=GMT%2B8&useSSL=false");
 | 
			
		||||
        dsc.setDriverName("com.mysql.cj.jdbc.Driver");
 | 
			
		||||
        dsc.setUsername("shequ-order");
 | 
			
		||||
        dsc.setPassword("shequ-order");
 | 
			
		||||
        dsc.setUsername("shequ-acl");
 | 
			
		||||
        dsc.setPassword("shequ-acl");
 | 
			
		||||
        dsc.setDbType(DbType.MYSQL);
 | 
			
		||||
        mpg.setDataSource(dsc);
 | 
			
		||||
 | 
			
		||||
        // 4、包配置
 | 
			
		||||
        PackageConfig pc = new PackageConfig();
 | 
			
		||||
        pc.setParent("com.yovinchen.xlcs");
 | 
			
		||||
        pc.setModuleName("order"); //模块名
 | 
			
		||||
        pc.setModuleName("acl"); //模块名
 | 
			
		||||
        pc.setController("controller");
 | 
			
		||||
        pc.setService("service");
 | 
			
		||||
        pc.setMapper("mapper");
 | 
			
		||||
@@ -53,7 +53,7 @@ public class CodeGet {
 | 
			
		||||
        // 5、策略配置
 | 
			
		||||
        StrategyConfig strategy = new StrategyConfig();
 | 
			
		||||
 | 
			
		||||
        strategy.setInclude("cart_info", "order_info", "order_deliver", "order_item", "order_log", "order_return_apply", "order_return_reason", "order_set", "payment_info", "refund_info");
 | 
			
		||||
        strategy.setInclude("role_permission", "admin_login_log");
 | 
			
		||||
 | 
			
		||||
        strategy.setNaming(NamingStrategy.underline_to_camel);//数据库表映射到实体的命名策略
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user