package com.qianwen.core.scanner.modular.model;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.Date;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
@ApiModel(description = "ResourceDefinition对象")
|
@TableName("blade_resource_definition")
|
/* loaded from: blade-starter-scanner-9.3.0.0-SNAPSHOT.jar:org/springblade/core/scanner/modular/model/ResourceDefinition.class */
|
public class ResourceDefinition implements Serializable {
|
private static final long serialVersionUID = 1;
|
@TableId("code")
|
@ApiModelProperty("资源的标识")
|
private String code;
|
@ApiModelProperty("资源名称")
|
private String name;
|
@ApiModelProperty("资源所属模块")
|
private String moduleCode;
|
@ApiModelProperty("控制器模块")
|
private String controllerCode;
|
@ApiModelProperty("控制器类名称")
|
private String className;
|
@ApiModelProperty("控制器中的方法名称")
|
private String methodName;
|
@ApiModelProperty("资源的请求路径")
|
private String url;
|
@ApiModelProperty("http请求方法")
|
private String httpMethod;
|
@ApiModelProperty("是否是菜单按钮")
|
private Boolean buttonFlag;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty("资源添加日期")
|
private Date createTime;
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setModuleCode(final String moduleCode) {
|
this.moduleCode = moduleCode;
|
}
|
|
public void setControllerCode(final String controllerCode) {
|
this.controllerCode = controllerCode;
|
}
|
|
public void setClassName(final String className) {
|
this.className = className;
|
}
|
|
public void setMethodName(final String methodName) {
|
this.methodName = methodName;
|
}
|
|
public void setUrl(final String url) {
|
this.url = url;
|
}
|
|
public void setHttpMethod(final String httpMethod) {
|
this.httpMethod = httpMethod;
|
}
|
|
public void setButtonFlag(final Boolean buttonFlag) {
|
this.buttonFlag = buttonFlag;
|
}
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
public void setCreateTime(final Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ResourceDefinition) {
|
ResourceDefinition other = (ResourceDefinition) o;
|
if (other.canEqual(this)) {
|
Object this$buttonFlag = getButtonFlag();
|
Object other$buttonFlag = other.getButtonFlag();
|
if (this$buttonFlag == null) {
|
if (other$buttonFlag != null) {
|
return false;
|
}
|
} else if (!this$buttonFlag.equals(other$buttonFlag)) {
|
return false;
|
}
|
Object this$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
return false;
|
}
|
Object this$name = getName();
|
Object other$name = other.getName();
|
if (this$name == null) {
|
if (other$name != null) {
|
return false;
|
}
|
} else if (!this$name.equals(other$name)) {
|
return false;
|
}
|
Object this$moduleCode = getModuleCode();
|
Object other$moduleCode = other.getModuleCode();
|
if (this$moduleCode == null) {
|
if (other$moduleCode != null) {
|
return false;
|
}
|
} else if (!this$moduleCode.equals(other$moduleCode)) {
|
return false;
|
}
|
Object this$controllerCode = getControllerCode();
|
Object other$controllerCode = other.getControllerCode();
|
if (this$controllerCode == null) {
|
if (other$controllerCode != null) {
|
return false;
|
}
|
} else if (!this$controllerCode.equals(other$controllerCode)) {
|
return false;
|
}
|
Object this$className = getClassName();
|
Object other$className = other.getClassName();
|
if (this$className == null) {
|
if (other$className != null) {
|
return false;
|
}
|
} else if (!this$className.equals(other$className)) {
|
return false;
|
}
|
Object this$methodName = getMethodName();
|
Object other$methodName = other.getMethodName();
|
if (this$methodName == null) {
|
if (other$methodName != null) {
|
return false;
|
}
|
} else if (!this$methodName.equals(other$methodName)) {
|
return false;
|
}
|
Object this$url = getUrl();
|
Object other$url = other.getUrl();
|
if (this$url == null) {
|
if (other$url != null) {
|
return false;
|
}
|
} else if (!this$url.equals(other$url)) {
|
return false;
|
}
|
Object this$httpMethod = getHttpMethod();
|
Object other$httpMethod = other.getHttpMethod();
|
if (this$httpMethod == null) {
|
if (other$httpMethod != null) {
|
return false;
|
}
|
} else if (!this$httpMethod.equals(other$httpMethod)) {
|
return false;
|
}
|
Object this$createTime = getCreateTime();
|
Object other$createTime = other.getCreateTime();
|
return this$createTime == null ? other$createTime == null : this$createTime.equals(other$createTime);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ResourceDefinition;
|
}
|
|
public int hashCode() {
|
Object $buttonFlag = getButtonFlag();
|
int result = (1 * 59) + ($buttonFlag == null ? 43 : $buttonFlag.hashCode());
|
Object $code = getCode();
|
int result2 = (result * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $name = getName();
|
int result3 = (result2 * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $moduleCode = getModuleCode();
|
int result4 = (result3 * 59) + ($moduleCode == null ? 43 : $moduleCode.hashCode());
|
Object $controllerCode = getControllerCode();
|
int result5 = (result4 * 59) + ($controllerCode == null ? 43 : $controllerCode.hashCode());
|
Object $className = getClassName();
|
int result6 = (result5 * 59) + ($className == null ? 43 : $className.hashCode());
|
Object $methodName = getMethodName();
|
int result7 = (result6 * 59) + ($methodName == null ? 43 : $methodName.hashCode());
|
Object $url = getUrl();
|
int result8 = (result7 * 59) + ($url == null ? 43 : $url.hashCode());
|
Object $httpMethod = getHttpMethod();
|
int result9 = (result8 * 59) + ($httpMethod == null ? 43 : $httpMethod.hashCode());
|
Object $createTime = getCreateTime();
|
return (result9 * 59) + ($createTime == null ? 43 : $createTime.hashCode());
|
}
|
|
public String toString() {
|
return "ResourceDefinition(code=" + getCode() + ", name=" + getName() + ", moduleCode=" + getModuleCode() + ", controllerCode=" + getControllerCode() + ", className=" + getClassName() + ", methodName=" + getMethodName() + ", url=" + getUrl() + ", httpMethod=" + getHttpMethod() + ", buttonFlag=" + getButtonFlag() + ", createTime=" + getCreateTime() + ")";
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getModuleCode() {
|
return this.moduleCode;
|
}
|
|
public String getControllerCode() {
|
return this.controllerCode;
|
}
|
|
public String getClassName() {
|
return this.className;
|
}
|
|
public String getMethodName() {
|
return this.methodName;
|
}
|
|
public String getUrl() {
|
return this.url;
|
}
|
|
public String getHttpMethod() {
|
return this.httpMethod;
|
}
|
|
public Boolean getButtonFlag() {
|
return this.buttonFlag;
|
}
|
|
public Date getCreateTime() {
|
return this.createTime;
|
}
|
}
|