From bd3c599bf4cfb328f75d6230c73090116cdc2aca Mon Sep 17 00:00:00 2001 From: admin <1094254749@qq.com> Date: Fri, 17 Jan 2025 10:55:44 +0800 Subject: [PATCH] =?UTF-8?q?daijiajun=20=E6=9D=83=E9=99=90=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=AE=9E=E4=BD=93=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/keyware/htey/entity/shiro/Role.java | 38 +++++++++++++++++++ .../keyware/htey/entity/shiro/RoleMenu.java | 25 ++++++++++++ .../htey/entity/shiro/RolePermission.java | 25 ++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 src/main/java/com/keyware/htey/entity/shiro/Role.java create mode 100644 src/main/java/com/keyware/htey/entity/shiro/RoleMenu.java create mode 100644 src/main/java/com/keyware/htey/entity/shiro/RolePermission.java diff --git a/src/main/java/com/keyware/htey/entity/shiro/Role.java b/src/main/java/com/keyware/htey/entity/shiro/Role.java new file mode 100644 index 0000000..664c39f --- /dev/null +++ b/src/main/java/com/keyware/htey/entity/shiro/Role.java @@ -0,0 +1,38 @@ +package com.keyware.htey.entity.shiro; + +import java.io.Serializable; +import java.util.List; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author daijiajun + * @version V1.0 + * @description + * @Package com.keyware.htey.entity.shiro + * @date 2025/1/17 10:49 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@TableName("ROLE") +public class Role implements Serializable { + private static final long serialVersionUID = -6794098867242678694L; + + private String roleId; + + private String roleCode; + + private String roleName; + + private String createTime; + + private String isSys; + + private String projectSource; + //责任描述,20171121测试管理添加字段 + private String roleDescribe; +} diff --git a/src/main/java/com/keyware/htey/entity/shiro/RoleMenu.java b/src/main/java/com/keyware/htey/entity/shiro/RoleMenu.java new file mode 100644 index 0000000..029886e --- /dev/null +++ b/src/main/java/com/keyware/htey/entity/shiro/RoleMenu.java @@ -0,0 +1,25 @@ +package com.keyware.htey.entity.shiro; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author daijiajun + * @version V1.0 + * @description + * @Package com.keyware.htey.entity.shiro + * @date 2025/1/17 10:50 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@TableName("ROLE_MENU") +public class RoleMenu { + //角色ID + private String roleId; + + //菜单ID + private String menuId; +} diff --git a/src/main/java/com/keyware/htey/entity/shiro/RolePermission.java b/src/main/java/com/keyware/htey/entity/shiro/RolePermission.java new file mode 100644 index 0000000..54c180c --- /dev/null +++ b/src/main/java/com/keyware/htey/entity/shiro/RolePermission.java @@ -0,0 +1,25 @@ +package com.keyware.htey.entity.shiro; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author daijiajun + * @version V1.0 + * @description + * @Package com.keyware.htey.entity.shiro + * @date 2025/1/17 10:51 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@TableName("ROLE_PERMISSON") +public class RolePermission { + //角色ID + private String roleId; + + //权限点ID + private String permissionId; +}