rentaiming
2024-07-22 11e2c372c6efccc34c0390a11f6b86080a69a598
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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));
    }
 
}