ILine.java 2.47 KB
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);
}