package com.unis.detectionnum.client;

import com.unis.detectionnum.common.vo.*;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpStatus;
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;
import io.swagger.annotations.ApiParam;

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

	@ApiOperation(value = "参数管理->扫描参数管理【新增/修改】")
    @PostMapping(value = "/paramManage/scanRule")
    public ResponseWrapper saveOrUpdateScanRule(@RequestBody ScanRuleVO scanRuleVO);
	
	
	@ApiOperation(value = "参数管理->扫描参数管理->根据仓房编号查询告警信息【查询】")
    @GetMapping(value = "/paramManage/scanRule/info/{sbCode}")
    public ResponseWrapper getScanRuleInfo(@PathVariable("sbCode")String sbCode);
}
