Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-api-system
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-api-system
Commits
27e1991f
提交
27e1991f
authored
11月 01, 2024
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
批量修改Entity对象继承BaseDo对象
上级
eb0b496e
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
456 行增加
和
782 行删除
+456
-782
MdmCity.java
src/main/java/com/sfa/system/api/domain/MdmCity.java
+59
-0
SysDept.java
src/main/java/com/sfa/system/api/domain/SysDept.java
+26
-157
SysDictData.java
src/main/java/com/sfa/system/api/domain/SysDictData.java
+24
-130
SysDictType.java
src/main/java/com/sfa/system/api/domain/SysDictType.java
+21
-66
SysLogininfor.java
src/main/java/com/sfa/system/api/domain/SysLogininfor.java
+14
-63
SysOperLog.java
src/main/java/com/sfa/system/api/domain/SysOperLog.java
+15
-172
SysRole.java
src/main/java/com/sfa/system/api/domain/SysRole.java
+28
-171
SysUser.java
src/main/java/com/sfa/system/api/domain/SysUser.java
+31
-21
UserVo.java
src/main/java/com/sfa/system/api/pojo/request/UserVo.java
+33
-2
SiteDto.java
src/main/java/com/sfa/system/api/pojo/response/SiteDto.java
+60
-0
UserDto.java
src/main/java/com/sfa/system/api/pojo/response/UserDto.java
+129
-0
UserResponse.java
...n/java/com/sfa/system/api/pojo/response/UserResponse.java
+16
-0
没有找到文件。
src/main/java/com/sfa/system/api/domain/MdmCity.java
0 → 100644
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
domain
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 省市区地址表
* @TableName mdm_city
*/
@TableName
(
value
=
"mdm_city"
)
@Data
public
class
MdmCity
implements
Serializable
{
/**
* 省编码
*/
private
String
provinceNum
;
/**
* 省名称
*/
private
String
provinceName
;
/**
* 城市编号
*/
private
String
cityNum
;
/**
* 城市名称
*/
private
String
cityName
;
/**
* 区/县编码
*/
private
String
countyNum
;
/**
* 区/县名称
*/
private
String
countyName
;
/**
* 编码
*/
private
String
num
;
/**
* 名称
*/
private
String
name
;
@TableField
(
exist
=
false
)
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
src/main/java/com/sfa/system/api/domain/SysDept.java
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
domain
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.validation.constraints.Email
;
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
com.sfa.common.core.web.domain.BaseDo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.sfa.common.core.web.domain.BaseEntity
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 部门表 sys_dept
*
* @author ruoyi
*/
public
class
SysDept
extends
BaseEntity
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName
(
value
=
"sys_dept"
)
public
class
SysDept
extends
BaseDo
{
private
static
final
long
serialVersionUID
=
1L
;
/** 部门ID */
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
deptId
;
/** 父部门ID */
private
Long
parentId
;
/** 父部门名称 */
private
String
parentName
;
private
String
parentCode
;
/** 祖级列表 */
private
String
ancestors
;
private
String
ancestorCodes
;
private
String
ancestorNames
;
/** 部门名称 */
@NotBlank
(
message
=
"部门名称不能为空"
)
@Size
(
min
=
0
,
max
=
30
,
message
=
"部门名称长度不能超过30个字符"
)
private
String
deptName
;
/** 显示顺序 */
...
...
@@ -38,6 +54,7 @@ public class SysDept extends BaseEntity
private
String
leader
;
/** 联系电话 */
@Size
(
min
=
0
,
max
=
11
,
message
=
"联系电话长度不能超过11个字符"
)
private
String
phone
;
/** 邮箱 */
...
...
@@ -49,155 +66,7 @@ public class SysDept extends BaseEntity
/** 删除标志(0代表存在 2代表删除) */
private
String
delFlag
;
/** 父部门名称 */
private
String
parentName
;
/** 子部门 */
@TableField
(
exist
=
false
)
private
List
<
SysDept
>
children
=
new
ArrayList
<
SysDept
>();
public
Long
getDeptId
()
{
return
deptId
;
}
public
void
setDeptId
(
Long
deptId
)
{
this
.
deptId
=
deptId
;
}
public
Long
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getAncestors
()
{
return
ancestors
;
}
public
void
setAncestors
(
String
ancestors
)
{
this
.
ancestors
=
ancestors
;
}
@NotBlank
(
message
=
"部门名称不能为空"
)
@Size
(
min
=
0
,
max
=
30
,
message
=
"部门名称长度不能超过30个字符"
)
public
String
getDeptName
()
{
return
deptName
;
}
public
void
setDeptName
(
String
deptName
)
{
this
.
deptName
=
deptName
;
}
@NotNull
(
message
=
"显示顺序不能为空"
)
public
Integer
getOrderNum
()
{
return
orderNum
;
}
public
void
setOrderNum
(
Integer
orderNum
)
{
this
.
orderNum
=
orderNum
;
}
public
String
getLeader
()
{
return
leader
;
}
public
void
setLeader
(
String
leader
)
{
this
.
leader
=
leader
;
}
@Size
(
min
=
0
,
max
=
11
,
message
=
"联系电话长度不能超过11个字符"
)
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
@Email
(
message
=
"邮箱格式不正确"
)
@Size
(
min
=
0
,
max
=
50
,
message
=
"邮箱长度不能超过50个字符"
)
public
String
getEmail
()
{
return
email
;
}
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
String
getParentName
()
{
return
parentName
;
}
public
void
setParentName
(
String
parentName
)
{
this
.
parentName
=
parentName
;
}
public
List
<
SysDept
>
getChildren
()
{
return
children
;
}
public
void
setChildren
(
List
<
SysDept
>
children
)
{
this
.
children
=
children
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"deptId"
,
getDeptId
())
.
append
(
"parentId"
,
getParentId
())
.
append
(
"ancestors"
,
getAncestors
())
.
append
(
"deptName"
,
getDeptName
())
.
append
(
"orderNum"
,
getOrderNum
())
.
append
(
"leader"
,
getLeader
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"email"
,
getEmail
())
.
append
(
"status"
,
getStatus
())
.
append
(
"delFlag"
,
getDelFlag
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
src/main/java/com/sfa/system/api/domain/SysDictData.java
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
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.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excel.ColumnType
;
import
com.sfa.common.core.constant.UserConstants
;
import
com.sfa.common.core.web.domain.BaseEntity
;
import
com.sfa.common.core.web.domain.BaseDo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Size
;
/**
* 字典数据表 sys_dict_data
*
*
* @author ruoyi
*/
public
class
SysDictData
extends
BaseEntity
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName
(
value
=
"sys_dict_data"
)
public
class
SysDictData
extends
BaseDo
{
private
static
final
long
serialVersionUID
=
1L
;
/** 字典编码 */
@Excel
(
name
=
"字典编码"
,
cellType
=
ColumnType
.
NUMERIC
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
dictCode
;
/** 字典排序 */
...
...
@@ -28,17 +37,24 @@ public class SysDictData extends BaseEntity
/** 字典标签 */
@Excel
(
name
=
"字典标签"
)
@NotBlank
(
message
=
"字典标签不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典标签长度不能超过100个字符"
)
private
String
dictLabel
;
/** 字典键值 */
@Excel
(
name
=
"字典键值"
)
@NotBlank
(
message
=
"字典键值不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典键值长度不能超过100个字符"
)
private
String
dictValue
;
/** 字典类型 */
@Excel
(
name
=
"字典类型"
)
@NotBlank
(
message
=
"字典类型不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典类型长度不能超过100个字符"
)
private
String
dictType
;
/** 样式属性(其他样式扩展) */
@Size
(
min
=
0
,
max
=
100
,
message
=
"样式属性长度不能超过100个字符"
)
private
String
cssClass
;
/** 表格字典样式 */
...
...
@@ -51,126 +67,4 @@ public class SysDictData extends BaseEntity
/** 状态(0正常 1停用) */
@Excel
(
name
=
"状态"
,
readConverterExp
=
"0=正常,1=停用"
)
private
String
status
;
public
Long
getDictCode
()
{
return
dictCode
;
}
public
void
setDictCode
(
Long
dictCode
)
{
this
.
dictCode
=
dictCode
;
}
public
Long
getDictSort
()
{
return
dictSort
;
}
public
void
setDictSort
(
Long
dictSort
)
{
this
.
dictSort
=
dictSort
;
}
@NotBlank
(
message
=
"字典标签不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典标签长度不能超过100个字符"
)
public
String
getDictLabel
()
{
return
dictLabel
;
}
public
void
setDictLabel
(
String
dictLabel
)
{
this
.
dictLabel
=
dictLabel
;
}
@NotBlank
(
message
=
"字典键值不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典键值长度不能超过100个字符"
)
public
String
getDictValue
()
{
return
dictValue
;
}
public
void
setDictValue
(
String
dictValue
)
{
this
.
dictValue
=
dictValue
;
}
@NotBlank
(
message
=
"字典类型不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典类型长度不能超过100个字符"
)
public
String
getDictType
()
{
return
dictType
;
}
public
void
setDictType
(
String
dictType
)
{
this
.
dictType
=
dictType
;
}
@Size
(
min
=
0
,
max
=
100
,
message
=
"样式属性长度不能超过100个字符"
)
public
String
getCssClass
()
{
return
cssClass
;
}
public
void
setCssClass
(
String
cssClass
)
{
this
.
cssClass
=
cssClass
;
}
public
String
getListClass
()
{
return
listClass
;
}
public
void
setListClass
(
String
listClass
)
{
this
.
listClass
=
listClass
;
}
public
boolean
getDefault
()
{
return
UserConstants
.
YES
.
equals
(
this
.
isDefault
);
}
public
String
getIsDefault
()
{
return
isDefault
;
}
public
void
setIsDefault
(
String
isDefault
)
{
this
.
isDefault
=
isDefault
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"dictCode"
,
getDictCode
())
.
append
(
"dictSort"
,
getDictSort
())
.
append
(
"dictLabel"
,
getDictLabel
())
.
append
(
"dictValue"
,
getDictValue
())
.
append
(
"dictType"
,
getDictType
())
.
append
(
"cssClass"
,
getCssClass
())
.
append
(
"listClass"
,
getListClass
())
.
append
(
"isDefault"
,
getIsDefault
())
.
append
(
"status"
,
getStatus
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
src/main/java/com/sfa/system/api/domain/SysDictType.java
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excel.ColumnType
;
import
com.sfa.common.core.web.domain.BaseDo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Size
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excel.ColumnType
;
import
com.sfa.common.core.web.domain.BaseEntity
;
/**
* 字典类型表 sys_dict_type
*
* @author ruoyi
*/
public
class
SysDictType
extends
BaseEntity
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName
(
value
=
"sys_dict_type"
)
public
class
SysDictType
extends
BaseDo
{
private
static
final
long
serialVersionUID
=
1L
;
/** 字典主键 */
@Excel
(
name
=
"字典主键"
,
cellType
=
ColumnType
.
NUMERIC
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
dictId
;
/** 字典名称 */
@Excel
(
name
=
"字典名称"
)
@NotBlank
(
message
=
"字典名称不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典类型名称长度不能超过100个字符"
)
private
String
dictName
;
/** 字典类型 */
@Excel
(
name
=
"字典类型"
)
@NotBlank
(
message
=
"字典类型不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典类型类型长度不能超过100个字符"
)
@Pattern
(
regexp
=
"^[a-z][a-z0-9_]*$"
,
message
=
"字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)"
)
private
String
dictType
;
/** 状态(0正常 1停用) */
@Excel
(
name
=
"状态"
,
readConverterExp
=
"0=正常,1=停用"
)
private
String
status
;
public
Long
getDictId
()
{
return
dictId
;
}
public
void
setDictId
(
Long
dictId
)
{
this
.
dictId
=
dictId
;
}
@NotBlank
(
message
=
"字典名称不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典类型名称长度不能超过100个字符"
)
public
String
getDictName
()
{
return
dictName
;
}
public
void
setDictName
(
String
dictName
)
{
this
.
dictName
=
dictName
;
}
@NotBlank
(
message
=
"字典类型不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典类型类型长度不能超过100个字符"
)
@Pattern
(
regexp
=
"^[a-z][a-z0-9_]*$"
,
message
=
"字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)"
)
public
String
getDictType
()
{
return
dictType
;
}
public
void
setDictType
(
String
dictType
)
{
this
.
dictType
=
dictType
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"dictId"
,
getDictId
())
.
append
(
"dictName"
,
getDictName
())
.
append
(
"dictType"
,
getDictType
())
.
append
(
"status"
,
getStatus
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
src/main/java/com/sfa/system/api/domain/SysLogininfor.java
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
domain
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excel.ColumnType
;
import
com.sfa.common.core.web.domain.BaseEntity
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* 系统访问记录表 sys_logininfor
*
* @author ruoyi
*/
public
class
SysLogininfor
extends
BaseEntity
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName
(
value
=
"sys_logininfor"
)
public
class
SysLogininfor
{
private
static
final
long
serialVersionUID
=
1L
;
/** ID */
@Excel
(
name
=
"序号"
,
cellType
=
ColumnType
.
NUMERIC
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
infoId
;
/** 用户账号 */
...
...
@@ -40,63 +51,4 @@ public class SysLogininfor extends BaseEntity
@Excel
(
name
=
"访问时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
accessTime
;
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
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
Date
getAccessTime
()
{
return
accessTime
;
}
public
void
setAccessTime
(
Date
accessTime
)
{
this
.
accessTime
=
accessTime
;
}
}
\ No newline at end of file
src/main/java/com/sfa/system/api/domain/SysOperLog.java
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
domain
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excel.ColumnType
;
import
com.sfa.common.core.web.domain.BaseEntity
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 操作日志记录表 oper_log
*
* @author ruoyi
*/
public
class
SysOperLog
extends
BaseEntity
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName
(
value
=
"oper_log"
)
public
class
SysOperLog
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/** 日志主键 */
@Excel
(
name
=
"操作序号"
,
cellType
=
ColumnType
.
NUMERIC
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
operId
;
/** 操作模块 */
...
...
@@ -83,173 +95,4 @@ public class SysOperLog extends BaseEntity
@Excel
(
name
=
"消耗时间"
,
suffix
=
"毫秒"
)
private
Long
costTime
;
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
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
;
}
public
Long
getCostTime
()
{
return
costTime
;
}
public
void
setCostTime
(
Long
costTime
)
{
this
.
costTime
=
costTime
;
}
}
src/main/java/com/sfa/system/api/domain/SysRole.java
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
domain
;
import
java.util.Set
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
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
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excel.ColumnType
;
import
com.sfa.common.core.web.domain.BaseEntity
;
import
com.sfa.common.core.web.domain.BaseDo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Size
;
import
java.util.Set
;
/**
* 角色表 sys_role
*
* @author ruoyi
*/
public
class
SysRole
extends
BaseEntity
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName
(
value
=
"sys_role"
)
public
class
SysRole
extends
BaseDo
{
private
static
final
long
serialVersionUID
=
1L
;
/** 角色ID */
@Excel
(
name
=
"角色序号"
,
cellType
=
ColumnType
.
NUMERIC
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
roleId
;
/** 角色名称 */
@Excel
(
name
=
"角色名称"
)
@NotBlank
(
message
=
"角色名称不能为空"
)
@Size
(
min
=
0
,
max
=
30
,
message
=
"角色名称长度不能超过30个字符"
)
private
String
roleName
;
/** 角色权限 */
@Excel
(
name
=
"角色权限"
)
@NotBlank
(
message
=
"权限字符不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"权限字符长度不能超过100个字符"
)
private
String
roleKey
;
/** 角色排序 */
...
...
@@ -53,37 +67,21 @@ public class SysRole extends BaseEntity
private
String
delFlag
;
/** 用户是否存在此角色标识 默认不存在 */
@TableField
(
exist
=
false
)
private
boolean
flag
=
false
;
/** 菜单组 */
@TableField
(
exist
=
false
)
private
Long
[]
menuIds
;
/** 部门组(数据权限) */
@TableField
(
exist
=
false
)
private
Long
[]
deptIds
;
/** 角色菜单权限 */
@TableField
(
exist
=
false
)
private
Set
<
String
>
permissions
;
public
SysRole
()
{
}
public
SysRole
(
Long
roleId
)
{
this
.
roleId
=
roleId
;
}
public
Long
getRoleId
()
{
return
roleId
;
}
public
void
setRoleId
(
Long
roleId
)
{
this
.
roleId
=
roleId
;
}
public
boolean
isAdmin
()
{
return
isAdmin
(
this
.
roleId
);
...
...
@@ -94,148 +92,7 @@ public class SysRole extends BaseEntity
return
roleId
!=
null
&&
1L
==
roleId
;
}
@NotBlank
(
message
=
"角色名称不能为空"
)
@Size
(
min
=
0
,
max
=
30
,
message
=
"角色名称长度不能超过30个字符"
)
public
String
getRoleName
()
{
return
roleName
;
}
public
void
setRoleName
(
String
roleName
)
{
this
.
roleName
=
roleName
;
}
@NotBlank
(
message
=
"权限字符不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"权限字符长度不能超过100个字符"
)
public
String
getRoleKey
()
{
return
roleKey
;
}
public
void
setRoleKey
(
String
roleKey
)
{
this
.
roleKey
=
roleKey
;
}
@NotNull
(
message
=
"显示顺序不能为空"
)
public
Integer
getRoleSort
()
{
return
roleSort
;
}
public
void
setRoleSort
(
Integer
roleSort
)
{
this
.
roleSort
=
roleSort
;
}
public
String
getDataScope
()
{
return
dataScope
;
}
public
void
setDataScope
(
String
dataScope
)
{
this
.
dataScope
=
dataScope
;
}
public
boolean
isMenuCheckStrictly
()
{
return
menuCheckStrictly
;
}
public
void
setMenuCheckStrictly
(
boolean
menuCheckStrictly
)
{
this
.
menuCheckStrictly
=
menuCheckStrictly
;
}
public
boolean
isDeptCheckStrictly
()
{
return
deptCheckStrictly
;
}
public
void
setDeptCheckStrictly
(
boolean
deptCheckStrictly
)
{
this
.
deptCheckStrictly
=
deptCheckStrictly
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
boolean
isFlag
()
{
return
flag
;
}
public
void
setFlag
(
boolean
flag
)
{
this
.
flag
=
flag
;
}
public
Long
[]
getMenuIds
()
{
return
menuIds
;
}
public
void
setMenuIds
(
Long
[]
menuIds
)
{
this
.
menuIds
=
menuIds
;
}
public
Long
[]
getDeptIds
()
{
return
deptIds
;
}
public
void
setDeptIds
(
Long
[]
deptIds
)
{
this
.
deptIds
=
deptIds
;
}
public
Set
<
String
>
getPermissions
()
{
return
permissions
;
}
public
void
setPermissions
(
Set
<
String
>
permissions
)
{
this
.
permissions
=
permissions
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"roleId"
,
getRoleId
())
.
append
(
"roleName"
,
getRoleName
())
.
append
(
"roleKey"
,
getRoleKey
())
.
append
(
"roleSort"
,
getRoleSort
())
.
append
(
"dataScope"
,
getDataScope
())
.
append
(
"menuCheckStrictly"
,
isMenuCheckStrictly
())
.
append
(
"deptCheckStrictly"
,
isDeptCheckStrictly
())
.
append
(
"status"
,
getStatus
())
.
append
(
"delFlag"
,
getDelFlag
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
public
SysRole
(
Long
roleId
)
{
this
.
roleId
=
roleId
;
}
}
src/main/java/com/sfa/system/api/domain/SysUser.java
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
domain
;
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
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excel.ColumnType
;
import
com.sfa.common.core.annotation.Excel.Type
;
import
com.sfa.common.core.annotation.Excels
;
import
com.sfa.common.core.web.domain.BaseDo
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
...
...
@@ -27,32 +24,25 @@ public class SysUser extends BaseDo
private
static
final
long
serialVersionUID
=
1L
;
/** 用户ID */
@Excel
(
name
=
"用户序号"
,
type
=
Type
.
EXPORT
,
cellType
=
ColumnType
.
NUMERIC
,
prompt
=
"用户编号"
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
userId
;
/** 部门ID */
@Excel
(
name
=
"部门编号"
,
type
=
Type
.
IMPORT
)
private
Long
deptId
;
/** 用户账号 */
@Excel
(
name
=
"登录名称"
)
private
String
userName
;
/** 用户昵称 */
@Excel
(
name
=
"用户名称"
)
private
String
nickName
;
/** 用户邮箱 */
@Excel
(
name
=
"用户邮箱"
)
private
String
email
;
/** 手机号码 */
@Excel
(
name
=
"手机号码"
,
cellType
=
ColumnType
.
TEXT
)
private
String
phonenumber
;
/** 用户性别 */
@Excel
(
name
=
"用户性别"
,
readConverterExp
=
"0=男,1=女,2=未知"
)
private
String
sex
;
/** 用户头像 */
...
...
@@ -61,6 +51,12 @@ public class SysUser extends BaseDo
/** 密码 */
private
String
password
;
/** 角色ID */
private
Long
roleId
;
/** 角色名称 */
private
String
roleName
;
/** 岗位编码 */
private
String
postCode
;
...
...
@@ -73,40 +69,54 @@ public class SysUser extends BaseDo
/** 规则名称 */
private
String
ruleName
;
/**
* 工作-省编码
*/
private
String
workProvinceNum
;
/**
* 工作-省名称
*/
private
String
workProvinceName
;
/**
* 工作-市编码
*/
private
String
workCityNum
;
/**
* 工作-市编码
*/
private
String
workCityName
;
/** 帐号状态(0正常 1停用) */
@Excel
(
name
=
"帐号状态"
,
readConverterExp
=
"0=正常,1=停用"
)
private
String
status
;
/** 删除标志(0代表存在 2代表删除) */
private
String
delFlag
;
/** 最后登录IP */
@Excel
(
name
=
"最后登录IP"
,
type
=
Type
.
EXPORT
)
private
String
loginIp
;
/** 最后登录时间 */
@Excel
(
name
=
"最后登录时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
,
type
=
Type
.
EXPORT
)
private
Date
loginDate
;
/** 部门对象 */
@Excels
({
@Excel
(
name
=
"部门名称"
,
targetAttr
=
"deptName"
,
type
=
Type
.
EXPORT
),
@Excel
(
name
=
"部门负责人"
,
targetAttr
=
"leader"
,
type
=
Type
.
EXPORT
)
})
@TableField
(
exist
=
false
)
private
SysDept
dept
;
/** 角色对象 */
@TableField
(
exist
=
false
)
private
List
<
SysRole
>
roles
;
/** 角色组 */
@TableField
(
exist
=
false
)
private
Long
[]
roleIds
;
/** 岗位组 */
@TableField
(
exist
=
false
)
private
Long
[]
postIds
;
/** 角色ID */
private
Long
roleId
;
public
boolean
isAdmin
()
{
return
isAdmin
(
this
.
userId
);
...
...
src/main/java/com/sfa/system/api/pojo/request/UserVo.java
浏览文件 @
27e1991f
...
...
@@ -5,13 +5,16 @@ import com.sfa.common.core.annotation.Excels;
import
com.sfa.common.core.xss.Xss
;
import
com.sfa.system.api.domain.SysDept
;
import
com.sfa.system.api.domain.SysRole
;
import
com.sfa.system.api.pojo.response.SiteDto
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NonNull
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.Email
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -70,6 +73,13 @@ public class UserVo {
/** 密码 */
private
String
password
;
/** 角色ID */
@NotNull
(
message
=
"请填写角色"
)
private
Long
roleId
;
/** 角色名称 */
private
String
roleName
;
/** 岗位编码 */
private
String
postCode
;
...
...
@@ -82,6 +92,27 @@ public class UserVo {
/** 规则名称 */
private
String
ruleName
;
/**
* 工作-省编码
*/
private
String
workProvinceNum
;
/**
* 工作-省名称
*/
private
String
workProvinceName
;
/**
* 工作-市编码
*/
private
String
workCityNum
;
/**
* 工作-市名称
*/
private
String
workCityName
;
/** 帐号状态(0正常 1停用) */
@Excel
(
name
=
"帐号状态"
,
readConverterExp
=
"0=正常,1=停用"
)
private
String
status
;
...
...
@@ -113,8 +144,8 @@ public class UserVo {
/** 岗位组 */
private
Long
[]
postIds
;
/**
角色ID
*/
private
L
ong
roleId
;
/**
工作城市
*/
private
L
ist
<
SiteDto
>
jobCitys
;
/** 创建者 */
private
String
createBy
;
...
...
src/main/java/com/sfa/system/api/pojo/response/SiteDto.java
0 → 100644
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
pojo
.
response
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @author : liqiulin
* @date : 2024-10-31 16
* @describe :
*/
@Data
public
class
SiteDto
implements
Serializable
{
/**
* 省编码
*/
private
String
provinceNum
;
/**
* 省名称
*/
private
String
provinceName
;
/**
* 城市编号
*/
private
String
cityNum
;
/**
* 城市名称
*/
private
String
cityName
;
/**
* 区/县编码
*/
private
String
countyNum
;
/**
* 区/县名称
*/
private
String
countyName
;
/**
* 区/县编码
*/
private
String
num
;
/**
* 区/县名称
*/
private
String
name
;
// private List<SiteDto> citys;
@TableField
(
exist
=
false
)
private
static
final
long
serialVersionUID
=
1L
;
}
src/main/java/com/sfa/system/api/pojo/response/UserDto.java
0 → 100644
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
pojo
.
response
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.sfa.common.core.annotation.Excel
;
import
com.sfa.common.core.annotation.Excels
;
import
com.sfa.system.api.domain.SysDept
;
import
com.sfa.system.api.domain.SysRole
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
import
java.util.List
;
/**
* @author : liqiulin
* @date : 2024-10-31 13
* @describe :
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
UserDto
{
/** 用户ID */
@Excel
(
name
=
"用户序号"
,
type
=
Excel
.
Type
.
EXPORT
,
cellType
=
Excel
.
ColumnType
.
NUMERIC
,
prompt
=
"用户编号"
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
userId
;
/** 部门ID */
@Excel
(
name
=
"部门编号"
,
type
=
Excel
.
Type
.
IMPORT
)
private
Long
deptId
;
/** 用户账号 */
@Excel
(
name
=
"登录名称"
)
private
String
userName
;
/** 用户昵称 */
@Excel
(
name
=
"用户名称"
)
private
String
nickName
;
/** 用户邮箱 */
@Excel
(
name
=
"用户邮箱"
)
private
String
email
;
/** 手机号码 */
@Excel
(
name
=
"手机号码"
,
cellType
=
Excel
.
ColumnType
.
TEXT
)
private
String
phonenumber
;
/** 用户性别 */
@Excel
(
name
=
"用户性别"
,
readConverterExp
=
"0=男,1=女,2=未知"
)
private
String
sex
;
/** 用户头像 */
private
String
avatar
;
/** 密码 */
private
String
password
;
/** 岗位编码 */
private
String
postCode
;
/** 岗位名称 */
private
String
postName
;
/** 规则编号 */
private
String
ruleNum
;
/** 规则名称 */
private
String
ruleName
;
/** 帐号状态(0正常 1停用) */
@Excel
(
name
=
"帐号状态"
,
readConverterExp
=
"0=正常,1=停用"
)
private
String
status
;
/** 删除标志(0代表存在 2代表删除) */
private
String
delFlag
;
/** 最后登录IP */
@Excel
(
name
=
"最后登录IP"
,
type
=
Excel
.
Type
.
EXPORT
)
private
String
loginIp
;
/** 最后登录时间 */
@Excel
(
name
=
"最后登录时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
,
type
=
Excel
.
Type
.
EXPORT
)
private
Date
loginDate
;
/** 部门对象 */
@Excels
({
@Excel
(
name
=
"部门名称"
,
targetAttr
=
"deptName"
,
type
=
Excel
.
Type
.
EXPORT
),
@Excel
(
name
=
"部门负责人"
,
targetAttr
=
"leader"
,
type
=
Excel
.
Type
.
EXPORT
)
})
private
SysDept
dept
;
/** 角色对象 */
private
List
<
SysRole
>
roles
;
/** 角色组 */
private
Long
[]
roleIds
;
/** 岗位组 */
private
Long
[]
postIds
;
/** 角色ID */
private
Long
roleId
;
/** 创建者 */
private
String
createBy
;
/** 创建者 */
private
Long
createUserId
;
/** 创建时间 */
private
Date
createTime
;
/** 更新者 */
private
String
updateBy
;
/** 更新者 */
private
Long
updateUserId
;
/** 更新时间 */
private
Date
updateTime
;
/** 备注 */
private
String
remark
;
}
src/main/java/com/sfa/system/api/pojo/response/UserResponse.java
0 → 100644
浏览文件 @
27e1991f
package
com
.
sfa
.
system
.
api
.
pojo
.
response
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author : liqiulin
* @date : 2024-10-31 11
* @describe :
*/
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
public
class
UserResponse
{
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论