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 getRealtime(@RequestParam("time") String time); @PostMapping(FIRE_ALARM_INCIDENT) BladePage 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); }