ILine.java
2.47 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
package com.dituhui.mp.gis;
import com.dituhui.mp.pojo.LineRequest;
import com.dituhui.mp.pojo.WebResult;
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 java.util.List;
/**
* ILine
* 用于的类
*
* @author zhouyun
* 2020/12/31 14:00
* <p>Company: 成都地图慧科技有限公司</p>
*/
@FeignClient(value = "gis")
public interface ILine {
@PostMapping("/gis/line/add")
public WebResult<String> add(@RequestBody LineRequest line);
@PostMapping("/gis/line/updateByCustomId")
public WebResult<Boolean> updateByCustomId(@RequestBody LineRequest line);
@PostMapping("/gis/line/updateById")
public WebResult<Boolean> updateById(@RequestBody LineRequest line);
@GetMapping("/gis/line/delByCustomId")
public WebResult<Boolean> delByCustomId(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String mapId,
@RequestParam String layerCode, @RequestParam String customId);
@PostMapping("/gis/line/delById")
public WebResult<Boolean> delById(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String id);
@GetMapping("/gis/line/getByCustomId")
public WebResult getByCustomId(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String mapId,
@RequestParam String layerCode, @RequestParam String customId);
@GetMapping("/gis/line/getById")
public WebResult getById(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String mapId,
@RequestParam(required = false) String layerCode, @RequestParam String id);
@GetMapping("/gis/line/search")
public WebResult search(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String mapId,
@RequestParam(defaultValue = "0") int pageNum, @RequestParam(defaultValue = "0") int pageSize, @RequestParam(required = false) String layerCode,
@RequestParam(required = false) String customQuerys, @RequestParam(defaultValue = "And") String compositeType,
@RequestParam(required = false) List<String> fieldNames, @RequestParam(required = false) String orders);
}