IPoint.java
2.75 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
74
75
76
package com.dituhui.mp.gis;
import com.dituhui.mp.pojo.PointRequest;
import com.dituhui.mp.pojo.WebResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@FeignClient(value = "gis")
public interface IPoint {
@RequestMapping(value = "/gis/point/test", method = RequestMethod.GET)
public WebResult<String> test();
/**
* 添加点
* @param point
* @return
*/
@PostMapping("/gis/point/add")
public WebResult<String> add(@RequestBody PointRequest point);
/**
* 根据用户自定义id修改
* @param point
* @return
*/
@PostMapping("/gis/point/updateByCustomId")
public WebResult<Boolean> updateByCustomId(@RequestBody PointRequest point);
/**
* 根据id修改
* @param point
* @return
*/
@PostMapping("/gis/point/updateById")
public WebResult<Boolean> updateById(@RequestBody PointRequest point);
/**
* 根据用户自定义id删除
* @return
*/
@PostMapping("/gis/point/delByCustomId")
public WebResult<Boolean> delByCustomId(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String mapId,
@RequestParam String layerCode, @RequestParam String customId);
/**
* 根据id删除
* @return
*/
@PostMapping("/gis/point/delById")
public WebResult<Boolean> delById(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String id);
/**
* 根据用户自定义id获取点
* @return
*/
@GetMapping("/gis/point/getByCustomId")
public WebResult getByCustomId(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String mapId,
@RequestParam String layerCode, @RequestParam String customId);
/**
* 根据id获取面
* @return
*/
@GetMapping("/gis/point/getById")
public WebResult getById(@RequestParam boolean contract, @RequestParam String teamId, @RequestParam String mapId,
@RequestParam(required = false) String layerCode, @RequestParam String id);
@GetMapping("/gis/point/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);
}