package com.iformall.controller; import com.iformall.common.ResultData; import com.iformall.domain.po.UserBasicProperty; import com.iformall.service.UserBasicPropertyService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; 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.RestController; @RestController @RequestMapping("/api/userProperty") @Api(description = "模板接口") public class UserBasicPropertyController extends BaseController { private final Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired private UserBasicPropertyService userBasicPropertyService; @ApiOperation("根据id查询接口") @GetMapping("/findGlod") public ResultData findGlod() { logger.debug("[" + getIpAddr() + "] UserBasicPropertyController::findGlod"); UserBasicProperty userBasicProperty = userBasicPropertyService.findById(getMemberId()); return new ResultData(userBasicProperty); } }