package com.yuchen.saas.park.api.feign.service;

import com.yuchen.saas.park.api.dto.park.TemperaturePreventionDTO;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 颜艺波
 * @date 2022/8/18 11:16
 * @Description
 */
@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallback = PreventionFeignServiceFallback.class
)
public interface PreventionFeignService {

    /**
     * 防疫测温数据新增
     * @param temperaturePreventionDTO
     * @return
     */
    @PostMapping("/temp/prevention/isc/add")
    R<Boolean> iscAdd(@RequestBody TemperaturePreventionDTO temperaturePreventionDTO);
}
