package com.unis.detectionnum.client;

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

import java.util.Date;
import java.util.List;

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: DeviceAlarmFeign 
 * @Description: 报警记录管理 Feign
 * @author LiuFeng 
 * @date 2019年10月14日 下午4:33:00  
 */
@FeignClient(name = "detectionnum-server")
@Component
@Api(value = "报警记录管理 ", tags = "报警记录管理 ")
public interface DeviceAlarmFeign {

	@ApiOperation(value = "报警记录管理->直属库首页【库点统计】")
    @PostMapping(value = "/alarmManage/statistic/storehouse")
    public ResponseWrapper storehouseStatistic(
    		@ApiParam(value="zskdm",name="直属库代码",required=false)
    		@RequestParam(value="zskdm",required=false)String zskdm);
	
	@ApiOperation(value = "报警记录管理->报警记录条件【分页查询】")
    @PostMapping(value = "/alarmManage/record/{pageNum}/{pageSize}")
    public ResponseWrapper alarmRecordPageList(@PathVariable("pageNum")Integer pageNum,
    		@PathVariable("pageSize")Integer pageSize,
    		@RequestBody DeviceAlarmQueryVO deviceAlarmQueryVO);
}
