package com.gkhy.safePlatform.account.entity.user;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.gkhy.safePlatform.account.enums.RoleStatusEnum;
|
import org.springframework.security.core.GrantedAuthority;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 角色
|
*/
|
@TableName("sys_role")
|
public class RoleInfo implements GrantedAuthority,Serializable {
|
|
private static final long serialVersionUID = 6442802132598221225L;
|
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
private String eid;
|
|
private String name;
|
|
private String code;
|
|
private String info;
|
|
private Byte status;
|
|
private Date gmtCreate;
|
|
private Date gmtModified;
|
|
public Long getId() {
|
return id;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public void setCode(String code) {
|
this.code = code;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
|
public String getEid() {
|
return eid;
|
}
|
|
public void setEid(String eid) {
|
this.eid = eid;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getInfo() {
|
return info;
|
}
|
|
public void setInfo(String info) {
|
this.info = info;
|
}
|
|
public Byte getStatus() {
|
return status;
|
}
|
|
public void setStatus(Byte status) {
|
this.status = status;
|
}
|
|
public Date getGmtCreate() {
|
return gmtCreate;
|
}
|
|
public void setGmtCreate(Date gmtCreate) {
|
this.gmtCreate = gmtCreate;
|
}
|
|
public Date getGmtModified() {
|
return gmtModified;
|
}
|
|
public void setGmtModified(Date gmtModified) {
|
this.gmtModified = gmtModified;
|
}
|
|
@Override
|
public String getAuthority() {
|
return "Role_";
|
}
|
|
|
}
|