Commit ba4e18db authored by xiaoguang.xu's avatar xiaoguang.xu

增加查询 attach 信息接口

parent 0e6e26ed
...@@ -6,10 +6,10 @@ import cn.quantgroup.user.enums.MaritalStatus; ...@@ -6,10 +6,10 @@ import cn.quantgroup.user.enums.MaritalStatus;
import cn.quantgroup.user.enums.OccupationEnum; import cn.quantgroup.user.enums.OccupationEnum;
import cn.quantgroup.xyqb.Constants; import cn.quantgroup.xyqb.Constants;
import cn.quantgroup.xyqb.aspect.limit.PasswordFreeAccessValidator; import cn.quantgroup.xyqb.aspect.limit.PasswordFreeAccessValidator;
import cn.quantgroup.xyqb.aspect.lock.RedisLock;
import cn.quantgroup.xyqb.entity.*; import cn.quantgroup.xyqb.entity.*;
import cn.quantgroup.xyqb.model.JsonResult; import cn.quantgroup.xyqb.model.JsonResult;
import cn.quantgroup.xyqb.service.user.*; import cn.quantgroup.xyqb.service.user.*;
import cn.quantgroup.xyqb.aspect.lock.RedisLock;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
...@@ -17,6 +17,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -17,6 +17,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -46,6 +47,17 @@ public class UserCenterController { ...@@ -46,6 +47,17 @@ public class UserCenterController {
@Autowired @Autowired
private IUserService userService; private IUserService userService;
@GetMapping("/attach")
public JsonResult queryUserAttach(Long userId) {
if (userId == null) {
return JsonResult.buildErrorStateResult("用户 ID 不能为空", null);
}
UserAttached userAttached = userCenterService.searchUserAttachedByUserId(userId);
return JsonResult.buildSuccessResultGeneric(userAttached);
}
/** /**
* 根据用户手机号查询昵称. * 根据用户手机号查询昵称.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment