用户模块(苏海龙)
This commit is contained in:
parent
d9a1b4ed55
commit
f26e3302ac
|
|
@ -1,58 +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_perm
|
|
||||||
*/
|
|
||||||
@TableName(value ="tb_perm")
|
|
||||||
@Data
|
|
||||||
public class TbPerm implements Serializable {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@TableId(type = IdType.AUTO)
|
|
||||||
private Integer permId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 权限名称
|
|
||||||
*/
|
|
||||||
private String permName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 权限编码
|
|
||||||
*/
|
|
||||||
private String permCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除状态0:未删除1:已删除
|
|
||||||
*/
|
|
||||||
private Integer deleted;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
||||||
|
|
@ -1,58 +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_role_perm
|
|
||||||
*/
|
|
||||||
@TableName(value ="tb_role_perm")
|
|
||||||
@Data
|
|
||||||
public class TbRolePerm implements Serializable {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@TableId(type = IdType.AUTO)
|
|
||||||
private Integer rolePermId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 角色ID
|
|
||||||
*/
|
|
||||||
private Integer roleId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 权限ID
|
|
||||||
*/
|
|
||||||
private Integer permId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除状态0:未删除1:已删除
|
|
||||||
*/
|
|
||||||
private Integer deleted;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 更新时间
|
|
||||||
*/
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
||||||
|
|
@ -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,81 @@
|
||||||
|
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_perm
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-01-15
|
||||||
|
*/
|
||||||
|
public class TbPerm extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
private Long permId;
|
||||||
|
|
||||||
|
/** 权限名称 */
|
||||||
|
@Excel(name = "权限名称")
|
||||||
|
private String permName;
|
||||||
|
|
||||||
|
/** 权限编码 */
|
||||||
|
@Excel(name = "权限编码")
|
||||||
|
private String permCode;
|
||||||
|
|
||||||
|
/** 删除状态0:未删除1:已删除 */
|
||||||
|
@Excel(name = "删除状态0:未删除1:已删除")
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
public void setPermId(Long permId)
|
||||||
|
{
|
||||||
|
this.permId = permId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPermId()
|
||||||
|
{
|
||||||
|
return permId;
|
||||||
|
}
|
||||||
|
public void setPermName(String permName)
|
||||||
|
{
|
||||||
|
this.permName = permName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPermName()
|
||||||
|
{
|
||||||
|
return permName;
|
||||||
|
}
|
||||||
|
public void setPermCode(String permCode)
|
||||||
|
{
|
||||||
|
this.permCode = permCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPermCode()
|
||||||
|
{
|
||||||
|
return permCode;
|
||||||
|
}
|
||||||
|
public void setDeleted(Integer deleted)
|
||||||
|
{
|
||||||
|
this.deleted = deleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDeleted()
|
||||||
|
{
|
||||||
|
return deleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("permId", getPermId())
|
||||||
|
.append("permName", getPermName())
|
||||||
|
.append("permCode", getPermCode())
|
||||||
|
.append("deleted", getDeleted())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,81 @@
|
||||||
|
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_role_perm
|
||||||
|
*
|
||||||
|
* @author xs
|
||||||
|
* @date 2023-01-15
|
||||||
|
*/
|
||||||
|
public class TbRolePerm extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 角色权限id */
|
||||||
|
private Long rolePermId;
|
||||||
|
|
||||||
|
/** 角色ID */
|
||||||
|
@Excel(name = "角色ID")
|
||||||
|
private Long roleId;
|
||||||
|
|
||||||
|
/** 权限ID */
|
||||||
|
@Excel(name = "权限ID")
|
||||||
|
private Long permId;
|
||||||
|
|
||||||
|
/** 删除状态0:未删除1:已删除 */
|
||||||
|
@Excel(name = "删除状态0:未删除1:已删除")
|
||||||
|
private Integer deleted;
|
||||||
|
|
||||||
|
public void setRolePermId(Long rolePermId)
|
||||||
|
{
|
||||||
|
this.rolePermId = rolePermId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getRolePermId()
|
||||||
|
{
|
||||||
|
return rolePermId;
|
||||||
|
}
|
||||||
|
public void setRoleId(Long roleId)
|
||||||
|
{
|
||||||
|
this.roleId = roleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getRoleId()
|
||||||
|
{
|
||||||
|
return roleId;
|
||||||
|
}
|
||||||
|
public void setPermId(Long permId)
|
||||||
|
{
|
||||||
|
this.permId = permId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPermId()
|
||||||
|
{
|
||||||
|
return permId;
|
||||||
|
}
|
||||||
|
public void setDeleted(Integer deleted)
|
||||||
|
{
|
||||||
|
this.deleted = deleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDeleted()
|
||||||
|
{
|
||||||
|
return deleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("rolePermId", getRolePermId())
|
||||||
|
.append("roleId", getRoleId())
|
||||||
|
.append("permId", getPermId())
|
||||||
|
.append("deleted", getDeleted())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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