From 1ee2482cb3142a3130f9eac18d9ee931402ce007 Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Mon, 14 Nov 2022 10:04:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A1=A8=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=AD=97=E6=AE=B5-=E5=AF=86=E7=A0=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/renren/modules/sys/dto/SysUserDTO.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/sys/dto/SysUserDTO.java b/renren-admin/src/main/java/io/renren/modules/sys/dto/SysUserDTO.java index 4560626f..1660c422 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/dto/SysUserDTO.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/dto/SysUserDTO.java @@ -25,6 +25,7 @@ import java.util.List; @Data @ApiModel(value = "用户管理") public class SysUserDTO implements Serializable { + private static final long serialVersionUID = 1L; @ApiModelProperty(value = "id") @@ -84,4 +85,7 @@ public class SysUserDTO implements Serializable { @ApiModelProperty(value = "部门名称") private String deptName; + @ApiModelProperty(value = "登录失败次数") + private Integer frequency; + } \ No newline at end of file From 7f224cf1a3cc8f8f739e763a1c4a38cb767a11b9 Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Mon, 14 Nov 2022 10:05:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=9E=9A=E4=B8=BE=E6=96=B0=E5=A2=9E=E9=94=81?= =?UTF-8?q?=E5=AE=9A=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/renren/modules/sys/enums/UserStatusEnum.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/sys/enums/UserStatusEnum.java b/renren-admin/src/main/java/io/renren/modules/sys/enums/UserStatusEnum.java index f7ed9c6c..c637b0e5 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/enums/UserStatusEnum.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/enums/UserStatusEnum.java @@ -6,8 +6,18 @@ package io.renren.modules.sys.enums; * @since 1.0.0 */ public enum UserStatusEnum { + /** + * 停用 + */ DISABLE(0), - ENABLED(1); + /** + * 正常 + */ + ENABLED(1), + /** + * 锁定 + */ + LOCKED(2); private int value;