| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.Date; |
| | |
| | | return res; |
| | | } |
| | | |
| | | /** |
| | | * 根据OpenID查询用户信息 |
| | | */ |
| | | @GetMapping(value = "/findUserInfo/{openId}") |
| | | public @ResponseBody |
| | | AjaxResult findUserInfo(@PathVariable String openId) { |
| | | BizUser bizUser = bizUserService.findByOpenId(openId); |
| | | BizUser bizUserQuery=new BizUser(); |
| | | bizUserQuery.setNickName(bizUser.getNickName()); |
| | | bizUserQuery.setAvatarUrl(bizUser.getAvatarUrl()); |
| | | bizUserQuery.setOpenId(openId); |
| | | return AjaxResult.buildSuccessInstance(bizUserQuery); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 接收用户信息 |