|
@@ -10,6 +10,7 @@ import fcb.project.manager.base.entity.TmHouse;
|
|
|
import fcb.project.manager.base.service.impl.TmApiHouseInfoServiceImpl;
|
|
|
import fcb.project.manager.base.service.impl.TmApiHouseRecommendServiceImpl;
|
|
|
import fcb.project.manager.base.service.impl.TmHouseServiceImpl;
|
|
|
+import fcb.project.manager.base.utils.FcbUtils;
|
|
|
import fcb.project.manager.base.utils.RedisServiceUtils;
|
|
|
import fdage.back.sdk.base.entity.Result;
|
|
|
import fdage.back.sdk.base.enums.ResultCodeEnum;
|
|
@@ -22,6 +23,7 @@ import lombok.extern.log4j.Log4j2;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -56,6 +58,15 @@ public class ApiQueryHouseController {
|
|
|
@Autowired
|
|
|
private TmHouseServiceImpl tmHouseService;
|
|
|
|
|
|
+ @Value("${fcb.client.secret}")
|
|
|
+ private String fcbClientSecret;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取房车宝的签名")
|
|
|
+ @PostMapping("/authCode")
|
|
|
+ public Result<Object> getFcbSign(@RequestBody Map<String , Object> params) {
|
|
|
+ return FcbUtils.getFcbSign(params , fcbClientSecret);
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation(value = "H5页面请求房源信息")
|
|
|
@GetMapping(value = "/getHouseInfo")
|