package com.qianwen.smartman.modules.system.entity;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.List;
|
import com.qianwen.core.tool.support.Kv;
|
|
@ApiModel(value = "UserInfo", description = "用户信息")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/UserInfo.class */
|
public class UserInfo implements Serializable {
|
private static final long serialVersionUID = 1;
|
@ApiModelProperty("用户")
|
private User user;
|
@ApiModelProperty("拓展信息")
|
private Kv detail;
|
@ApiModelProperty("权限集合")
|
private List<String> permissions;
|
@ApiModelProperty("角色集合")
|
private List<String> roles;
|
@ApiModelProperty("第三方授权id")
|
private String oauthId;
|
|
public void setUser(final User user) {
|
this.user = user;
|
}
|
|
public void setDetail(final Kv detail) {
|
this.detail = detail;
|
}
|
|
public void setPermissions(final List<String> permissions) {
|
this.permissions = permissions;
|
}
|
|
public void setRoles(final List<String> roles) {
|
this.roles = roles;
|
}
|
|
public void setOauthId(final String oauthId) {
|
this.oauthId = oauthId;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof UserInfo) {
|
UserInfo other = (UserInfo) o;
|
if (other.canEqual(this)) {
|
Object this$user = getUser();
|
Object other$user = other.getUser();
|
if (this$user == null) {
|
if (other$user != null) {
|
return false;
|
}
|
} else if (!this$user.equals(other$user)) {
|
return false;
|
}
|
Object this$detail = getDetail();
|
Object other$detail = other.getDetail();
|
if (this$detail == null) {
|
if (other$detail != null) {
|
return false;
|
}
|
} else if (!this$detail.equals(other$detail)) {
|
return false;
|
}
|
Object this$permissions = getPermissions();
|
Object other$permissions = other.getPermissions();
|
if (this$permissions == null) {
|
if (other$permissions != null) {
|
return false;
|
}
|
} else if (!this$permissions.equals(other$permissions)) {
|
return false;
|
}
|
Object this$roles = getRoles();
|
Object other$roles = other.getRoles();
|
if (this$roles == null) {
|
if (other$roles != null) {
|
return false;
|
}
|
} else if (!this$roles.equals(other$roles)) {
|
return false;
|
}
|
Object this$oauthId = getOauthId();
|
Object other$oauthId = other.getOauthId();
|
return this$oauthId == null ? other$oauthId == null : this$oauthId.equals(other$oauthId);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof UserInfo;
|
}
|
|
public int hashCode() {
|
Object $user = getUser();
|
int result = (1 * 59) + ($user == null ? 43 : $user.hashCode());
|
Object $detail = getDetail();
|
int result2 = (result * 59) + ($detail == null ? 43 : $detail.hashCode());
|
Object $permissions = getPermissions();
|
int result3 = (result2 * 59) + ($permissions == null ? 43 : $permissions.hashCode());
|
Object $roles = getRoles();
|
int result4 = (result3 * 59) + ($roles == null ? 43 : $roles.hashCode());
|
Object $oauthId = getOauthId();
|
return (result4 * 59) + ($oauthId == null ? 43 : $oauthId.hashCode());
|
}
|
|
public String toString() {
|
return "UserInfo(user=" + getUser() + ", detail=" + getDetail() + ", permissions=" + getPermissions() + ", roles=" + getRoles() + ", oauthId=" + getOauthId() + ")";
|
}
|
|
public User getUser() {
|
return this.user;
|
}
|
|
public Kv getDetail() {
|
return this.detail;
|
}
|
|
public List<String> getPermissions() {
|
return this.permissions;
|
}
|
|
public List<String> getRoles() {
|
return this.roles;
|
}
|
|
public String getOauthId() {
|
return this.oauthId;
|
}
|
}
|