parent
d9a1b4ed55
commit
f26e3302ac
@ -1,63 +0,0 @@
|
||||
package com.bwie.ruoyi.pojo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* 用户类型表
|
||||
* @TableName tb_user_role
|
||||
*/
|
||||
@TableName(value ="tb_user_role")
|
||||
@Data
|
||||
public class TbUserRole implements Serializable {
|
||||
/**
|
||||
* 类型ID
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long userRoleId;
|
||||
|
||||
/**
|
||||
* 用户角色类型
|
||||
*/
|
||||
private String userRoleName;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 用户角色有哪些功能
|
||||
*/
|
||||
private String roleFunction;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.bwie.user.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.annotation.Excel;
|
||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 用户类型对象 tb_user_role
|
||||
*
|
||||
* @author xs
|
||||
* @date 2023-01-15
|
||||
*/
|
||||
public class TbUserRole extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 类型ID */
|
||||
private Long userRoleId;
|
||||
|
||||
/** 用户角色类型 */
|
||||
@Excel(name = "用户角色类型")
|
||||
private String userRoleName;
|
||||
|
||||
/** 用户角色有哪些功能 */
|
||||
@Excel(name = "用户角色有哪些功能")
|
||||
private String roleFunction;
|
||||
|
||||
public void setUserRoleId(Long userRoleId)
|
||||
{
|
||||
this.userRoleId = userRoleId;
|
||||
}
|
||||
|
||||
public Long getUserRoleId()
|
||||
{
|
||||
return userRoleId;
|
||||
}
|
||||
public void setUserRoleName(String userRoleName)
|
||||
{
|
||||
this.userRoleName = userRoleName;
|
||||
}
|
||||
|
||||
public String getUserRoleName()
|
||||
{
|
||||
return userRoleName;
|
||||
}
|
||||
public void setRoleFunction(String roleFunction)
|
||||
{
|
||||
this.roleFunction = roleFunction;
|
||||
}
|
||||
|
||||
public String getRoleFunction()
|
||||
{
|
||||
return roleFunction;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("userRoleId", getUserRoleId())
|
||||
.append("userRoleName", getUserRoleName())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("roleFunction", getRoleFunction())
|
||||
.toString();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue