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