林火综合应急信息管理系统cloud后端
guoshilong
2023-03-14 2c6c1bef7406c4fac77505c2fcc5ba24443da055
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
package org.springblade.fire.feign;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.tool.api.R;
import org.springblade.fire.entity.FireSupplementEntity;
import org.springblade.fire.vo.FireSupplementVO;
import org.springblade.fire.vo.FireVO;
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;
 
/**
 * fire Feign接口类
 *
 * @author guoshilong
 */
@FeignClient(
    value = "blade-fire"
)
public interface IFireClient {
    String API_PREFIX = "/client";
    String REAL_TIME = API_PREFIX + "/realtimeFireAlarmIncident";
    String FIRE_ALARM_INCIDENT = API_PREFIX + "/fireAlarmIncident";
 
    @GetMapping(REAL_TIME)
    List<FireVO> getRealtime(@RequestParam("time") String time);
 
    @PostMapping(FIRE_ALARM_INCIDENT)
    BladePage<FireVO> selectFirePage(@RequestParam("current") Integer current, @RequestParam("size") Integer size, @RequestBody FireVO fire);
 
    String DISASTER_ASSESSMENT =API_PREFIX +  "/disasterAssessment";
 
    @PostMapping(DISASTER_ASSESSMENT)
    FireSupplementEntity getSupplementOne(@RequestBody FireSupplementEntity fireSupplementEntity);
}