mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 20:54:26 +08:00
fix:修复角色全向bug
This commit is contained in:
parent
be83bee89a
commit
bb00a4c2c8
@ -42,7 +42,7 @@ public class UmsUser {
|
||||
|
||||
private Date gmtCreate;
|
||||
|
||||
private Date gmtUpdated;
|
||||
private Date gmtModified;
|
||||
|
||||
private Integer deleted;
|
||||
|
||||
|
@ -30,6 +30,6 @@ public class SysRole extends BaseEntity {
|
||||
private List<Long> menuIds;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<Long> resourceIds;
|
||||
private List<Long> permissionIds;
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user