linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
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
package com.ots.project.demo.controller;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
 
/**
 * 报表
 *
 * @author ots
 */
@Controller
@RequestMapping("/demo/report")
public class DemoReportController {
    private String prefix = "demo/report";
 
    /**
     * 百度ECharts
     */
    @GetMapping("/echarts")
    public String echarts() {
        return prefix + "/echarts";
    }
 
    /**
     * 图表插件
     */
    @GetMapping("/peity")
    public String peity() {
        return prefix + "/peity";
    }
 
    /**
     * 线状图插件
     */
    @GetMapping("/sparkline")
    public String sparkline() {
        return prefix + "/sparkline";
    }
 
    /**
     * 图表组合
     */
    @GetMapping("/metrics")
    public String metrics() {
        return prefix + "/metrics";
    }
}