瀏覽代碼

Update AdminUserDetails.java

macro 2 年之前
父節點
當前提交
940f3dfe03
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      mall-admin/src/main/java/com/macro/mall/bo/AdminUserDetails.java

+ 3 - 2
mall-admin/src/main/java/com/macro/mall/bo/AdminUserDetails.java

@@ -16,9 +16,10 @@ import java.util.stream.Collectors;
  */
 public class AdminUserDetails implements UserDetails {
     //后台用户
-    private UmsAdmin umsAdmin;
+    private final UmsAdmin umsAdmin;
     //拥有资源列表
-    private List<UmsResource> resourceList;
+    private final List<UmsResource> resourceList;
+
     public AdminUserDetails(UmsAdmin umsAdmin,List<UmsResource> resourceList) {
         this.umsAdmin = umsAdmin;
         this.resourceList = resourceList;