package com.fs.api.controller;


import com.fs.common.core.domain.R;
import com.fs.company.service.IStatisticManageService;
import com.fs.statis.param.ComprehensiveStatisticsParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.Assert;
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;

import javax.annotation.Resource;

/**
 * @description: 统计管理
 * @author: Guos
 * @time: 2025/10/30 上午9:16
 */
@Slf4j
@RestController
@RequestMapping("/statistic/manage")
public class StatisticManageController {

    @Resource
    private IStatisticManageService statisticManageService;

    @PostMapping("/statisticMain")
    public R statisticMain(@RequestBody ComprehensiveStatisticsParam param) {
        Assert.notNull(param.getDimension(), "请选择统计维度");
        statisticManageService.executeTask();
//        return R.ok().put("data", statisticManageService.statisticMain(param));
        return R.ok("success");

    }
}
