| | |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.codec.digest.DigestUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | private UserService userService; |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "登陆信息") |
| | | @PostMapping("logins") |
| | | public ResultMessage login(@RequestBody Map<String, Object> parameters) { |
| | |
| | | return ResultMessage.ok(result); |
| | | } |
| | | |
| | | @GetMapping("/wx/exit") |
| | | @ApiOperation(value = "小程序登陆") |
| | | public ResultMessage updateUserId(@RequestParam @ApiParam(value = "userId",name = "用户主键") Integer userId) { |
| | | userService.updateUserId(userId); |
| | | return ResultMessage.ok(); |
| | | } |
| | | |
| | | } |