From b48e7a6a605eab60f2d7f88b9747f3823d9972e6 Mon Sep 17 00:00:00 2001 From: AlexBob <5199840@qq.com> Date: Fri, 17 May 2024 10:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boot/security/core/user/UserResponse.java | 81 ------------------- 1 file changed, 81 deletions(-) diff --git a/boot/platform/src/main/java/com/platform/boot/security/core/user/UserResponse.java b/boot/platform/src/main/java/com/platform/boot/security/core/user/UserResponse.java index 044ff3db..ff1f964f 100644 --- a/boot/platform/src/main/java/com/platform/boot/security/core/user/UserResponse.java +++ b/boot/platform/src/main/java/com/platform/boot/security/core/user/UserResponse.java @@ -1,14 +1,10 @@ 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 Alex bob */ @@ -17,87 +13,10 @@ @ToString(callSuper = true) public class UserResponse extends User { - @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(); - } } \ No newline at end of file