修改角色管理中权限分配 新增登录日志表

修改 @Create 标识为 @since
This commit is contained in:
2024-01-24 17:03:32 +08:00
parent 39d46336f7
commit 0d2680a3a2
116 changed files with 339 additions and 197 deletions

View File

@@ -13,7 +13,7 @@ import java.util.Date;
* 日期操作工具类
*
* @author yovinchen
* @Create 2023/10/12 18:04
* @since 2023/10/12 18:04
*/
public class DateUtil {

View File

@@ -10,7 +10,7 @@ import java.util.Date;
* Package: com.yovinchen.xlcs.common.utils
*
* @author yovinchen
* @Create 2023/9/22 15:50
* @since 2023/9/22 15:50
*/
public class JwtHelper {

View File

@@ -10,7 +10,7 @@ import org.springframework.context.annotation.Configuration;
* Package: com.yovinchen.xlcs.mq.config
*
* @author yovinchen
* @Create 2023/9/16 23:32
* @since 2023/9/16 23:32
*/
@Configuration
public class MQConfig {

View File

@@ -13,7 +13,7 @@ import javax.annotation.PostConstruct;
* Package: com.yovinchen.xlcs.mq.config
*
* @author yovinchen
* @Create 2023/9/16 23:33
* @since 2023/9/16 23:33
*/
@Component
public class MQProducerAckConfig implements RabbitTemplate.ReturnCallback, RabbitTemplate.ConfirmCallback {

View File

@@ -5,7 +5,7 @@ package com.yovinchen.xlcs.mq.constant;
* Package: com.yovinchen.xlcs.mq.constant
*
* @author yovinchen
* @Create 2023/9/16 23:34
* @since 2023/9/16 23:34
*/
public class MqConst {
/**

View File

@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* Package: com.yovinchen.xlcs.common.service
*
* @author yovinchen
* @Create 2023/9/16 18:12
* @since 2023/9/16 18:12
*/
@Service
public class RabbitService {

View File

@@ -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

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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

View File

@@ -26,7 +26,7 @@ import java.time.Duration;
* Redis配置类
*
* @author yovinchen
* @Create 2023/9/22 15:55
* @since 2023/9/22 15:55
*/
@Configuration

View File

@@ -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

View File

@@ -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

View File

@@ -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 {

View File

@@ -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

View File

@@ -9,7 +9,7 @@ import lombok.Data;
* 自定义异常类
*
* @author yovinchen
* @Create 2023/9/13 13:05
* @since 2023/9/13 13:05
*/
@Data

View File

@@ -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> {

View File

@@ -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 {

View File

@@ -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);//数据库表映射到实体的命名策略