package com.kxs.stat.biz.controller;

import com.kxs.common.core.util.R;
import com.kxs.common.security.annotation.Inner;
import com.kxs.stat.api.dto.statUser.GetActivityStatByIdAndTimeDTO;
import com.kxs.stat.api.vo.GetActivityStatByIdAndTimeVO;
import com.kxs.stat.biz.service.KxsUserActTradeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 训练营表控制层
 *
 * @author Pota1ovO
 * @since 2024-05-23
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("campStat")
public class KxsCampBcqtController {
    private final KxsUserActTradeService kxsUserActTradeService;
    /**
     * 百城千团活动期间团队激活商户统计
     */
    @GetMapping("/getActivityStatByIdAndTime")
    @Inner
    public List<GetActivityStatByIdAndTimeVO> getActivityStatByIdAndTime(@RequestBody List<GetActivityStatByIdAndTimeDTO> param) {
        return kxsUserActTradeService.getActivityStatByIdAndTime(param);
    }

}
