Blame view

fw-valhalla-sdk/src/main/java/cn/fw/valhalla/sdk/api/ValhallaGeneralApiService.java 2.36 KB
7c9f5c47   张志伟   :art:
1
2
3
  package cn.fw.valhalla.sdk.api;
  
  import cn.fw.data.base.domain.common.Message;
666de3c5   张志伟   feature(*): 优化查询线...
4
  import cn.fw.valhalla.sdk.param.ClueDeadlineParams;
03c1a9b3   张志伟   :sparkles:
5
  import cn.fw.valhalla.sdk.param.CustomerQueryReq;
7c9f5c47   张志伟   :art:
6
  import cn.fw.valhalla.sdk.param.ReachLogReq;
9e4f63f3   张志伟   feature(*): 新增进行中...
7
  import cn.fw.valhalla.sdk.result.AccidentFollowerResult;
5b538595   张志伟   feature(*): 新增查询线...
8
  import cn.fw.valhalla.sdk.result.CustomerClueDeadline;
03c1a9b3   张志伟   :sparkles:
9
  import cn.fw.valhalla.sdk.result.CustomerSimpleInfoDto;
7c9f5c47   张志伟   :art:
10
  import org.springframework.cloud.openfeign.FeignClient;
9e4f63f3   张志伟   feature(*): 新增进行中...
11
  import org.springframework.web.bind.annotation.GetMapping;
7c9f5c47   张志伟   :art:
12
13
  import org.springframework.web.bind.annotation.PostMapping;
  import org.springframework.web.bind.annotation.RequestBody;
9e4f63f3   张志伟   feature(*): 新增进行中...
14
  import org.springframework.web.bind.annotation.RequestParam;
7c9f5c47   张志伟   :art:
15
16
  
  import javax.validation.Valid;
03c1a9b3   张志伟   :sparkles:
17
  import java.util.List;
7c9f5c47   张志伟   :art:
18
19
20
21
22
23
24
25
26
27
28
  
  /**
   * @author : kurisu
   * @className : ValhallaGeneralApiService
   * @description : 售后crm通用api
   * @date: 2020-11-11 15:33
   */
  @FeignClient(value = "fw-valhalla", path = "/api/valhalla/general")
  public interface ValhallaGeneralApiService {
      /**
       * 保存进站记录
03c1a9b3   张志伟   :sparkles:
29
       *
7c9f5c47   张志伟   :art:
30
31
32
33
34
       * @param reachLogReq
       * @return
       */
      @PostMapping("/reach/save")
      Message<Void> saveReachLog(@Valid @RequestBody ReachLogReq reachLogReq);
03c1a9b3   张志伟   :sparkles:
35
36
37
38
39
40
41
42
43
  
      /**
       * 查询保有客档案信息
       *
       * @param customerQueryReq
       * @return
       */
      @PostMapping("/query/customer/list")
      Message<List<CustomerSimpleInfoDto>> queryCustomList(@RequestBody CustomerQueryReq customerQueryReq);
9e4f63f3   张志伟   feature(*): 新增进行中...
44
45
  
      /**
5b538595   张志伟   feature(*): 新增查询线...
46
47
48
49
50
51
52
53
54
55
56
57
       * 查询车辆最短的一个跟进的截止日期(不包含事故车)
       *
       * @param vin
       * @param groupId
       * @return
       */
      @GetMapping("/query/customer/clue/deadline")
      Message<CustomerClueDeadline> queryClueDeadline(@RequestParam("vin") String vin, @RequestParam("groupId") Long groupId);
  
      /**
       * 查询车辆最短的一个跟进的截止日期(不包含事故车)
       *
666de3c5   张志伟   feature(*): 优化查询线...
58
       * @param params
5b538595   张志伟   feature(*): 新增查询线...
59
60
       * @return
       */
666de3c5   张志伟   feature(*): 优化查询线...
61
62
      @PostMapping("/query/customer/clue/batch/deadline")
      Message<List<CustomerClueDeadline>> queryClueDeadlineBatch(@Valid @RequestBody ClueDeadlineParams params);
5b538595   张志伟   feature(*): 新增查询线...
63
64
  
      /**
9e4f63f3   张志伟   feature(*): 新增进行中...
65
       * 根据车牌号查询事故车跟进人员
5b538595   张志伟   feature(*): 新增查询线...
66
       *
9e4f63f3   张志伟   feature(*): 新增进行中...
67
68
69
70
71
72
       * @param plateNo 车牌号
       * @param groupId 集团id
       * @return
       */
      @GetMapping("/query/accident/follower")
      Message<AccidentFollowerResult> queryByPlate(@RequestParam("plateNo") String plateNo, @RequestParam("groupId") Long groupId);
7c9f5c47   张志伟   :art:
73
  }