| | |
| | | package com.ruoyi.management.controller; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.management.domain.dto.HomeStatisticsQuery; |
| | | import com.ruoyi.management.domain.dto.InventoriesSuppliesQuery; |
| | | import com.ruoyi.management.domain.vo.HomeStatisticsVO; |
| | | import com.ruoyi.management.domain.vo.InventoriesSuppliesVO; |
| | | import com.ruoyi.management.service.HomeStatisticsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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; |
| | | |
| | | @RestController |
| | | @RequestMapping("/home-statistics") |
| | | @Api(value = "首页统计接口", tags = "首页统计接口", description = "首页统计接口") |
| | | public class HomeStatisticsController { |
| | | |
| | | @Resource |
| | | private HomeStatisticsService homeStatisticsService; |
| | | @PostMapping("/getHomeStatistics") |
| | | @ApiOperation(value = "首页统计接口") |
| | | public R<HomeStatisticsVO> getHomeStatistics(@RequestBody HomeStatisticsQuery homeStatisticsQuery) { |
| | | return R.ok(homeStatisticsService.getHomeStatistics(homeStatisticsQuery)); |
| | | } |
| | | |
| | | } |