后台服务
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

37 行
1.2 KiB

  1. package com.iformall.controller;
  2. import com.iformall.common.ResultData;
  3. import com.iformall.domain.po.UserBasicProperty;
  4. import com.iformall.service.UserBasicPropertyService;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.slf4j.Logger;
  8. import org.slf4j.LoggerFactory;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.GetMapping;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. @RestController
  14. @RequestMapping("/api/userProperty")
  15. @Api(description = "模板接口")
  16. public class UserBasicPropertyController extends BaseController {
  17. private final Logger logger = LoggerFactory.getLogger(this.getClass());
  18. @Autowired
  19. private UserBasicPropertyService userBasicPropertyService;
  20. @ApiOperation("根据id查询接口")
  21. @GetMapping("/findGlod")
  22. public ResultData findGlod() {
  23. logger.debug("[" + getIpAddr() + "] UserBasicPropertyController::findGlod");
  24. UserBasicProperty userBasicProperty = userBasicPropertyService.findById(getMemberId());
  25. return new ResultData(userBasicProperty);
  26. }
  27. }