|
@@ -1,45 +1,25 @@
|
|
package com.slibra.web.controller.business;
|
|
package com.slibra.web.controller.business;
|
|
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
import com.alibaba.fastjson2.JSON;
|
|
-import com.alibaba.fastjson2.JSONWriter;
|
|
|
|
-import com.github.pagehelper.PageInfo;
|
|
|
|
|
|
+import com.slibra.business.domain.City;
|
|
|
|
+import com.slibra.business.mapper.CityMapper;
|
|
import com.slibra.business.req.AiChatReq;
|
|
import com.slibra.business.req.AiChatReq;
|
|
import com.slibra.business.req.AiChatRes;
|
|
import com.slibra.business.req.AiChatRes;
|
|
-import com.slibra.business.req.ChatReq;
|
|
|
|
-import com.slibra.business.req.WorkOrderReq;
|
|
|
|
import com.slibra.business.service.IFrontService;
|
|
import com.slibra.business.service.IFrontService;
|
|
-import com.slibra.common.DecimalUtils;
|
|
|
|
-import com.slibra.common.constant.HttpStatus;
|
|
|
|
-import com.slibra.common.constant.MyConstants;
|
|
|
|
import com.slibra.common.core.controller.BaseController;
|
|
import com.slibra.common.core.controller.BaseController;
|
|
import com.slibra.common.core.domain.AjaxResult;
|
|
import com.slibra.common.core.domain.AjaxResult;
|
|
import com.slibra.common.core.domain.R;
|
|
import com.slibra.common.core.domain.R;
|
|
-import com.slibra.common.core.page.TableDataInfo;
|
|
|
|
-import com.slibra.common.enums.BusinessEnum;
|
|
|
|
-import com.slibra.common.exception.ServiceException;
|
|
|
|
-import com.slibra.common.utils.DateUtils;
|
|
|
|
-import com.slibra.common.utils.SecurityUtils;
|
|
|
|
-import com.slibra.common.utils.StringUtils;
|
|
|
|
-import com.slibra.common.utils.poi.ExcelUtil;
|
|
|
|
-import com.slibra.common.utils.uuid.IdUtils;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.util.CollectionUtils;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
|
-import java.math.BigDecimal;
|
|
|
|
-import java.util.*;
|
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
-
|
|
|
|
-import static com.slibra.common.constant.MyConstants.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 前端用户相关接口
|
|
* 前端用户相关接口
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("/bigModel")
|
|
|
|
|
|
+@RequestMapping("/front")
|
|
@Slf4j
|
|
@Slf4j
|
|
public class FrontController extends BaseController {
|
|
public class FrontController extends BaseController {
|
|
|
|
|
|
@@ -47,27 +27,20 @@ public class FrontController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IFrontService frontService;
|
|
private IFrontService frontService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private CityMapper cityMapper;
|
|
|
|
+
|
|
|
|
|
|
-/**
|
|
|
|
- * 获取大屏的实时数据 + 统计数据
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- @GetMapping(value = "/hello")
|
|
|
|
- public AjaxResult hello()
|
|
|
|
- {
|
|
|
|
- log.info("进入了 测试springmvc 接口");
|
|
|
|
- return AjaxResult.success("success");
|
|
|
|
- }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
- *AI语音客服大模型请求接口
|
|
|
|
- * @param aiChatReq
|
|
|
|
|
|
+ * 获取全国省市区接口
|
|
|
|
+ * @param city
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping("/queryBusinessInfo")
|
|
|
|
- public AiChatRes queryBusinessInfo(@RequestBody AiChatReq aiChatReq){
|
|
|
|
- log.info("进入了 AI语音客服大模型请求 接口,请求参数为{}", JSON.toJSONString(aiChatReq));
|
|
|
|
- return this.frontService.queryBusinessInfo(aiChatReq);
|
|
|
|
|
|
+ @GetMapping("/getCities")
|
|
|
|
+ public R<List<City>> getCities(City city){
|
|
|
|
+ log.info("进入了 获取全国省市区接口 接口,请求参数为{}", JSON.toJSONString(city));
|
|
|
|
+ return R.ok(this.cityMapper.selectCityList(city));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|