package com.sckw.report.controller;

import com.sckw.core.web.response.HttpResult;
import com.sckw.report.service.KwWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author czh
 * @desc 工作台
 * @date 2023/9/11
 */
@RestController
@RequestMapping("kwWork")
public class KwWorkController {

    @Autowired
    private KwWorkService kwWorkService;

    /**
     * @return HttpResult
     * @desc: 业务数据数量统计
     * @author: czh
     * @date: 2023/9/11
     */
    @PostMapping("queryBusinessStatistics")
    public HttpResult queryBusinessStatistics() {
        return HttpResult.ok(kwWorkService.queryBusinessStatistics());
    }

}
