src/main/java/com/sulei/controller/api/xcx/UserApiController.java
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.sulei.controller.api.xcx;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult;
import com.alibaba.fastjson.JSONObject;
import com.sulei.controller.api.xcx.annotation.LoginUser;
import com.sulei.entity.*;
import com.sulei.enums.UserTypeEnum;
import com.sulei.service.*;
import com.sulei.util.DateUtil;
import com.sulei.util.IpUtil;
import com.sulei.util.ResponseUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("api")
@Slf4j
public class UserApiController {
@Autowired
private WxMaService wxMaService;
@Autowired
private UserService userService;
@Autowired
private UserWasherService userWasherService;
@Autowired
private UserMerchanterService userMerchanterService;
@Autowired
private MerchantService merchantService;
@Autowired
private CouponService couponService;
/**
* 用户个人页面数据
*
* @param userId
* @return
*/
@GetMapping("getUserInfo")
public Object getUserInfo(@LoginUser Integer userId, @RequestParam(defaultValue = "washer") String role) {
log.info("【请求开始】用户个人页面数据,请求参数,userId:{}", userId);
if (userId == null) {
log.error("用户个人页面数据查询失败:用户未登录!!!");
return ResponseUtil.unlogin();
}
后面还有 151 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
