新增图表API接口

This commit is contained in:
zer0Black
2022-02-28 13:21:27 +08:00
parent 193d92f968
commit c2cc0e47db
2 changed files with 15 additions and 1 deletions
@@ -107,7 +107,11 @@ public class MockController {
public String getCabinetCountInfo() { public String getCabinetCountInfo() {
return readJson("classpath:com/jero/modules/demo/mock/json/getCntrNoCountInfo.json"); return readJson("classpath:com/jero/modules/demo/mock/json/getCntrNoCountInfo.json");
} }
@GetMapping(value = "/report/getTubiao")
public String getTubiao() {
return readJson("classpath:org/jero/modules/demo/mock/json/getTubiao.json");
}
/** /**
* 实时磁盘监控 * 实时磁盘监控
* @param request * @param request
@@ -0,0 +1,10 @@
{"data":
[
{"day": "星期一", "step": 1234, "assess": "良"},
{"day": "星期二", "step": 1884, "assess": "优"},
{"day": "星期三", "step": 1671, "assess": "良+"},
{"day": "星期四", "step": 2197, "assess": "优+"},
{"day": "星期五", "step": 1342, "assess": "中"},
{"day": "星期六", "step": 545, "assess": "差"},
{"day": "星期日", "step": 244, "assess": "极差"}
]}