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

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.yuchen.saas.park.api.dto.park.TemperaturePreventionDTO;
import com.yuchen.saas.park.service.service.TemperaturePreventionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 颜艺波
 * @date 2022/6/16 16:25
 * @Description
 */
@RestController
@Api(value = "测温防疫信息", tags = "测温防疫信息")
public class TemperaturePreventionFeign {

    @Autowired
    private TemperaturePreventionService tempPreventionService;

    @PostMapping("/temp/prevention/isc/add")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "isc温度报警事件添加", notes = "isc温度报警事件添加")
    public R<Boolean> iscAdd(@RequestBody TemperaturePreventionDTO temperaturePreventionDTO) {
        return R.data(tempPreventionService.add(temperaturePreventionDTO));
    }
}
