CourierTaskFeign.java
1.3 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
package com.sl.ms.search.api;
import com.sl.ms.search.domain.dto.CourierTaskDTO;
import com.sl.ms.search.domain.dto.CourierTaskPageQueryDTO;
import com.sl.transport.common.util.PageResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import springfox.documentation.annotations.ApiIgnore;
@ApiIgnore
@FeignClient(value = "sl-express-ms-search", contextId = "CourierTask", path = "courierSearch")
public interface CourierTaskFeign {
/**
* 分页查询
*
* @param pageQueryDTO 分页查询条件
* @return 分页查询结果
*/
@PostMapping("pageQuery")
PageResponse<CourierTaskDTO> pageQuery(@RequestBody CourierTaskPageQueryDTO pageQueryDTO);
/**
* 新增快递员任务
*
* @param courierTaskDTO 快递员任务
*/
@PostMapping
void saveOrUpdate(@RequestBody CourierTaskDTO courierTaskDTO);
/**
* 根据取派件id查询快递员任务
*
* @param id 取派件id
* @return 快递员任务
*/
@GetMapping("/{id}")
CourierTaskDTO findById(@PathVariable("id") Long id);
}