fix:修复角色全向bug

This commit is contained in:
hxrui 2021-01-14 20:19:41 +08:00
parent be83bee89a
commit bb00a4c2c8
4 changed files with 4 additions and 15 deletions

View File

@ -42,7 +42,7 @@ public class UmsUser {
private Date gmtCreate;
private Date gmtUpdated;
private Date gmtModified;
private Integer deleted;

View File

@ -30,6 +30,6 @@ public class SysRole extends BaseEntity {
private List<Long> menuIds;
@TableField(exist = false)
private List<Long> resourceIds;
private List<Long> permissionIds;
}

View File

@ -1,11 +0,0 @@
package com.youlai.admin.pojo;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class SysRoleResource {
private Long roleId;
private Long resourceId;
}

View File

@ -7,10 +7,10 @@ import com.nimbusds.jose.JWSObject;
import com.youlai.common.core.constant.AuthConstants;
import com.youlai.common.core.result.Result;
import com.youlai.common.core.result.ResultCode;
import lombok.AllArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.util.Strings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.core.Ordered;
@ -32,9 +32,9 @@ import java.nio.charset.Charset;
*/
@Component
@Slf4j
@AllArgsConstructor
public class AuthGlobalFilter implements GlobalFilter, Ordered {
@Autowired
private RedisTemplate redisTemplate;
@SneakyThrows