package com.farriver.bwf.web.controller.admin; import com.farriver.bwf.common.model.ApiData; import com.farriver.bwf.data.transferobject.queryobject.statistics.StatisticsDashboardDataQueryObject; import com.farriver.bwf.service.statistics.StatisticsDashboardService; import jakarta.annotation.Resource; 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; @RestController @RequestMapping("/api/admin/dashboard") public class DashboardController extends AdminControllerBase { @Resource StatisticsDashboardService statisticsDashboardService; @PostMapping("/data") public ApiData GetDashboardData(@RequestBody StatisticsDashboardDataQueryObject queryObject) { return statisticsDashboardService.GetDashboardData(queryObject); } }