package com.unis.detectionnum.client;

import com.unis.detectionnum.common.vo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import com.unis.common.utils.ResponseWrapper;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/** 
 * @ClassName: AlarmParamFeign 
 * @Description: 参数管理-告警参数管理 Feign
 * @author LiuFeng 
 * @date 2019年10月15日 下午4:33:00  
 */
@FeignClient(name = "detectionnum-server")
@Component
@Api(value = "参数管理-告警参数管理", tags = "参数管理-告警参数管理")
public interface AlarmParamFeign {

	@ApiOperation(value = "参数管理->告警参数管理【新增】")
    @PostMapping(value = "/paramManage/alarm")
    public ResponseWrapper saveAlarmParam(@RequestBody AlarmParamVO alarmParamVO);
	
	@ApiOperation(value = "参数管理->告警参数管理【修改】")
    @PostMapping(value = "/paramManage/alarm")
    public ResponseWrapper updateAlarmParam(@RequestBody AlarmParamVO alarmParamVO);
	
	@ApiOperation(value = "参数管理->告警参数管理->根据仓房编号查询告警信息【查询】")
    @PostMapping(value = "/paramManage/alarm/info/{cfbh}")
    public ResponseWrapper getAlarmParamInfo(@PathVariable("cfbh")String cfbh);
}
