package com.zksy.web.controller.gasbasic;

import com.zksy.base.service.GasDashboardService;
import com.zksy.common.annotation.Anonymous;
import com.zksy.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/api/gas-dashboard")
@Api(tags = "燃气首页仪表盘")
public class GasDashboardController {

    @Autowired
    private GasDashboardService gasDashboardService;

    @GetMapping("/summary")
    @ApiOperation("仪表盘汇总数据")
    @Anonymous
    public AjaxResult summary() {
        return AjaxResult.success(gasDashboardService.summary());
    }
}
