package com.matrix.system.common.bean;
|
|
import com.matrix.core.anotations.Extend;
|
import com.matrix.core.pojo.EntityDTO;
|
|
import java.util.List;
|
|
/**
|
* 角色类
|
*
|
* @author JIANGYOUYAO
|
* @email 935090232@qq.com
|
* @date 2017年12月3日
|
*/
|
public class SysRole extends EntityDTO {
|
|
/**
|
* 默认角色
|
*/
|
public static final int DEFAULT = 1;
|
/**
|
* 非默认角色
|
*/
|
public static final int NOT_DEFAULT = 2;
|
|
/**
|
* 门店可分配角色
|
*/
|
public static final int SHOP_ABLE = 1;
|
/**
|
* 门店不可分配角色
|
*/
|
public static final int SHOP_UNABLE = 2;
|
|
@Extend
|
private static final long serialVersionUID = 1L;
|
|
private Long roleId;
|
|
private String roleName;
|
|
private String roleRemark;
|
|
private Long companyId;
|
|
/**
|
* 是否为默认角色
|
*/
|
private Integer isDefault;
|
|
/**
|
* 是否门店可以分配
|
*/
|
private Integer shopAble;
|
|
/**
|
* 角色所拥有的平台
|
*/
|
private String plates;
|
|
/**
|
* 所有客户权限
|
*/
|
private String customer;
|
|
/**
|
* 功能集合
|
*/
|
@Extend
|
private List<SysFunction> fnList;
|
|
/**
|
* 按钮
|
*/
|
@Extend
|
private String btnKeys;
|
|
/**
|
* 菜单
|
*/
|
@Extend
|
private String menuKeys;
|
|
public String getCustomer() {
|
return customer;
|
}
|
|
public void setCustomer(String customer) {
|
this.customer = customer;
|
}
|
|
public Integer getIsDefault() {
|
return isDefault;
|
}
|
|
public void setIsDefault(Integer isDefault) {
|
this.isDefault = isDefault;
|
}
|
|
public List<SysFunction> getFnList() {
|
return fnList;
|
}
|
|
public void setFnList(List<SysFunction> fnList) {
|
this.fnList = fnList;
|
}
|
|
public Long getRoleId() {
|
return roleId;
|
}
|
|
public void setRoleId(Long roleId) {
|
this.roleId = roleId;
|
}
|
|
public String getRoleName() {
|
return roleName;
|
}
|
|
public void setRoleName(String roleName) {
|
this.roleName = roleName;
|
}
|
|
public String getRoleRemark() {
|
return roleRemark;
|
}
|
|
public void setRoleRemark(String roleRemark) {
|
this.roleRemark = roleRemark;
|
}
|
|
public Long getCompanyId() {
|
return companyId;
|
}
|
|
public void setCompanyId(Long companyId) {
|
this.companyId = companyId;
|
}
|
|
public String getPlates() {
|
return plates;
|
}
|
|
public void setPlates(String plates) {
|
this.plates = plates;
|
}
|
|
public String getBtnKeys() {
|
return btnKeys;
|
}
|
|
public void setBtnKeys(String btnKeys) {
|
this.btnKeys = btnKeys;
|
}
|
|
public String getMenuKeys() {
|
return menuKeys;
|
}
|
|
public void setMenuKeys(String menuKeys) {
|
this.menuKeys = menuKeys;
|
}
|
|
public Integer getShopAble() {
|
return shopAble;
|
}
|
|
public void setShopAble(Integer shopAble) {
|
this.shopAble = shopAble;
|
}
|
|
@Override
|
public String toString() {
|
return "{SysRole:{" + "roleId:" + roleId + "," + "roleName:" + roleName + "," + "roleRemark:" + roleRemark + ","
|
+ "companyId:" + companyId + "," + "plates:" + plates + "," + "}}";
|
}
|
|
}
|