Change auth module notes

pull/246/head
chen.ma 3 years ago
parent 6aefe7bbad
commit 52d39593e0

@ -44,9 +44,6 @@ import java.util.stream.Stream;
/**
* Global security config.
*
* @author chen.ma
* @date 2021/11/9 21:10
*/
@Configuration
@EnableWebSecurity

@ -19,9 +19,6 @@ package cn.hippo4j.auth.constant;
/**
* Constants.
*
* @author chen.ma
* @date 2021/11/9 22:24
*/
public class Constants {

@ -48,9 +48,6 @@ import static cn.hippo4j.common.constant.Constants.MAP_INITIAL_CAPACITY;
/**
* JWT authentication filter.
*
* @author chen.ma
* @date 2021/11/9 22:21
*/
@Slf4j
public class JWTAuthenticationFilter extends UsernamePasswordAuthenticationFilter {

@ -44,9 +44,6 @@ import static cn.hippo4j.common.web.exception.ErrorCodeEnum.LOGIN_TIMEOUT;
/**
* JWT authorization filter.
*
* @author chen.ma
* @date 2021/11/9 22:21
*/
@Slf4j
public class JWTAuthorizationFilter extends BasicAuthenticationFilter {

@ -23,9 +23,6 @@ import org.apache.ibatis.annotations.Mapper;
/**
* Permission mapper.
*
* @author chen.ma
* @date 2021/10/30 22:34
*/
@Mapper
public interface PermissionMapper extends BaseMapper<PermissionInfo> {

@ -23,9 +23,6 @@ import org.apache.ibatis.annotations.Mapper;
/**
* Role mapper.
*
* @author chen.ma
* @date 2021/10/30 22:55
*/
@Mapper
public interface RoleMapper extends BaseMapper<RoleInfo> {

@ -23,9 +23,6 @@ import org.apache.ibatis.annotations.Mapper;
/**
* User mapper.
*
* @author chen.ma
* @date 2021/10/30 21:42
*/
@Mapper
public interface UserMapper extends BaseMapper<UserInfo> {

@ -24,9 +24,6 @@ import java.util.Date;
/**
* Permission info.
*
* @author chen.ma
* @date 2021/10/30 22:33
*/
@Data
@TableName("permission")

@ -24,9 +24,6 @@ import java.util.Date;
/**
* Role info.
*
* @author chen.ma
* @date 2021/10/30 22:54
*/
@Data
@TableName("role")

@ -24,9 +24,6 @@ import java.util.Date;
/**
* User info.
*
* @author chen.ma
* @date 2021/10/30 21:37
*/
@Data
@TableName("user")

@ -22,9 +22,6 @@ import lombok.Data;
/**
* Permission query page.
*
* @author chen.ma
* @date 2021/10/30 21:47
*/
@Data
public class PermissionQueryPageReqDTO extends Page {

@ -21,9 +21,6 @@ import lombok.Data;
/**
* Permission resp dto.
*
* @author chen.ma
* @date 2021/10/30 22:21
*/
@Data
public class PermissionRespDTO {

@ -22,9 +22,6 @@ import lombok.Data;
/**
* Role query page.
*
* @author chen.ma
* @date 2021/10/30 21:47
*/
@Data
public class RoleQueryPageReqDTO extends Page {

@ -21,20 +21,17 @@ import lombok.Data;
/**
* Role resp dto.
*
* @author chen.ma
* @date 2021/10/30 22:49
*/
@Data
public class RoleRespDTO {
/**
* role
* Role
*/
private String role;
/**
* userName
* User name
*/
private String userName;
}

@ -25,9 +25,6 @@ import java.util.Collection;
/**
* Jwt user.
*
* @author chen.ma
* @date 2021/11/9 22:34
*/
@Data
public class JwtUser implements UserDetails {

@ -21,9 +21,6 @@ import lombok.Data;
/**
* Login user.
*
* @author chen.ma
* @date 2021/11/9 22:41
*/
@Data
public class LoginUser {

@ -23,9 +23,6 @@ import lombok.experimental.Accessors;
/**
* User query page.
*
* @author chen.ma
* @date 2021/10/30 21:47
*/
@Data
@Accessors(chain = true)

@ -23,9 +23,6 @@ import lombok.experimental.Accessors;
/**
* User req dto.
*
* @author chen.ma
* @date 2021/11/11 20:30
*/
@Data
@Accessors(chain = true)

@ -24,9 +24,6 @@ import java.util.Date;
/**
* User resp dto.
*
* @author chen.ma
* @date 2021/10/30 21:51
*/
@Data
public class UserRespDTO {

@ -26,10 +26,7 @@ import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Component;
/**
* Auth manager
*
* @author chen.ma
* @date 2021/12/20 20:34
* Auth manager.
*/
@Component
@AllArgsConstructor

@ -37,9 +37,6 @@ import static cn.hippo4j.common.constant.Constants.AUTHORITIES_KEY;
/**
* Jwt token manager.
*
* @author chen.ma
* @date 2021/12/20 20:36
*/
@Component
public class JwtTokenManager {

@ -22,9 +22,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
/**
* Permission service.
*
* @author chen.ma
* @date 2021/10/30 22:13
*/
public interface PermissionService {

@ -24,9 +24,6 @@ import java.util.List;
/**
* Role service.
*
* @author chen.ma
* @date 2021/10/30 22:45
*/
public interface RoleService {

@ -26,9 +26,6 @@ import java.util.List;
/**
* User service.
*
* @author chen.ma
* @date 2021/10/30 21:34
*/
public interface UserService {

@ -33,9 +33,6 @@ import org.springframework.stereotype.Service;
/**
* Permission service impl.
*
* @author chen.ma
* @date 2021/10/30 22:32
*/
@Service
@AllArgsConstructor

@ -38,9 +38,6 @@ import java.util.stream.Collectors;
/**
* Role service impl.
*
* @author chen.ma
* @date 2021/10/30 22:53
*/
@Service
@AllArgsConstructor

@ -32,9 +32,6 @@ import java.util.Set;
/**
* User details service impl.
*
* @author chen.ma
* @date 2021/11/9 22:26
*/
public class UserDetailsServiceImpl implements UserDetailsService {

@ -43,9 +43,6 @@ import java.util.stream.Collectors;
/**
* User service impl.
*
* @author chen.ma
* @date 2021/10/30 21:40
*/
@Service
@AllArgsConstructor

@ -31,10 +31,7 @@ import java.util.List;
import static cn.hippo4j.common.constant.Constants.MAP_INITIAL_CAPACITY;
/**
* Jwt token util.
*
* @author chen.ma
* @date 2021/11/9 22:43
* JWT token util.
*/
public class JwtTokenUtil {

@ -24,9 +24,6 @@ import java.io.Serializable;
/**
* ReturnT.
*
* @author chen.ma
* @date 2021/11/10 00:00
*/
@Data
@NoArgsConstructor

Loading…
Cancel
Save