新增易方达接口以及添加claude技能

This commit is contained in:
2026-02-26 15:57:50 +08:00
parent c8418c7d4b
commit 167aae2164
21 changed files with 3031 additions and 24 deletions
@@ -0,0 +1,54 @@
package com.fangjia.open.controllers;
import com.fangjia.open.interceptors.Authority;
import com.fangjia.open.interceptors.Role;
import com.fangjia.open.model.BasicModel;
import com.fangjia.open.model.RestfulModelAndView;
import com.fangjia.service.dto.UniversalDto;
import com.fangjia.service.efund.EfundMatchService;
import org.apache.commons.lang.StringUtils;
import org.sothis.web.mvc.annotation.Param;
/**
* E基金地址匹配接口Controller
* @author wenyan
*/
@Authority(role = Role.USER)
public class EfundController {
private EfundMatchService efundMatchService;
/**
* E基金地址匹配接口
* 根据地址进行匹配,返回房价信息和地址类型标签
*
* @param address 地址字符串
* @param city 城市名称(可选)
* @return 匹配结果JSON
*/
public RestfulModelAndView matchAction(@Param(name = "address") String address, @Param(name = "city") String city) {
RestfulModelAndView mav = new RestfulModelAndView();
// 参数校验
if (StringUtils.isBlank(address)) {
mav.setModel(BasicModel.buildBadRequestModel("address参数不能为空"));
return mav;
}
// 调用Service进行地址匹配
UniversalDto result = efundMatchService.matchAddress(address, city);
if (result == null || result.isEmpty()) {
mav.setModel(BasicModel.buildBadRequestModel("地址匹配失败"));
return mav;
}
// 返回成功结果
mav.setModel(BasicModel.buildOKModel().setResult(result));
return mav;
}
public void setEfundMatchService(EfundMatchService efundMatchService) {
this.efundMatchService = efundMatchService;
}
}