|
|
|
@ -112,19 +112,15 @@ public class AdminUserController extends BaseController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询用户具体信息 |
|
|
|
* @param request |
|
|
|
* @param |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@RequestMapping("/getUser") |
|
|
|
public JSONObject getUser(HttpServletRequest request){ |
|
|
|
String token = request.getHeader("token"); |
|
|
|
//从token中抽取出accout_id
|
|
|
|
DecodedJWT decodedJWT = JWT.decode(token); |
|
|
|
String accountId= decodedJWT.getClaim("account_id").asString(); |
|
|
|
Admin admin = adminService.getAdminByAccountId(accountId); |
|
|
|
public JSONObject getUser(){ |
|
|
|
List<Admin> admlist = adminService.getAllAdmin(); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
jsonObject.put("data",admin); |
|
|
|
jsonObject.put("data",admlist); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
} |
|
|
|
|