serv\web- 多租户修改
This commit is contained in:
@@ -9,7 +9,7 @@ import org.xyzh.common.dto.role.TbSysRole;
|
||||
import org.xyzh.common.dto.permission.TbSysPermission;
|
||||
import org.xyzh.common.dto.dept.TbSysDeptRole;
|
||||
import org.xyzh.common.dto.menu.TbSysMenu;
|
||||
import org.xyzh.common.vo.DeptRoleVO;
|
||||
import org.xyzh.common.vo.UserDeptRoleVO;
|
||||
/**
|
||||
* @description LoginDomain.java文件描述 登录域对象
|
||||
* @filename LoginDomain.java
|
||||
@@ -40,7 +40,7 @@ public class LoginDomain implements Serializable {
|
||||
* @author yslg
|
||||
* @since 2025-09-28
|
||||
*/
|
||||
private List<DeptRoleVO> roles;
|
||||
private List<UserDeptRoleVO> roles;
|
||||
|
||||
/**
|
||||
* @description 用户权限列表
|
||||
@@ -132,7 +132,7 @@ public class LoginDomain implements Serializable {
|
||||
* @author yslg
|
||||
* @since 2025-09-28
|
||||
*/
|
||||
public List<DeptRoleVO> getRoles() {
|
||||
public List<UserDeptRoleVO> getRoles() {
|
||||
return roles;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ public class LoginDomain implements Serializable {
|
||||
* @author yslg
|
||||
* @since 2025-09-28
|
||||
*/
|
||||
public void setRoles(List<DeptRoleVO> roles) {
|
||||
public void setRoles(List<UserDeptRoleVO> roles) {
|
||||
this.roles = roles;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package org.xyzh.common.core.enums;
|
||||
|
||||
public enum ResourceType {
|
||||
|
||||
NEWS(1, "新闻", "新闻"),
|
||||
COURSE(2, "课程", "课程"),
|
||||
TASK(3, "任务", "任务"),
|
||||
DEPT(4, "部门", "部门"),
|
||||
ROLE(5, "角色", "角色"),
|
||||
ACHIEVEMENT(6, "成就", "成就"),
|
||||
CRONTAB_TASK(7, "定时任务", "定时任务"),
|
||||
BANNER(8, "轮播图", "轮播图"),
|
||||
TAG(9, "标签", "标签");
|
||||
|
||||
private int code;
|
||||
private String name;
|
||||
private String description;
|
||||
|
||||
ResourceType(int code, String name, String description) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user