| | |
| | | |
| | | @GetMapping("/searchUNameToUKey") |
| | | @ApiOperation(value = "根据用户名查绑定的Ukey") |
| | | public Response getUserByUserName(@RequestParam String uKeyId){ |
| | | UserInf userInf = userService.getUserByUKeyId(uKeyId); |
| | | public Response getUserByUserName(@RequestParam String userName){ |
| | | UserInf userInf = userService.getUserByUserName(userName); |
| | | Response response = new Response(); |
| | | if (userInf!=null){ |
| | | if (StringUtils.isEmpty(userInf.getUkeyId())){ |
| | | response.set(0,"该用户没有绑定Ukey"); |
| | | response.set(-1,false,"该用户没有绑定Ukey"); |
| | | }else { |
| | | response.set(1,userInf); |
| | | response.setII(1,true,userInf,"该用户有绑定Ukey"); |
| | | } |
| | | }else{ |
| | | response.set(0,"该用户不存在"); |
| | | response.set(0,false,"该用户不存在"); |
| | | } |
| | | return response; |
| | | } |