IArea.java
4.11 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package com.dituhui.pea.gis;
import com.dituhui.pea.pojo.AreaRequest;
import com.dituhui.pea.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;
@FeignClient(value = "gis")
public interface IArea {
/**
* 添加面
* @param area
* @return
*/
@PostMapping("/gis/area/add")
public WebResult<String> add(@RequestBody AreaRequest area);
/**
* 根据用户自定义id修改面
* @param area
* @return
*/
@PostMapping("/gis/area/updateByCustomId")
public WebResult<Boolean> updateByCustomId(@RequestBody AreaRequest area);
/**
* 根据id修改面
* @param area
* @return
*/
@PostMapping("/gis/area/updateById")
public WebResult<Boolean> updateById(@RequestBody AreaRequest area);
/**
* 根据用户自定义id删除面
* @return
*/
@PostMapping("/gis/area/delByCustomId")
public WebResult<Boolean> delByCustomId(@RequestParam String teamId, @RequestParam(required = false) boolean contract, @RequestParam String mapId, @RequestParam String layerCode, @RequestParam String customId);
/**
* 根据id删除面
* @return
*/
@PostMapping("/gis/area/delById")
public WebResult<Boolean> delById(@RequestParam String teamId, @RequestParam(required = false) boolean contract, @RequestParam String mapId, @RequestParam String id);
/**
* 根据用户自定义id获取面
* @return
*/
@GetMapping("/gis/area/getByCustomId")
public WebResult getByCustomId(@RequestParam String teamId, @RequestParam(required = false) boolean contract,
@RequestParam String mapId, @RequestParam String layerCode, @RequestParam String customId,
@RequestParam(defaultValue = "true") boolean includeGeo, @RequestParam(defaultValue = "gcj02") String coordType);
/**
* 根据用户自定义id获取面
* @return
*/
@GetMapping("/gis/area/getById")
public WebResult getById(@RequestParam String teamId, @RequestParam(required = false) boolean contract, @RequestParam String id,
@RequestParam String mapId, @RequestParam(defaultValue = "true") boolean includeGeo, @RequestParam(defaultValue = "gcj02") String coordType);
@GetMapping("/gis/area/search")
public WebResult search(@RequestParam String teamId, @RequestParam(required = false) boolean contract, @RequestParam String mapId,
@RequestParam(defaultValue = "0") Integer pageNum, @RequestParam(defaultValue = "0") Integer pageSize, @RequestParam(required = false) String layerCode,
@RequestParam(required = false) String customQuerys, @RequestParam(defaultValue = "And") String compositeType,
@RequestParam(required = false) List<String> fieldNames, @RequestParam(defaultValue = "true") Boolean includeGeo,
@RequestParam(defaultValue = "gcj02") String coordType, @RequestParam(required = false) String orders);
/**
* 拆分面
* @return
*/
@PostMapping("/gis/area/split")
public WebResult<String> split(@RequestBody AreaRequest area);
/**
* 合并面
* @return
*/
@PostMapping("/gis/area/union")
public WebResult<Boolean> union(@RequestBody AreaRequest area);
/**
* 创建表(单独用户)
* @return
*/
@PostMapping("/gis/area/createDataset")
public WebResult<Boolean> create(@RequestParam String teamId, @RequestParam(defaultValue = "true") boolean common);
/**
* 根据图层删除
* @return
*/
@PostMapping("/gis/area/deleteByLayerCode")
public WebResult<Long> deleteByLayerCode(@RequestParam String teamId, @RequestParam(required = false) boolean contract,
@RequestParam String mapId, @RequestParam String layerCode);
}