|
|
|
@@ -1,5 +1,7 @@ |
|
|
|
package com.iformall.domain.po; |
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
|
|
|
|
import javax.persistence.*; |
|
|
|
import javax.persistence.Transient; |
|
|
|
import java.util.List; |
|
|
|
@@ -7,6 +9,7 @@ import javax.persistence.Id; |
|
|
|
import java.io.Serializable; |
|
|
|
|
|
|
|
@Table(name = "mall_role") |
|
|
|
@Data |
|
|
|
public class MallRole implements Serializable { |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
|
|
|
|
@@ -17,79 +20,19 @@ public class MallRole implements Serializable { |
|
|
|
protected List<Long> ids; |
|
|
|
@Transient |
|
|
|
protected String sortColumns; |
|
|
|
|
|
|
|
public Long getId() { |
|
|
|
return id; |
|
|
|
} |
|
|
|
|
|
|
|
public void setId(Long id) { |
|
|
|
this.id = id; |
|
|
|
} |
|
|
|
|
|
|
|
public String getSortColumns() { |
|
|
|
return sortColumns; |
|
|
|
} |
|
|
|
|
|
|
|
public List<Long> getIds() { |
|
|
|
return ids; |
|
|
|
} |
|
|
|
|
|
|
|
public void setIds(List<Long> ids) { |
|
|
|
this.ids = ids; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*租户ID**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId") |
|
|
|
private String tenantId; |
|
|
|
/*角色名称**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="角色名称",name="name") |
|
|
|
private String name; |
|
|
|
/*是否可用 0可用 1不可用**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="是否可用 0可用 1不可用",name="available") |
|
|
|
private String available; |
|
|
|
/*角色描述**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="角色描述",name="description") |
|
|
|
private String description; |
|
|
|
|
|
|
|
@Transient |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="权限列表",name="menus") |
|
|
|
private String menus; |
|
|
|
|
|
|
|
public String getMenus() { |
|
|
|
return menus; |
|
|
|
} |
|
|
|
|
|
|
|
public void setMenus(String menus) { |
|
|
|
this.menus = menus; |
|
|
|
} |
|
|
|
|
|
|
|
public String getTenantId() { |
|
|
|
return tenantId; |
|
|
|
} |
|
|
|
public void setTenantId(String _tenantId) { |
|
|
|
tenantId = _tenantId; |
|
|
|
} |
|
|
|
public String getName() { |
|
|
|
return name; |
|
|
|
} |
|
|
|
public void setName(String _name) { |
|
|
|
name = _name; |
|
|
|
} |
|
|
|
public String getAvailable() { |
|
|
|
return available; |
|
|
|
} |
|
|
|
public void setAvailable(String _available) { |
|
|
|
available = _available; |
|
|
|
} |
|
|
|
public String getDescription() { |
|
|
|
return description; |
|
|
|
} |
|
|
|
public void setDescription(String _description) { |
|
|
|
description = _description; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static enum Field |
|
|
|
{ |
|
|
|
|