Helius
2021-06-16 5728be2af515b2200e782aa201ca5d4d67d9ea47
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
package com.ibeetl.admin.console.web;
 
import com.ibeetl.admin.console.service.EchartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
import java.util.Map;
 
/**
 * 首页图表数据
 */
@Controller
public class EchartsConsoleController {
 
    @Autowired
    EchartService service;
 
    @PostMapping("/admin/echarts/data")
    @ResponseBody
    Map<String, Object> queryData(int page, int limit){
        return service.queryData(page, limit);
    }
 
}