-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
登录时候优化获取角色权限SQL,增加用户租户判断.
- Loading branch information
Showing
14 changed files
with
142 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 83 additions & 9 deletions
92
boot/platform/src/main/java/com/platform/boot/security/core/user/UserResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,103 @@ | ||
package com.platform.boot.security.core.user; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.databind.JsonNode; | ||
import com.platform.boot.security.core.UserAuditor; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* @author <a href="https://github.com/vnobo">Alex bob</a> | ||
*/ | ||
@Getter | ||
@EqualsAndHashCode(callSuper = true) | ||
@ToString(callSuper = true) | ||
public class UserResponse extends User { | ||
/** | ||
* UserResponse.java | ||
* <p> | ||
* This file contains the code for the UserResponse class. | ||
* It is written in the Java programming language. | ||
* The code overrides the getPassword() method from the superclass | ||
* and uses the @JsonIgnore annotation to indicate that the password | ||
* should be ignored during serialization and deserialization. | ||
*/ | ||
|
||
@JsonIgnore | ||
@Override | ||
public String getPhone() { | ||
return super.getPhone(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public String getEmail() { | ||
return super.getEmail(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public String getPassword() { | ||
return super.getPassword(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public String getUsername() { | ||
return super.getUsername(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public Boolean getDisabled() { | ||
return super.getDisabled(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public Boolean getAccountExpired() { | ||
return super.getAccountExpired(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public Boolean getAccountLocked() { | ||
return super.getAccountLocked(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public Boolean getCredentialsExpired() { | ||
return super.getCredentialsExpired(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public JsonNode getExtend() { | ||
return super.getExtend(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public LocalDateTime getLoginTime() { | ||
return super.getLoginTime(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public UserAuditor getCreator() { | ||
return super.getCreator(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public UserAuditor getUpdater() { | ||
return super.getUpdater(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public LocalDateTime getUpdatedTime() { | ||
return super.getUpdatedTime(); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public LocalDateTime getCreatedTime() { | ||
return super.getCreatedTime(); | ||
} | ||
} |
Oops, something went wrong.