| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.management.domain.dto.HomeStatisticsQuery; |
| | | import com.ruoyi.management.domain.dto.InventoriesSuppliesQuery; |
| | | import com.ruoyi.management.domain.vo.HomeStatisticsVO; |
| | |
| | | public class HomeStatisticsController { |
| | | |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private HomeStatisticsService homeStatisticsService; |
| | | @PostMapping("/getHomeStatistics") |
| | | @ApiOperation(value = "首页统计接口") |
| | | public R<HomeStatisticsVO> getHomeStatistics(HomeStatisticsQuery homeStatisticsQuery) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(homeStatisticsService.getHomeStatistics(homeStatisticsQuery)); |
| | | } |
| | | |