package com.sky.ioc.controller.work;

import com.sky.ioc.entity.params.IocParam;
import com.sky.ioc.service.carbon.CarbonService;
import com.sky.ioc.tool.ReturnMsg;
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.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 * @Description
 * @Author LunCe
 * @Date 2023/2/28 16:02
 **/


@Api(tags ="智慧办公----公车管理")
@Slf4j
@RestController
@RequestMapping("/bus")
public class BusController {


    @Autowired
    private CarbonService carbonService;




    @ApiOperation("核心指标")
    @PostMapping("/getBusCoreIndicators")
    public ReturnMsg getBusCoreIndicators(@RequestBody IocParam iocParam){
        return carbonService.getBusCoreIndicators(iocParam);
    }


    @ApiOperation("公车情况")
    @PostMapping("/getBusInfo")
    public ReturnMsg getBusInfo(@RequestBody IocParam iocParam){
        return carbonService.getBusInfo(iocParam);
    }




    @ApiOperation("成本趋势")
    @PostMapping("/getBusCostTrend")
    public ReturnMsg getBusCostTrend(@RequestBody IocParam iocParam){
        return carbonService.getBusCostTrend(iocParam);
    }





}
