|
@@ -13,6 +13,7 @@ import com.zhongzheng.modules.user.bo.UserEditBo;
|
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import com.zhongzheng.modules.user.vo.RanKingUser;
|
|
|
+import com.zhongzheng.modules.user.vo.UserVo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -91,4 +92,19 @@ public class UserController extends BaseController {
|
|
|
return toAjax(iUserService.bindIdCard(bo) ? 1 : 0);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取用户信息
|
|
|
+ *
|
|
|
+ * @return 用户信息
|
|
|
+ */
|
|
|
+ @ApiOperation("登录用户信息")
|
|
|
+ @GetMapping("getInfo")
|
|
|
+ public AjaxResult<UserVo> getInfo()
|
|
|
+ {
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ UserVo vo = iUserService.queryById(loginUser.getUser().getUserId());
|
|
|
+ vo.setNull();
|
|
|
+ return AjaxResult.success(vo);
|
|
|
+ }
|
|
|
+
|
|
|
}
|