若依 3.0
This commit is contained in:
		| @@ -0,0 +1,111 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import javax.validation.constraints.NotBlank; | ||||
| import javax.validation.constraints.Size; | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
| import com.ruoyi.common.annotation.Excel; | ||||
| import com.ruoyi.common.annotation.Excel.ColumnType; | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 参数配置表 sys_config | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysConfig extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 参数主键 */ | ||||
|     @Excel(name = "参数主键", cellType = ColumnType.NUMERIC) | ||||
|     private Long configId; | ||||
|  | ||||
|     /** 参数名称 */ | ||||
|     @Excel(name = "参数名称") | ||||
|     private String configName; | ||||
|  | ||||
|     /** 参数键名 */ | ||||
|     @Excel(name = "参数键名") | ||||
|     private String configKey; | ||||
|  | ||||
|     /** 参数键值 */ | ||||
|     @Excel(name = "参数键值") | ||||
|     private String configValue; | ||||
|  | ||||
|     /** 系统内置(Y是 N否) */ | ||||
|     @Excel(name = "系统内置", readConverterExp = "Y=是,N=否") | ||||
|     private String configType; | ||||
|  | ||||
|     public Long getConfigId() | ||||
|     { | ||||
|         return configId; | ||||
|     } | ||||
|  | ||||
|     public void setConfigId(Long configId) | ||||
|     { | ||||
|         this.configId = configId; | ||||
|     } | ||||
|  | ||||
|     @NotBlank(message = "参数名称不能为空") | ||||
|     @Size(min = 0, max = 100, message = "参数名称不能超过100个字符") | ||||
|     public String getConfigName() | ||||
|     { | ||||
|         return configName; | ||||
|     } | ||||
|  | ||||
|     public void setConfigName(String configName) | ||||
|     { | ||||
|         this.configName = configName; | ||||
|     } | ||||
|  | ||||
|     @NotBlank(message = "参数键名长度不能为空") | ||||
|     @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") | ||||
|     public String getConfigKey() | ||||
|     { | ||||
|         return configKey; | ||||
|     } | ||||
|  | ||||
|     public void setConfigKey(String configKey) | ||||
|     { | ||||
|         this.configKey = configKey; | ||||
|     } | ||||
|  | ||||
|     @NotBlank(message = "参数键值不能为空") | ||||
|     @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") | ||||
|     public String getConfigValue() | ||||
|     { | ||||
|         return configValue; | ||||
|     } | ||||
|  | ||||
|     public void setConfigValue(String configValue) | ||||
|     { | ||||
|         this.configValue = configValue; | ||||
|     } | ||||
|  | ||||
|     public String getConfigType() | ||||
|     { | ||||
|         return configType; | ||||
|     } | ||||
|  | ||||
|     public void setConfigType(String configType) | ||||
|     { | ||||
|         this.configType = configType; | ||||
|     } | ||||
|      | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("configId", getConfigId()) | ||||
|             .append("configName", getConfigName()) | ||||
|             .append("configKey", getConfigKey()) | ||||
|             .append("configValue", getConfigValue()) | ||||
|             .append("configType", getConfigType()) | ||||
|             .append("createBy", getCreateBy()) | ||||
|             .append("createTime", getCreateTime()) | ||||
|             .append("updateBy", getUpdateBy()) | ||||
|             .append("updateTime", getUpdateTime()) | ||||
|             .append("remark", getRemark()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,144 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import java.util.Date; | ||||
| import com.fasterxml.jackson.annotation.JsonFormat; | ||||
| import com.ruoyi.common.annotation.Excel; | ||||
| import com.ruoyi.common.annotation.Excel.ColumnType; | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 系统访问记录表 sys_logininfor | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysLogininfor extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** ID */ | ||||
|     @Excel(name = "序号", cellType = ColumnType.NUMERIC) | ||||
|     private Long infoId; | ||||
|  | ||||
|     /** 用户账号 */ | ||||
|     @Excel(name = "用户账号") | ||||
|     private String userName; | ||||
|  | ||||
|     /** 登录状态 0成功 1失败 */ | ||||
|     @Excel(name = "登录状态", readConverterExp = "0=成功,1=失败") | ||||
|     private String status; | ||||
|  | ||||
|     /** 登录IP地址 */ | ||||
|     @Excel(name = "登录地址") | ||||
|     private String ipaddr; | ||||
|  | ||||
|     /** 登录地点 */ | ||||
|     @Excel(name = "登录地点") | ||||
|     private String loginLocation; | ||||
|  | ||||
|     /** 浏览器类型 */ | ||||
|     @Excel(name = "浏览器") | ||||
|     private String browser; | ||||
|  | ||||
|     /** 操作系统 */ | ||||
|     @Excel(name = "操作系统") | ||||
|     private String os; | ||||
|  | ||||
|     /** 提示消息 */ | ||||
|     @Excel(name = "提示消息") | ||||
|     private String msg; | ||||
|  | ||||
|     /** 访问时间 */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||||
|     @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") | ||||
|     private Date loginTime; | ||||
|  | ||||
|     public Long getInfoId() | ||||
|     { | ||||
|         return infoId; | ||||
|     } | ||||
|  | ||||
|     public void setInfoId(Long infoId) | ||||
|     { | ||||
|         this.infoId = infoId; | ||||
|     } | ||||
|  | ||||
|     public String getUserName() | ||||
|     { | ||||
|         return userName; | ||||
|     } | ||||
|  | ||||
|     public void setUserName(String userName) | ||||
|     { | ||||
|         this.userName = userName; | ||||
|     } | ||||
|  | ||||
|     public String getStatus() | ||||
|     { | ||||
|         return status; | ||||
|     } | ||||
|  | ||||
|     public void setStatus(String status) | ||||
|     { | ||||
|         this.status = status; | ||||
|     } | ||||
|  | ||||
|     public String getIpaddr() | ||||
|     { | ||||
|         return ipaddr; | ||||
|     } | ||||
|  | ||||
|     public void setIpaddr(String ipaddr) | ||||
|     { | ||||
|         this.ipaddr = ipaddr; | ||||
|     } | ||||
|  | ||||
|     public String getLoginLocation() | ||||
|     { | ||||
|         return loginLocation; | ||||
|     } | ||||
|  | ||||
|     public void setLoginLocation(String loginLocation) | ||||
|     { | ||||
|         this.loginLocation = loginLocation; | ||||
|     } | ||||
|  | ||||
|     public String getBrowser() | ||||
|     { | ||||
|         return browser; | ||||
|     } | ||||
|  | ||||
|     public void setBrowser(String browser) | ||||
|     { | ||||
|         this.browser = browser; | ||||
|     } | ||||
|  | ||||
|     public String getOs() | ||||
|     { | ||||
|         return os; | ||||
|     } | ||||
|  | ||||
|     public void setOs(String os) | ||||
|     { | ||||
|         this.os = os; | ||||
|     } | ||||
|  | ||||
|     public String getMsg() | ||||
|     { | ||||
|         return msg; | ||||
|     } | ||||
|  | ||||
|     public void setMsg(String msg) | ||||
|     { | ||||
|         this.msg = msg; | ||||
|     } | ||||
|  | ||||
|     public Date getLoginTime() | ||||
|     { | ||||
|         return loginTime; | ||||
|     } | ||||
|  | ||||
|     public void setLoginTime(Date loginTime) | ||||
|     { | ||||
|         this.loginTime = loginTime; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,100 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import javax.validation.constraints.NotBlank; | ||||
| import javax.validation.constraints.Size; | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 通知公告表 sys_notice | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysNotice extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 公告ID */ | ||||
|     private Long noticeId; | ||||
|  | ||||
|     /** 公告标题 */ | ||||
|     private String noticeTitle; | ||||
|  | ||||
|     /** 公告类型(1通知 2公告) */ | ||||
|     private String noticeType; | ||||
|  | ||||
|     /** 公告内容 */ | ||||
|     private String noticeContent; | ||||
|  | ||||
|     /** 公告状态(0正常 1关闭) */ | ||||
|     private String status; | ||||
|  | ||||
|     public Long getNoticeId() | ||||
|     { | ||||
|         return noticeId; | ||||
|     } | ||||
|  | ||||
|     public void setNoticeId(Long noticeId) | ||||
|     { | ||||
|         this.noticeId = noticeId; | ||||
|     } | ||||
|  | ||||
|     public void setNoticeTitle(String noticeTitle) | ||||
|     { | ||||
|         this.noticeTitle = noticeTitle; | ||||
|     } | ||||
|  | ||||
|     @NotBlank(message = "公告标题不能为空") | ||||
|     @Size(min = 0, max = 50, message = "公告标题不能超过50个字符") | ||||
|     public String getNoticeTitle() | ||||
|     { | ||||
|         return noticeTitle; | ||||
|     } | ||||
|  | ||||
|     public void setNoticeType(String noticeType) | ||||
|     { | ||||
|         this.noticeType = noticeType; | ||||
|     } | ||||
|  | ||||
|     public String getNoticeType() | ||||
|     { | ||||
|         return noticeType; | ||||
|     } | ||||
|  | ||||
|     public void setNoticeContent(String noticeContent) | ||||
|     { | ||||
|         this.noticeContent = noticeContent; | ||||
|     } | ||||
|  | ||||
|     public String getNoticeContent() | ||||
|     { | ||||
|         return noticeContent; | ||||
|     } | ||||
|  | ||||
|     public void setStatus(String status) | ||||
|     { | ||||
|         this.status = status; | ||||
|     } | ||||
|  | ||||
|     public String getStatus() | ||||
|     { | ||||
|         return status; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("noticeId", getNoticeId()) | ||||
|             .append("noticeTitle", getNoticeTitle()) | ||||
|             .append("noticeType", getNoticeType()) | ||||
|             .append("noticeContent", getNoticeContent()) | ||||
|             .append("status", getStatus()) | ||||
|             .append("createBy", getCreateBy()) | ||||
|             .append("createTime", getCreateTime()) | ||||
|             .append("updateBy", getUpdateBy()) | ||||
|             .append("updateTime", getUpdateTime()) | ||||
|             .append("remark", getRemark()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,255 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import java.util.Date; | ||||
| import com.fasterxml.jackson.annotation.JsonFormat; | ||||
| import com.ruoyi.common.annotation.Excel; | ||||
| import com.ruoyi.common.annotation.Excel.ColumnType; | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 操作日志记录表 oper_log | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysOperLog extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 日志主键 */ | ||||
|     @Excel(name = "操作序号", cellType = ColumnType.NUMERIC) | ||||
|     private Long operId; | ||||
|  | ||||
|     /** 操作模块 */ | ||||
|     @Excel(name = "操作模块") | ||||
|     private String title; | ||||
|  | ||||
|     /** 业务类型(0其它 1新增 2修改 3删除) */ | ||||
|     @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据") | ||||
|     private Integer businessType; | ||||
|  | ||||
|     /** 业务类型数组 */ | ||||
|     private Integer[] businessTypes; | ||||
|  | ||||
|     /** 请求方法 */ | ||||
|     @Excel(name = "请求方法") | ||||
|     private String method; | ||||
|  | ||||
|     /** 请求方式 */ | ||||
|     @Excel(name = "请求方式") | ||||
|     private String requestMethod; | ||||
|  | ||||
|     /** 操作类别(0其它 1后台用户 2手机端用户) */ | ||||
|     @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户") | ||||
|     private Integer operatorType; | ||||
|  | ||||
|     /** 操作人员 */ | ||||
|     @Excel(name = "操作人员") | ||||
|     private String operName; | ||||
|  | ||||
|     /** 部门名称 */ | ||||
|     @Excel(name = "部门名称") | ||||
|     private String deptName; | ||||
|  | ||||
|     /** 请求url */ | ||||
|     @Excel(name = "请求地址") | ||||
|     private String operUrl; | ||||
|  | ||||
|     /** 操作地址 */ | ||||
|     @Excel(name = "操作地址") | ||||
|     private String operIp; | ||||
|  | ||||
|     /** 操作地点 */ | ||||
|     @Excel(name = "操作地点") | ||||
|     private String operLocation; | ||||
|  | ||||
|     /** 请求参数 */ | ||||
|     @Excel(name = "请求参数") | ||||
|     private String operParam; | ||||
|  | ||||
|     /** 返回参数 */ | ||||
|     @Excel(name = "返回参数") | ||||
|     private String jsonResult; | ||||
|  | ||||
|     /** 操作状态(0正常 1异常) */ | ||||
|     @Excel(name = "状态", readConverterExp = "0=正常,1=异常") | ||||
|     private Integer status; | ||||
|  | ||||
|     /** 错误消息 */ | ||||
|     @Excel(name = "错误消息") | ||||
|     private String errorMsg; | ||||
|  | ||||
|     /** 操作时间 */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||||
|     @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") | ||||
|     private Date operTime; | ||||
|  | ||||
|     public Long getOperId() | ||||
|     { | ||||
|         return operId; | ||||
|     } | ||||
|  | ||||
|     public void setOperId(Long operId) | ||||
|     { | ||||
|         this.operId = operId; | ||||
|     } | ||||
|  | ||||
|     public String getTitle() | ||||
|     { | ||||
|         return title; | ||||
|     } | ||||
|  | ||||
|     public void setTitle(String title) | ||||
|     { | ||||
|         this.title = title; | ||||
|     } | ||||
|  | ||||
|     public Integer getBusinessType() | ||||
|     { | ||||
|         return businessType; | ||||
|     } | ||||
|  | ||||
|     public void setBusinessType(Integer businessType) | ||||
|     { | ||||
|         this.businessType = businessType; | ||||
|     } | ||||
|  | ||||
|     public Integer[] getBusinessTypes() | ||||
|     { | ||||
|         return businessTypes; | ||||
|     } | ||||
|  | ||||
|     public void setBusinessTypes(Integer[] businessTypes) | ||||
|     { | ||||
|         this.businessTypes = businessTypes; | ||||
|     } | ||||
|  | ||||
|     public String getMethod() | ||||
|     { | ||||
|         return method; | ||||
|     } | ||||
|  | ||||
|     public void setMethod(String method) | ||||
|     { | ||||
|         this.method = method; | ||||
|     } | ||||
|  | ||||
|     public String getRequestMethod() | ||||
|     { | ||||
|         return requestMethod; | ||||
|     } | ||||
|  | ||||
|     public void setRequestMethod(String requestMethod) | ||||
|     { | ||||
|         this.requestMethod = requestMethod; | ||||
|     } | ||||
|  | ||||
|     public Integer getOperatorType() | ||||
|     { | ||||
|         return operatorType; | ||||
|     } | ||||
|  | ||||
|     public void setOperatorType(Integer operatorType) | ||||
|     { | ||||
|         this.operatorType = operatorType; | ||||
|     } | ||||
|  | ||||
|     public String getOperName() | ||||
|     { | ||||
|         return operName; | ||||
|     } | ||||
|  | ||||
|     public void setOperName(String operName) | ||||
|     { | ||||
|         this.operName = operName; | ||||
|     } | ||||
|  | ||||
|     public String getDeptName() | ||||
|     { | ||||
|         return deptName; | ||||
|     } | ||||
|  | ||||
|     public void setDeptName(String deptName) | ||||
|     { | ||||
|         this.deptName = deptName; | ||||
|     } | ||||
|  | ||||
|     public String getOperUrl() | ||||
|     { | ||||
|         return operUrl; | ||||
|     } | ||||
|  | ||||
|     public void setOperUrl(String operUrl) | ||||
|     { | ||||
|         this.operUrl = operUrl; | ||||
|     } | ||||
|  | ||||
|     public String getOperIp() | ||||
|     { | ||||
|         return operIp; | ||||
|     } | ||||
|  | ||||
|     public void setOperIp(String operIp) | ||||
|     { | ||||
|         this.operIp = operIp; | ||||
|     } | ||||
|  | ||||
|     public String getOperLocation() | ||||
|     { | ||||
|         return operLocation; | ||||
|     } | ||||
|  | ||||
|     public void setOperLocation(String operLocation) | ||||
|     { | ||||
|         this.operLocation = operLocation; | ||||
|     } | ||||
|  | ||||
|     public String getOperParam() | ||||
|     { | ||||
|         return operParam; | ||||
|     } | ||||
|  | ||||
|     public void setOperParam(String operParam) | ||||
|     { | ||||
|         this.operParam = operParam; | ||||
|     } | ||||
|  | ||||
|     public String getJsonResult() | ||||
|     { | ||||
|         return jsonResult; | ||||
|     } | ||||
|  | ||||
|     public void setJsonResult(String jsonResult) | ||||
|     { | ||||
|         this.jsonResult = jsonResult; | ||||
|     } | ||||
|  | ||||
|     public Integer getStatus() | ||||
|     { | ||||
|         return status; | ||||
|     } | ||||
|  | ||||
|     public void setStatus(Integer status) | ||||
|     { | ||||
|         this.status = status; | ||||
|     } | ||||
|  | ||||
|     public String getErrorMsg() | ||||
|     { | ||||
|         return errorMsg; | ||||
|     } | ||||
|  | ||||
|     public void setErrorMsg(String errorMsg) | ||||
|     { | ||||
|         this.errorMsg = errorMsg; | ||||
|     } | ||||
|  | ||||
|     public Date getOperTime() | ||||
|     { | ||||
|         return operTime; | ||||
|     } | ||||
|  | ||||
|     public void setOperTime(Date operTime) | ||||
|     { | ||||
|         this.operTime = operTime; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										123
									
								
								ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										123
									
								
								ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,123 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import javax.validation.constraints.NotBlank; | ||||
| import javax.validation.constraints.Size; | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
| import com.ruoyi.common.annotation.Excel; | ||||
| import com.ruoyi.common.annotation.Excel.ColumnType; | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 岗位表 sys_post | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysPost extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 岗位序号 */ | ||||
|     @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC) | ||||
|     private Long postId; | ||||
|  | ||||
|     /** 岗位编码 */ | ||||
|     @Excel(name = "岗位编码") | ||||
|     private String postCode; | ||||
|  | ||||
|     /** 岗位名称 */ | ||||
|     @Excel(name = "岗位名称") | ||||
|     private String postName; | ||||
|  | ||||
|     /** 岗位排序 */ | ||||
|     @Excel(name = "岗位排序") | ||||
|     private String postSort; | ||||
|  | ||||
|     /** 状态(0正常 1停用) */ | ||||
|     @Excel(name = "状态", readConverterExp = "0=正常,1=停用") | ||||
|     private String status; | ||||
|  | ||||
|     /** 用户是否存在此岗位标识 默认不存在 */ | ||||
|     private boolean flag = false; | ||||
|  | ||||
|     public Long getPostId() | ||||
|     { | ||||
|         return postId; | ||||
|     } | ||||
|  | ||||
|     public void setPostId(Long postId) | ||||
|     { | ||||
|         this.postId = postId; | ||||
|     } | ||||
|  | ||||
|     @NotBlank(message = "岗位编码不能为空") | ||||
|     @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符") | ||||
|     public String getPostCode() | ||||
|     { | ||||
|         return postCode; | ||||
|     } | ||||
|  | ||||
|     public void setPostCode(String postCode) | ||||
|     { | ||||
|         this.postCode = postCode; | ||||
|     } | ||||
|  | ||||
|     @NotBlank(message = "岗位名称不能为空") | ||||
|     @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符") | ||||
|     public String getPostName() | ||||
|     { | ||||
|         return postName; | ||||
|     } | ||||
|  | ||||
|     public void setPostName(String postName) | ||||
|     { | ||||
|         this.postName = postName; | ||||
|     } | ||||
|  | ||||
|     @NotBlank(message = "显示顺序不能为空") | ||||
|     public String getPostSort() | ||||
|     { | ||||
|         return postSort; | ||||
|     } | ||||
|  | ||||
|     public void setPostSort(String postSort) | ||||
|     { | ||||
|         this.postSort = postSort; | ||||
|     } | ||||
|  | ||||
|     public String getStatus() | ||||
|     { | ||||
|         return status; | ||||
|     } | ||||
|  | ||||
|     public void setStatus(String status) | ||||
|     { | ||||
|         this.status = status; | ||||
|     } | ||||
|  | ||||
|     public boolean isFlag() | ||||
|     { | ||||
|         return flag; | ||||
|     } | ||||
|  | ||||
|     public void setFlag(boolean flag) | ||||
|     { | ||||
|         this.flag = flag; | ||||
|     } | ||||
|      | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("postId", getPostId()) | ||||
|             .append("postCode", getPostCode()) | ||||
|             .append("postName", getPostName()) | ||||
|             .append("postSort", getPostSort()) | ||||
|             .append("status", getStatus()) | ||||
|             .append("createBy", getCreateBy()) | ||||
|             .append("createTime", getCreateTime()) | ||||
|             .append("updateBy", getUpdateBy()) | ||||
|             .append("updateTime", getUpdateTime()) | ||||
|             .append("remark", getRemark()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,46 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
|  | ||||
| /** | ||||
|  * 角色和部门关联 sys_role_dept | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysRoleDept | ||||
| { | ||||
|     /** 角色ID */ | ||||
|     private Long roleId; | ||||
|      | ||||
|     /** 部门ID */ | ||||
|     private Long deptId; | ||||
|  | ||||
|     public Long getRoleId() | ||||
|     { | ||||
|         return roleId; | ||||
|     } | ||||
|  | ||||
|     public void setRoleId(Long roleId) | ||||
|     { | ||||
|         this.roleId = roleId; | ||||
|     } | ||||
|  | ||||
|     public Long getDeptId() | ||||
|     { | ||||
|         return deptId; | ||||
|     } | ||||
|  | ||||
|     public void setDeptId(Long deptId) | ||||
|     { | ||||
|         this.deptId = deptId; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("roleId", getRoleId()) | ||||
|             .append("deptId", getDeptId()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,46 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
|  | ||||
| /** | ||||
|  * 角色和菜单关联 sys_role_menu | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysRoleMenu | ||||
| { | ||||
|     /** 角色ID */ | ||||
|     private Long roleId; | ||||
|      | ||||
|     /** 菜单ID */ | ||||
|     private Long menuId; | ||||
|  | ||||
|     public Long getRoleId() | ||||
|     { | ||||
|         return roleId; | ||||
|     } | ||||
|  | ||||
|     public void setRoleId(Long roleId) | ||||
|     { | ||||
|         this.roleId = roleId; | ||||
|     } | ||||
|  | ||||
|     public Long getMenuId() | ||||
|     { | ||||
|         return menuId; | ||||
|     } | ||||
|  | ||||
|     public void setMenuId(Long menuId) | ||||
|     { | ||||
|         this.menuId = menuId; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("roleId", getRoleId()) | ||||
|             .append("menuId", getMenuId()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,113 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| /** | ||||
|  * 当前在线会话 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysUserOnline | ||||
| { | ||||
|     /** 会话编号 */ | ||||
|     private String tokenId; | ||||
|  | ||||
|     /** 部门名称 */ | ||||
|     private String deptName; | ||||
|  | ||||
|     /** 用户名称 */ | ||||
|     private String userName; | ||||
|  | ||||
|     /** 登录IP地址 */ | ||||
|     private String ipaddr; | ||||
|  | ||||
|     /** 登录地址 */ | ||||
|     private String loginLocation; | ||||
|  | ||||
|     /** 浏览器类型 */ | ||||
|     private String browser; | ||||
|  | ||||
|     /** 操作系统 */ | ||||
|     private String os; | ||||
|  | ||||
|     /** 登录时间 */ | ||||
|     private Long loginTime; | ||||
|  | ||||
|     public String getTokenId() | ||||
|     { | ||||
|         return tokenId; | ||||
|     } | ||||
|  | ||||
|     public void setTokenId(String tokenId) | ||||
|     { | ||||
|         this.tokenId = tokenId; | ||||
|     } | ||||
|  | ||||
|     public String getDeptName() | ||||
|     { | ||||
|         return deptName; | ||||
|     } | ||||
|  | ||||
|     public void setDeptName(String deptName) | ||||
|     { | ||||
|         this.deptName = deptName; | ||||
|     } | ||||
|  | ||||
|     public String getUserName() | ||||
|     { | ||||
|         return userName; | ||||
|     } | ||||
|  | ||||
|     public void setUserName(String userName) | ||||
|     { | ||||
|         this.userName = userName; | ||||
|     } | ||||
|  | ||||
|     public String getIpaddr() | ||||
|     { | ||||
|         return ipaddr; | ||||
|     } | ||||
|  | ||||
|     public void setIpaddr(String ipaddr) | ||||
|     { | ||||
|         this.ipaddr = ipaddr; | ||||
|     } | ||||
|  | ||||
|     public String getLoginLocation() | ||||
|     { | ||||
|         return loginLocation; | ||||
|     } | ||||
|  | ||||
|     public void setLoginLocation(String loginLocation) | ||||
|     { | ||||
|         this.loginLocation = loginLocation; | ||||
|     } | ||||
|  | ||||
|     public String getBrowser() | ||||
|     { | ||||
|         return browser; | ||||
|     } | ||||
|  | ||||
|     public void setBrowser(String browser) | ||||
|     { | ||||
|         this.browser = browser; | ||||
|     } | ||||
|  | ||||
|     public String getOs() | ||||
|     { | ||||
|         return os; | ||||
|     } | ||||
|  | ||||
|     public void setOs(String os) | ||||
|     { | ||||
|         this.os = os; | ||||
|     } | ||||
|  | ||||
|     public Long getLoginTime() | ||||
|     { | ||||
|         return loginTime; | ||||
|     } | ||||
|  | ||||
|     public void setLoginTime(Long loginTime) | ||||
|     { | ||||
|         this.loginTime = loginTime; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,46 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
|  | ||||
| /** | ||||
|  * 用户和岗位关联 sys_user_post | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysUserPost | ||||
| { | ||||
|     /** 用户ID */ | ||||
|     private Long userId; | ||||
|      | ||||
|     /** 岗位ID */ | ||||
|     private Long postId; | ||||
|  | ||||
|     public Long getUserId() | ||||
|     { | ||||
|         return userId; | ||||
|     } | ||||
|  | ||||
|     public void setUserId(Long userId) | ||||
|     { | ||||
|         this.userId = userId; | ||||
|     } | ||||
|  | ||||
|     public Long getPostId() | ||||
|     { | ||||
|         return postId; | ||||
|     } | ||||
|  | ||||
|     public void setPostId(Long postId) | ||||
|     { | ||||
|         this.postId = postId; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("userId", getUserId()) | ||||
|             .append("postId", getPostId()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,46 @@ | ||||
| package com.ruoyi.system.domain; | ||||
|  | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
|  | ||||
| /** | ||||
|  * 用户和角色关联 sys_user_role | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysUserRole | ||||
| { | ||||
|     /** 用户ID */ | ||||
|     private Long userId; | ||||
|      | ||||
|     /** 角色ID */ | ||||
|     private Long roleId; | ||||
|  | ||||
|     public Long getUserId() | ||||
|     { | ||||
|         return userId; | ||||
|     } | ||||
|  | ||||
|     public void setUserId(Long userId) | ||||
|     { | ||||
|         this.userId = userId; | ||||
|     } | ||||
|  | ||||
|     public Long getRoleId() | ||||
|     { | ||||
|         return roleId; | ||||
|     } | ||||
|  | ||||
|     public void setRoleId(Long roleId) | ||||
|     { | ||||
|         this.roleId = roleId; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("userId", getUserId()) | ||||
|             .append("roleId", getRoleId()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,49 @@ | ||||
| package com.ruoyi.system.domain.vo; | ||||
|  | ||||
| /** | ||||
|  * 路由显示信息 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class MetaVo | ||||
| { | ||||
|     /** | ||||
|      * 设置该路由在侧边栏和面包屑中展示的名字 | ||||
|      */ | ||||
|     private String title; | ||||
|  | ||||
|     /** | ||||
|      * 设置该路由的图标,对应路径src/icons/svg | ||||
|      */ | ||||
|     private String icon; | ||||
|  | ||||
|     public MetaVo() | ||||
|     { | ||||
|     } | ||||
|  | ||||
|     public MetaVo(String title, String icon) | ||||
|     { | ||||
|         this.title = title; | ||||
|         this.icon = icon; | ||||
|     } | ||||
|  | ||||
|     public String getTitle() | ||||
|     { | ||||
|         return title; | ||||
|     } | ||||
|  | ||||
|     public void setTitle(String title) | ||||
|     { | ||||
|         this.title = title; | ||||
|     } | ||||
|  | ||||
|     public String getIcon() | ||||
|     { | ||||
|         return icon; | ||||
|     } | ||||
|  | ||||
|     public void setIcon(String icon) | ||||
|     { | ||||
|         this.icon = icon; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,133 @@ | ||||
| package com.ruoyi.system.domain.vo; | ||||
|  | ||||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||||
| import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * 路由配置信息 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| @JsonInclude(JsonInclude.Include.NON_EMPTY) | ||||
| public class RouterVo | ||||
| { | ||||
|     /** | ||||
|      * 路由名字 | ||||
|      */ | ||||
|     private String name; | ||||
|  | ||||
|     /** | ||||
|      * 路由地址 | ||||
|      */ | ||||
|     private String path; | ||||
|  | ||||
|     /** | ||||
|      * 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现 | ||||
|      */ | ||||
|     private boolean hidden; | ||||
|  | ||||
|     /** | ||||
|      * 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击 | ||||
|      */ | ||||
|     private String redirect; | ||||
|  | ||||
|     /** | ||||
|      * 组件地址 | ||||
|      */ | ||||
|     private String component; | ||||
|  | ||||
|     /** | ||||
|      * 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面 | ||||
|      */ | ||||
|     private Boolean alwaysShow; | ||||
|  | ||||
|     /** | ||||
|      * 其他元素 | ||||
|      */ | ||||
|     private MetaVo meta; | ||||
|  | ||||
|     /** | ||||
|      * 子路由 | ||||
|      */ | ||||
|     private List<RouterVo> children; | ||||
|  | ||||
|     public String getName() | ||||
|     { | ||||
|         return name; | ||||
|     } | ||||
|  | ||||
|     public void setName(String name) | ||||
|     { | ||||
|         this.name = name; | ||||
|     } | ||||
|  | ||||
|     public String getPath() | ||||
|     { | ||||
|         return path; | ||||
|     } | ||||
|  | ||||
|     public void setPath(String path) | ||||
|     { | ||||
|         this.path = path; | ||||
|     } | ||||
|  | ||||
|     public boolean getHidden() | ||||
|     { | ||||
|         return hidden; | ||||
|     } | ||||
|  | ||||
|     public void setHidden(boolean hidden) | ||||
|     { | ||||
|         this.hidden = hidden; | ||||
|     } | ||||
|  | ||||
|     public String getRedirect() | ||||
|     { | ||||
|         return redirect; | ||||
|     } | ||||
|  | ||||
|     public void setRedirect(String redirect) | ||||
|     { | ||||
|         this.redirect = redirect; | ||||
|     } | ||||
|  | ||||
|     public String getComponent() | ||||
|     { | ||||
|         return component; | ||||
|     } | ||||
|  | ||||
|     public void setComponent(String component) | ||||
|     { | ||||
|         this.component = component; | ||||
|     } | ||||
|  | ||||
|     public Boolean getAlwaysShow() | ||||
|     { | ||||
|         return alwaysShow; | ||||
|     } | ||||
|  | ||||
|     public void setAlwaysShow(Boolean alwaysShow) | ||||
|     { | ||||
|         this.alwaysShow = alwaysShow; | ||||
|     } | ||||
|  | ||||
|     public MetaVo getMeta() | ||||
|     { | ||||
|         return meta; | ||||
|     } | ||||
|  | ||||
|     public void setMeta(MetaVo meta) | ||||
|     { | ||||
|         this.meta = meta; | ||||
|     } | ||||
|  | ||||
|     public List<RouterVo> getChildren() | ||||
|     { | ||||
|         return children; | ||||
|     } | ||||
|  | ||||
|     public void setChildren(List<RouterVo> children) | ||||
|     { | ||||
|         this.children = children; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user