From bf5a15add309fc9381962ed24f823f8fa61aa419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=B2=90?= Date: Wed, 9 Aug 2023 23:26:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A7=92=E8=89=B2=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/net/maku/system/entity/SysRoleEntity.java | 4 ++++ maku-boot-system/src/main/java/net/maku/system/vo/SysRoleVO.java | 4 ++++ maku-boot-system/src/main/resources/mapper/SysRoleDao.xml | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/maku-boot-system/src/main/java/net/maku/system/entity/SysRoleEntity.java b/maku-boot-system/src/main/java/net/maku/system/entity/SysRoleEntity.java index bca9a5c..c7b60f6 100644 --- a/maku-boot-system/src/main/java/net/maku/system/entity/SysRoleEntity.java +++ b/maku-boot-system/src/main/java/net/maku/system/entity/SysRoleEntity.java @@ -23,6 +23,10 @@ public class SysRoleEntity extends BaseEntity { */ private String name; /** + * 角色编码 + */ + private String roleCode; + /** * 备注 */ private String remark; diff --git a/maku-boot-system/src/main/java/net/maku/system/vo/SysRoleVO.java b/maku-boot-system/src/main/java/net/maku/system/vo/SysRoleVO.java index 72b548b..fdcb893 100644 --- a/maku-boot-system/src/main/java/net/maku/system/vo/SysRoleVO.java +++ b/maku-boot-system/src/main/java/net/maku/system/vo/SysRoleVO.java @@ -27,6 +27,10 @@ public class SysRoleVO implements Serializable { @Schema(description = "角色名称") @NotBlank(message = "角色名称不能为空") private String name; + + @Schema(description = "角色编码") + @NotBlank(message = "角色编码不能为空") + private String roleCode; @Schema(description = "备注") private String remark; diff --git a/maku-boot-system/src/main/resources/mapper/SysRoleDao.xml b/maku-boot-system/src/main/resources/mapper/SysRoleDao.xml index ab96b2f..01bd2cc 100644 --- a/maku-boot-system/src/main/resources/mapper/SysRoleDao.xml +++ b/maku-boot-system/src/main/resources/mapper/SysRoleDao.xml @@ -8,4 +8,9 @@ where t1.id = t2.role_id and t2.user_id = #{userId} and t1.deleted = 0 and t2.deleted = 0 + + \ No newline at end of file