refactor(core): 统一实体类引用并优化依赖配置
This commit is contained in:
@@ -50,6 +50,11 @@
|
||||
<groupId>cn.fateverse</groupId>
|
||||
<artifactId>common-file</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.fateverse</groupId>
|
||||
<artifactId>admin-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.fateverse.auth.entity;
|
||||
|
||||
import cn.fateverse.admin.entity.User;
|
||||
import cn.fateverse.common.core.entity.User;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package cn.fateverse.auth.service;
|
||||
|
||||
import cn.fateverse.admin.dubbo.DubboUserService;
|
||||
import cn.fateverse.common.core.entity.User;
|
||||
import cn.fateverse.common.core.enums.UserState;
|
||||
import cn.fateverse.common.core.exception.CustomException;
|
||||
import cn.fateverse.common.core.utils.ObjectUtils;
|
||||
import cn.fateverse.common.core.entity.LoginUser;
|
||||
import cn.fateverse.admin.entity.User;
|
||||
import cn.fateverse.common.security.dubbo.DubboUserSearchService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.security.core.userdetails.UserDetails;
|
||||
@@ -22,7 +22,7 @@ import org.springframework.stereotype.Component;
|
||||
public class UserDetailsServiceImpl implements UserDetailsService {
|
||||
|
||||
@DubboReference
|
||||
private DubboUserService userService;
|
||||
private DubboUserSearchService userService;
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package cn.fateverse.auth.service.impl;
|
||||
|
||||
import cn.fateverse.auth.entity.UserInfo;
|
||||
import cn.fateverse.common.core.entity.Role;
|
||||
import cn.fateverse.common.core.entity.User;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.fateverse.admin.dubbo.DubboMenuService;
|
||||
import cn.fateverse.admin.dubbo.DubboUserService;
|
||||
import cn.fateverse.admin.vo.RouterVo;
|
||||
import cn.fateverse.auth.entity.LoginBody;
|
||||
import cn.fateverse.auth.service.LoginService;
|
||||
import cn.fateverse.admin.entity.Role;
|
||||
import cn.fateverse.admin.entity.User;
|
||||
import cn.fateverse.common.core.constant.CacheConstants;
|
||||
import cn.fateverse.common.core.constant.DateConstants;
|
||||
import cn.fateverse.common.core.exception.CustomException;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package cn.fateverse.auth.service.impl;
|
||||
|
||||
import cn.fateverse.admin.dubbo.DubboMenuService;
|
||||
import cn.fateverse.admin.entity.User;
|
||||
import cn.fateverse.common.core.entity.LoginUser;
|
||||
import cn.fateverse.common.core.entity.User;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user