1
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
package com.cym.ext;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.cym.model.Admin;
|
||||
import com.cym.utils.MenuUtils.Menu;
|
||||
import com.cym.utils.MenuUtils.MenuCategory;
|
||||
|
||||
public class AdminExt extends Admin {
|
||||
|
||||
private static final long serialVersionUID = 1137434496709241566L;
|
||||
|
||||
List<MenuCategory> menuCategoryList;
|
||||
|
||||
List<Menu> menuList;
|
||||
|
||||
List<NameValue> nameValues;
|
||||
|
||||
|
||||
public List<NameValue> getNameValues() {
|
||||
return nameValues;
|
||||
}
|
||||
|
||||
public void setNameValues(List<NameValue> nameValues) {
|
||||
this.nameValues = nameValues;
|
||||
}
|
||||
|
||||
public List<MenuCategory> getMenuCategoryList() {
|
||||
return menuCategoryList;
|
||||
}
|
||||
|
||||
public void setMenuCategoryList(List<MenuCategory> menuCategoryList) {
|
||||
this.menuCategoryList = menuCategoryList;
|
||||
}
|
||||
|
||||
public static long getSerialversionuid() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public List<Menu> getMenuList() {
|
||||
return menuList;
|
||||
}
|
||||
|
||||
public void setMenuList(List<Menu> menuList) {
|
||||
this.menuList = menuList;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.cym.ext;
|
||||
|
||||
import com.cym.model.Admin;
|
||||
import com.cym.model.Example;
|
||||
|
||||
public class ExampleExt extends Example {
|
||||
|
||||
Admin admin;
|
||||
|
||||
public Admin getAdmin() {
|
||||
return admin;
|
||||
}
|
||||
|
||||
public void setAdmin(Admin admin) {
|
||||
this.admin = admin;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.cym.ext;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class NameValue implements Serializable {
|
||||
private static final long serialVersionUID = 7601908525981573453L;
|
||||
|
||||
String name;
|
||||
String value;
|
||||
|
||||
public NameValue() {
|
||||
|
||||
}
|
||||
|
||||
public NameValue(String name, String value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.cym.ext;
|
||||
|
||||
import com.cym.model.Level;
|
||||
import com.cym.model.User;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
@Schema(description = "用户Ext")
|
||||
public class UserExt extends User {
|
||||
private static final long serialVersionUID = 3218155943288312071L;
|
||||
|
||||
@Schema(description = "用户等级")
|
||||
Level level;
|
||||
@Schema(description = "域名数")
|
||||
Long domainCount;
|
||||
@Schema(description = "四层转发数")
|
||||
Long upstreamCount;
|
||||
@Schema(description = "证书数")
|
||||
Long certCount;
|
||||
@Schema(description = "推广url")
|
||||
String parentUrl;
|
||||
|
||||
@Schema(description = "主机数量")
|
||||
Long machineCount;
|
||||
|
||||
public static long getSerialversionuid() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public Long getMachineCount() {
|
||||
return machineCount;
|
||||
}
|
||||
|
||||
public void setMachineCount(Long machineCount) {
|
||||
this.machineCount = machineCount;
|
||||
}
|
||||
|
||||
public Level getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
public void setLevel(Level level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Long getDomainCount() {
|
||||
return domainCount;
|
||||
}
|
||||
|
||||
public void setDomainCount(Long domainCount) {
|
||||
this.domainCount = domainCount;
|
||||
}
|
||||
|
||||
public Long getUpstreamCount() {
|
||||
return upstreamCount;
|
||||
}
|
||||
|
||||
public void setUpstreamCount(Long upstreamCount) {
|
||||
this.upstreamCount = upstreamCount;
|
||||
}
|
||||
|
||||
public Long getCertCount() {
|
||||
return certCount;
|
||||
}
|
||||
|
||||
public void setCertCount(Long certCount) {
|
||||
this.certCount = certCount;
|
||||
}
|
||||
|
||||
public String getParentUrl() {
|
||||
return parentUrl;
|
||||
}
|
||||
|
||||
public void setParentUrl(String parentUrl) {
|
||||
this.parentUrl = parentUrl;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user