package com.sky.ioc.controller.work;

import com.sky.ioc.entity.params.IocParam;
import com.sky.ioc.service.space.SpaceService;
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.*;

/**
 * TODO
 * @Description  智慧办公 ---- 楼层概括
 * @Author LunCe
 * @Date 2023/2/28 15:39
 **/

@Api(tags ="智慧办公----楼层概括")
@Slf4j
@RestController
@RequestMapping("/floor")
public class FloorController {


    @Autowired
    private SpaceService spaceService;


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


    @ApiOperation("当日门禁进入人员")
    @PostMapping("/getAccessPersonnel")
    public ReturnMsg getAccessPersonnel(@RequestBody IocParam iocParam){
        return spaceService.getAccessPersonnel(iocParam);
    }




    @ApiOperation("房间分布")
    @PostMapping("/getFloorList")
    public ReturnMsg getFloorList(@RequestBody IocParam iocParam){
        return spaceService.getFloorList(iocParam);
    }









}
