记得上下班打卡 | git大法好,push需谨慎

Commit 1ebc3983 authored by 张国柄's avatar 张国柄

fix api request content type;

parent 015d178a
...@@ -20,7 +20,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -20,7 +20,6 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import org.springframework.ui.ModelMap;
import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.LinkedMultiValueMap;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -211,9 +210,10 @@ public class AdamUserController { ...@@ -211,9 +210,10 @@ public class AdamUserController {
@ApiOperationSupport(order = 9) @ApiOperationSupport(order = 9)
@ApiOperation(value = "个人信息") @ApiOperation(value = "个人信息")
@PostMapping(value = {"info"}) @PostMapping(value = {"info"})
public ResponseDto info(ModelMap map) { public ResponseDto<Map<String, Object>> info() {
String currentUid = CurrentUtil.getCurrentUid(); String currentUid = CurrentUtil.getCurrentUid();
Map<String, Object> map = new HashMap<>();
map.put("userInfo", adamRdmService.getUserInfoVoByUid(currentUid)); map.put("userInfo", adamRdmService.getUserInfoVoByUid(currentUid));
map.put("realNameInfo", adamRdmService.getRealInfoVoByUid(currentUid)); map.put("realNameInfo", adamRdmService.getRealInfoVoByUid(currentUid));
map.put("thirdPartInfo", adamRdmService.getThirdPartVoListByUid(currentUid)); map.put("thirdPartInfo", adamRdmService.getThirdPartVoListByUid(currentUid));
......
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