styles: 代码格式化
This commit is contained in:
@@ -120,7 +120,13 @@ public class SchisandraAuthPermissionController {
|
||||
return Result.fail("删除权限信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询用户菜单权限
|
||||
* @param: [userId]
|
||||
* @return: com.schisandra.auth.common.entity.Result<java.lang.Object>
|
||||
* @author: landaiqing
|
||||
* @date: 2024/7/8 下午4:09
|
||||
*/
|
||||
@GetMapping("selectUserPermission")
|
||||
public Result<Object> selectUserPermission(@RequestParam("userId") Long userId) {
|
||||
if (userId == null) {
|
||||
|
@@ -32,7 +32,7 @@ public class SchisandraAuthPermissionDTO implements Serializable {
|
||||
/**
|
||||
* 权限路径
|
||||
*/
|
||||
private String menuUrl;
|
||||
private String path;
|
||||
/**
|
||||
* 权限状态
|
||||
*/
|
||||
@@ -49,25 +49,6 @@ public class SchisandraAuthPermissionDTO implements Serializable {
|
||||
* 权限标识
|
||||
*/
|
||||
private String permissionKey;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
|
||||
|
@@ -26,7 +26,7 @@ SchisandraAuthPermissionBO implements Serializable {
|
||||
|
||||
private Integer type;
|
||||
|
||||
private String menuUrl;
|
||||
private String path;
|
||||
|
||||
private Integer status;
|
||||
|
||||
|
@@ -52,11 +52,11 @@ public class SchisandraAuthPermissionDomainServiceImpl implements SchisandraAuth
|
||||
public Result<Object> selectUserPermissionTree(Long userId) {
|
||||
SchisandraAuthUserRole schisandraAuthRole = schisandraAuthUserRoleService.queryById(userId);
|
||||
if (schisandraAuthRole == null||schisandraAuthRole.getRoleId()==null) {
|
||||
return Result.ok("用户没有角色");
|
||||
return Result.fail("用户没有角色");
|
||||
}
|
||||
List<SchisandraAuthRolePermission> schisandraAuthRolePermissions = schisandraAuthRolePermissionService.queryByRoleId(schisandraAuthRole.getRoleId());
|
||||
if (schisandraAuthRolePermissions.size()==0){
|
||||
return Result.ok("当前角色用户没有权限");
|
||||
return Result.fail("当前角色用户没有权限");
|
||||
}
|
||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissions =new ArrayList<>();
|
||||
List<SchisandraAuthPermissionBO> schisandraAuthPermissionParents = new ArrayList<>();
|
||||
|
@@ -29,7 +29,7 @@ public class SchisandraAuthPermission implements Serializable {
|
||||
|
||||
private Integer type;
|
||||
|
||||
private String menuUrl;
|
||||
private String path;
|
||||
|
||||
private Integer status;
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="parentId" column="parent_id" jdbcType="INTEGER"/>
|
||||
<result property="type" column="type" jdbcType="INTEGER"/>
|
||||
<result property="menuUrl" column="menu_url" jdbcType="VARCHAR"/>
|
||||
<result property="path" column="path" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||
<result property="show" column="show" jdbcType="INTEGER"/>
|
||||
<result property="icon" column="icon" jdbcType="VARCHAR"/>
|
||||
|
Reference in New Issue
Block a user