package com.qianwen.smartman.modules.system.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; @ApiModel(value = "ResourceDefinitionVo对象", description = "blade_resource_definition") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/vo/ResourceDefinitionVO.class */ public class ResourceDefinitionVO implements Serializable { @NotBlank(message = "资源的标识不能为空") @ApiModelProperty("资源的标识") @Size(max = 255, message = "资源的标识长度不能超过255") private String code; @ApiModelProperty("资源名称") @Size(max = 255, message = "资源名称长度不能超过255") private String name; @ApiModelProperty("应用的标识") @Size(max = 255, message = "应用的标识长度不能超过255") private String moduleCode; @ApiModelProperty("资源所属模块") @Size(max = 255, message = "资源所属模块长度不能超过255") private String controllerCode; @ApiModelProperty("控制器类名称") @Size(max = 255, message = "控制器类名称长度不能超过255") private String className; @ApiModelProperty("控制器中的方法名称") @Size(max = 255, message = "控制器中的方法名称长度不能超过255") private String methodName; @ApiModelProperty("资源的请求路径") @Size(max = 255, message = "资源的请求路径长度不能超过255") private String url; @ApiModelProperty("http请求方法") @Size(max = 255, message = "http请求方法长度不能超过255") private String httpMethod; @ApiModelProperty("是否是菜单按钮") private Boolean buttonFlag; 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; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof ResourceDefinitionVO) { ResourceDefinitionVO other = (ResourceDefinitionVO) 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(); return this$httpMethod == null ? other$httpMethod == null : this$httpMethod.equals(other$httpMethod); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof ResourceDefinitionVO; } 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(); return (result8 * 59) + ($httpMethod == null ? 43 : $httpMethod.hashCode()); } public String toString() { return "ResourceDefinitionVO(code=" + getCode() + ", name=" + getName() + ", moduleCode=" + getModuleCode() + ", controllerCode=" + getControllerCode() + ", className=" + getClassName() + ", methodName=" + getMethodName() + ", url=" + getUrl() + ", httpMethod=" + getHttpMethod() + ", buttonFlag=" + getButtonFlag() + ")"; } 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; } }