Commit f20b7a2f authored by shiyu's avatar shiyu

获取用户信息新增id

parent f202f19d
...@@ -51,6 +51,7 @@ public class AdminAuthServiceImpl implements AdminAuthService { ...@@ -51,6 +51,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
Admin admin = (Admin) currentUser.getPrincipal(); Admin admin = (Admin) currentUser.getPrincipal();
Map<String, Object> data = new HashMap<>(); Map<String, Object> data = new HashMap<>();
data.put("id", admin.getId());
data.put("name", admin.getUsername()); data.put("name", admin.getUsername());
data.put("avatar", admin.getAvatar()); data.put("avatar", admin.getAvatar());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment