package com.qianwen.smartman.modules.develop.vo;
|
|
import java.util.List;
|
import com.qianwen.smartman.common.cache.RegionCache;
|
import org.springblade.generator.entity.PageTemplateEnum;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/develop/vo/CodeTemplateVo.class */
|
public class CodeTemplateVo {
|
private int tempIndex;
|
private String modulePath;
|
private String fileName;
|
private int tabNum;
|
private List<CodeVo> tabs;
|
|
public void setTempIndex(final int tempIndex) {
|
this.tempIndex = tempIndex;
|
}
|
|
public void setModulePath(final String modulePath) {
|
this.modulePath = modulePath;
|
}
|
|
public void setFileName(final String fileName) {
|
this.fileName = fileName;
|
}
|
|
public void setTabNum(final int tabNum) {
|
this.tabNum = tabNum;
|
}
|
|
public void setTabs(final List<CodeVo> tabs) {
|
this.tabs = tabs;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof CodeTemplateVo) {
|
CodeTemplateVo other = (CodeTemplateVo) o;
|
if (other.canEqual(this) && getTempIndex() == other.getTempIndex() && getTabNum() == other.getTabNum()) {
|
Object this$modulePath = getModulePath();
|
Object other$modulePath = other.getModulePath();
|
if (this$modulePath == null) {
|
if (other$modulePath != null) {
|
return false;
|
}
|
} else if (!this$modulePath.equals(other$modulePath)) {
|
return false;
|
}
|
Object this$fileName = getFileName();
|
Object other$fileName = other.getFileName();
|
if (this$fileName == null) {
|
if (other$fileName != null) {
|
return false;
|
}
|
} else if (!this$fileName.equals(other$fileName)) {
|
return false;
|
}
|
Object this$tabs = getTabs();
|
Object other$tabs = other.getTabs();
|
return this$tabs == null ? other$tabs == null : this$tabs.equals(other$tabs);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof CodeTemplateVo;
|
}
|
|
public int hashCode() {
|
int result = (1 * 59) + getTempIndex();
|
int result2 = (result * 59) + getTabNum();
|
Object $modulePath = getModulePath();
|
int result3 = (result2 * 59) + ($modulePath == null ? 43 : $modulePath.hashCode());
|
Object $fileName = getFileName();
|
int result4 = (result3 * 59) + ($fileName == null ? 43 : $fileName.hashCode());
|
Object $tabs = getTabs();
|
return (result4 * 59) + ($tabs == null ? 43 : $tabs.hashCode());
|
}
|
|
public String toString() {
|
return "CodeTemplateVo(tempIndex=" + getTempIndex() + ", modulePath=" + getModulePath() + ", fileName=" + getFileName() + ", tabNum=" + getTabNum() + ", tabs=" + getTabs() + ")";
|
}
|
|
public int getTempIndex() {
|
return this.tempIndex;
|
}
|
|
public String getModulePath() {
|
return this.modulePath;
|
}
|
|
public String getFileName() {
|
return this.fileName;
|
}
|
|
public int getTabNum() {
|
return this.tabNum;
|
}
|
|
public List<CodeVo> getTabs() {
|
return this.tabs;
|
}
|
|
public boolean isTabPage() {
|
return this.tempIndex <= 3;
|
}
|
|
public PageTemplateEnum pageTemplate() {
|
switch (this.tempIndex) {
|
case 1:
|
case 4:
|
return PageTemplateEnum.PAGE_COLUMNS_3;
|
case 2:
|
case RegionCache.VILLAGE_LEVEL /* 5 */:
|
return PageTemplateEnum.PAGE_COLUMNS_2;
|
case 3:
|
default:
|
return PageTemplateEnum.PAGE_COLUMNS_1;
|
}
|
}
|
}
|