| | |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/base/user/addAppUser") |
| | | @PostMapping("/base/user/addAppUser") |
| | | public String addAppUser(String phone, String code, String areaCode){ |
| | | try { |
| | | return userInfoService.addAppUser(phone, code, areaCode); |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 代驾系统验根据用户id获取电话号码 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/base/user/getUserPhone/{id}") |
| | | public String getUserPhone(@PathVariable("id") Integer id){ |
| | | UserInfo userInfo = userInfoService.selectById(id); |
| | | if(null != userInfo){ |
| | | return userInfo.getPhone(); |
| | | } |
| | | return null; |
| | | } |
| | | } |