Change auth module notes

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save