From 3689ef254a558a07b4bd249fcaa43c21568782a9 Mon Sep 17 00:00:00 2001 From: tamguo Date: Wed, 25 Jul 2018 16:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/sys/model/SysUserEntity.java | 17 +++++----- .../sys/model/enums/SysUserMgrTypeEnum.java | 34 +++++++++++++++++++ .../sys/model/enums/SysUserTypeEnum.java | 33 ++++++++++++++++++ 3 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserMgrTypeEnum.java create mode 100644 tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserTypeEnum.java diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/SysUserEntity.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/SysUserEntity.java index 792a0fc..00a44d3 100644 --- a/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/SysUserEntity.java +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/SysUserEntity.java @@ -159,14 +159,6 @@ public class SysUserEntity implements Serializable { this.loginCode = loginCode; } - public String getMgrType() { - return this.mgrType; - } - - public void setMgrType(String mgrType) { - this.mgrType = mgrType; - } - public String getMobile() { return this.mobile; } @@ -407,4 +399,13 @@ public class SysUserEntity implements Serializable { this.companyName = companyName; } + public String getMgrType() { + return mgrType; + } + + public void setMgrType(String mgrType) { + this.mgrType = mgrType; + } + + } \ No newline at end of file diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserMgrTypeEnum.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserMgrTypeEnum.java new file mode 100644 index 0000000..7a3ddef --- /dev/null +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserMgrTypeEnum.java @@ -0,0 +1,34 @@ +package com.tamguo.modules.sys.model.enums; + +import java.io.Serializable; +import com.baomidou.mybatisplus.enums.IEnum; + +/** + * 用户状态 + */ +public enum SysUserMgrTypeEnum implements IEnum { + NONEADMIN("0", "非系统管理员"), + SYSTEMADMIN("1", "系统管理员"), + SECADMIN("2" , "二级管理员"); + + private String value; + private String desc; + + SysUserMgrTypeEnum(final String value, final String desc) { + this.value = value; + this.desc = desc; + } + + public Serializable getValue() { + return this.value; + } + + public String getDesc(){ + return this.desc; + } + + @Override + public String toString() { + return this.value; + } +} diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserTypeEnum.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserTypeEnum.java new file mode 100644 index 0000000..8883ca5 --- /dev/null +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/model/enums/SysUserTypeEnum.java @@ -0,0 +1,33 @@ +package com.tamguo.modules.sys.model.enums; + +import java.io.Serializable; +import com.baomidou.mybatisplus.enums.IEnum; + +/** + * 用户状态 + */ +public enum SysUserTypeEnum implements IEnum { + EMPLOYEE("employee", "雇员"), + NONE("none", "系统"); + + private String value; + private String desc; + + SysUserTypeEnum(final String value, final String desc) { + this.value = value; + this.desc = desc; + } + + public Serializable getValue() { + return this.value; + } + + public String getDesc(){ + return this.desc; + } + + @Override + public String toString() { + return this.value; + } +}