From e75c8b3f77431bf30db1d9beb0d9e263601ded8e Mon Sep 17 00:00:00 2001 From: qi_liang Date: Mon, 20 May 2019 14:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=AE=9E=E4=BD=93=E7=B1=BB=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/entity/SysFile.java | 20 ++++++++-- src/main/java/com/lq/entity/SysLog.java | 8 +++- .../java/com/lq/entity/SysPermission.java | 5 ++- src/main/java/com/lq/entity/SysResource.java | 35 +++++++++++++---- src/main/java/com/lq/entity/SysRole.java | 14 +++++-- .../lq/entity/SysRoleResourcePermission.java | 20 ++++++++-- src/main/java/com/lq/entity/SysUser.java | 38 +++++++++++++++---- src/main/java/com/lq/entity/SysUserRole.java | 16 ++++++-- 8 files changed, 122 insertions(+), 34 deletions(-) diff --git a/src/main/java/com/lq/entity/SysFile.java b/src/main/java/com/lq/entity/SysFile.java index faff257..67f5d5b 100755 --- a/src/main/java/com/lq/entity/SysFile.java +++ b/src/main/java/com/lq/entity/SysFile.java @@ -5,16 +5,28 @@ import com.lq.code.entity.IdEntity; import java.util.Date; /** + * 系统文件 * Created by qi_liang on 2018/3/25. */ public class SysFile extends IdEntity { - //文件名 + /** + * 文件名 + */ + private String fileName; - //文件路径(相对路径) + + /** + * 文件路径(相对路径) + */ + private String path; - //上传时间 + /** + * 上传时间 + */ private Date createTime; - //文件类型(image:图片,viedo:视频,other:其他) + /** + * 文件类型(image:图片,viedo:视频,other:其他) + */ private String fileType; public String getFileName() { diff --git a/src/main/java/com/lq/entity/SysLog.java b/src/main/java/com/lq/entity/SysLog.java index 5e89e68..c3fcdda 100755 --- a/src/main/java/com/lq/entity/SysLog.java +++ b/src/main/java/com/lq/entity/SysLog.java @@ -12,9 +12,13 @@ public class SysLog extends IdEntity { * 访问ip */ private String userIp; - //创建时间 + /** + * 创建时间 + */ private Date createTime; - //访问url + /** + * 访问url + */ private String url; public String getUserIp() { diff --git a/src/main/java/com/lq/entity/SysPermission.java b/src/main/java/com/lq/entity/SysPermission.java index 10c7825..e648250 100755 --- a/src/main/java/com/lq/entity/SysPermission.java +++ b/src/main/java/com/lq/entity/SysPermission.java @@ -8,7 +8,10 @@ import com.lq.code.entity.IdEntity; */ public class SysPermission extends IdEntity{ - //权限名称 + /** + * 权限名称 + */ + @Length(value = 80) private String name; diff --git a/src/main/java/com/lq/entity/SysResource.java b/src/main/java/com/lq/entity/SysResource.java index 74e049b..e1fa37c 100755 --- a/src/main/java/com/lq/entity/SysResource.java +++ b/src/main/java/com/lq/entity/SysResource.java @@ -9,21 +9,40 @@ import java.util.Date; */ public class SysResource extends IdEntity { - //跳转路径 + /** + * 跳转路径 + */ + private String urlPath; - //序号 + /** + * 序号 + */ private Integer sort; - //上级目录id; + /** + * 上级目录id + */ private Long parentId; - //创建该目录用户id + /** + * 创建该目录用户id + */ + private Long userId; - //创建时间 + /** + * 创建时间 + */ private Date createTime; - //更新时间 + /** + * 更新时间 + */ + private Date updateTime; - //目录名称 + /** + * 目录名称 + */ private String menuName; - //目录logo + /** + * 目录logo + */ private String menuIco; public String getUrlPath() { diff --git a/src/main/java/com/lq/entity/SysRole.java b/src/main/java/com/lq/entity/SysRole.java index c3cd98f..b13e615 100755 --- a/src/main/java/com/lq/entity/SysRole.java +++ b/src/main/java/com/lq/entity/SysRole.java @@ -9,11 +9,19 @@ import java.util.Date; */ public class SysRole extends IdEntity { - //角色名称 + /** + * 角色名称 + */ + private String roleName; - //创建时间 + /** + * 创建时间 + */ + private Date createTime; - //更新时间 + /** + * 更新时间 + */ private Date updateTime; public String getRoleName() { diff --git a/src/main/java/com/lq/entity/SysRoleResourcePermission.java b/src/main/java/com/lq/entity/SysRoleResourcePermission.java index 9a0cf7f..be3683c 100755 --- a/src/main/java/com/lq/entity/SysRoleResourcePermission.java +++ b/src/main/java/com/lq/entity/SysRoleResourcePermission.java @@ -9,13 +9,25 @@ import java.util.Date; */ public class SysRoleResourcePermission extends IdEntity { - //关联权限id + /** + * 关联权限id + */ + private Long permissionId; - //关联资源id + /** + * 关联资源id + */ + private Long resourceId; - //关联用户id + /** + * 关联用户id + */ + private Long roleId; - //创建时间 + /** + * 创建时间 + */ + private Date createTime; public Long getPermissionId() { diff --git a/src/main/java/com/lq/entity/SysUser.java b/src/main/java/com/lq/entity/SysUser.java index d165eda..7d7e6aa 100755 --- a/src/main/java/com/lq/entity/SysUser.java +++ b/src/main/java/com/lq/entity/SysUser.java @@ -9,21 +9,43 @@ import java.util.Date; */ public class SysUser extends IdEntity { - //登陆名称 + /** + * 登陆名称 + */ + private String loginName; - //密码 + /** + * 密码 + */ + private String password; - //创建时间 + /** + * 创建时间 + */ + private Date createTime; - //更新时间 + /** + * 更新时间 + */ + private Date updateTime; - //最后登陆时间 + /** + * 最后登陆时间 + */ private Date lastLoginTime; - //备注 + /** + * 备注 + */ + private String remarks; - //头像 + /** + * 头像 + */ + private String imgUrl; - //电子邮件 + /** + * 电子邮件 + */ private String email; public SysUser() { diff --git a/src/main/java/com/lq/entity/SysUserRole.java b/src/main/java/com/lq/entity/SysUserRole.java index 9b091bd..7e2419c 100755 --- a/src/main/java/com/lq/entity/SysUserRole.java +++ b/src/main/java/com/lq/entity/SysUserRole.java @@ -9,13 +9,21 @@ import java.util.Date; */ public class SysUserRole extends IdEntity { - //关联用户id + /** + * 关联用户id + */ private Long userId; - //管理角色id + /** + * 管理角色id + */ private Long roleId; - //创建时间 + /** + * 创建时间 + */ private Date createTime; - //更新时间 + /** + * 更新时间 + */ private Date updateTime;