liujie
2026-09-15 7e97fc9053029b1761294d52445759a2afe94934
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.ruoyi.web.controller.api;
 
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.dto.SysDashboardOverviewRequest;
import com.ruoyi.system.service.ISysDashboardService;
import com.ruoyi.system.vo.SysDashboardOverviewVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
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;
 
/**
 * 首页数据总览接口
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/api/dashboard")
@Api(tags = "首页数据总览")
public class SysApiDashboardController extends BaseController
{
    @Autowired
    private ISysDashboardService dashboardService;
 
    /**
     * 查询首页数据总览
     */
    @ApiOperation(
            value = "查询首页数据总览",
            notes = "返回线上预约、现场登记、访客状态和进出场趋势统计数据",
            response = SysDashboardOverviewVO.class
    )
    @ApiResponses({
            @ApiResponse(
                    code = 200,
                    message = "成功",
                    response = AjaxResult.class,
                    responseContainer = "Data"
            )
    })
    @PostMapping("/overview")
    public AjaxResult<SysDashboardOverviewVO> overview(@RequestBody(required = false) SysDashboardOverviewRequest request)
    {
        return success(dashboardService.overview(request));
    }
}