package com.panzhihua.service_grid.api;
|
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.service_grid.service.EventService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
@Slf4j
|
@RestController
|
@RequestMapping("/statistics/")
|
public class StatisticsApi {
|
|
@Resource
|
private EventService eventService;
|
|
@GetMapping("/admin/eventStatistics")
|
public R eventStatistics(@RequestParam("communityId") Long communityId){
|
return eventService.eventStatistics(communityId);
|
}
|
}
|