package com.zcloud.zcGbsServicer.web;

import com.alibaba.cola.dto.PageResponse;
import com.zcloud.zcGbsServicer.api.FireResourceServiceI;
import com.zcloud.zcGbsServicer.dto.FireResourceStaPageQry;
import com.zcloud.zcGbsServicer.dto.clientobject.FireResourceStaCO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "消防资源-监管端使用")
@RequestMapping("/${application.gateway}/resource")
@RestController
@AllArgsConstructor
public class FireResourceController {

    private final FireResourceServiceI fireResourceService;

    @ApiOperation("消防资源统计")
    @PostMapping("/list")
    public PageResponse<FireResourceStaCO> listSta(@RequestBody FireResourceStaPageQry qry) {
        return fireResourceService.listSta(qry);
    }
}
