4
hao
2025-04-16 c5fb1fbcbb2bf4d511773d348f9ef625855c61fc
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
package com.system.echarts.controller;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
 
import com.app.base.control.WebController;
import com.system.echarts.service.ChartsService;
 
import io.swagger.annotations.Api;
 
@Api(description = "报表demo")
@CrossOrigin
@ControllerAdvice
//@RestController
@Controller
@RequestMapping(value = "/charts")
public class ChartsController extends WebController {
 
    @Autowired
    private ChartsService chartsService;
    
    @RequestMapping(value = "/toLine")
    public String toLine(){
        return "/charts/line";
    }
    
    @RequestMapping(value = "/toBar")
    public String toBar(){
        return "/charts/bar";
    }
 
}