-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEtracker_Controller.java
More file actions
54 lines (37 loc) · 1.39 KB
/
Copy pathEtracker_Controller.java
File metadata and controls
54 lines (37 loc) · 1.39 KB
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
53
54
package com.example.etracker.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/tracker")
public class Etracker_Controller {
@Autowired
private Etracker_Service exp;
@GetMapping("/TotalExpenseTotalIncomeBar_year")
public Map<String, java.lang.Object> graph1(@RequestParam int uSER_ID ){
return exp.graph1(uSER_ID);
}
@GetMapping("/TotalExpenseTotalIncomeBar_month")
public Map<String, java.lang.Object> graph2(@RequestParam int uSER_ID ){
return exp.graph2(uSER_ID);
}
@GetMapping("/TotalExpenseTotalIncomeLine_year")
public Collection<Map<String,java.lang.Object>> graph3(@RequestParam int uSER_ID ){
return exp.graph3(uSER_ID);
}
@GetMapping("/TotalExpenseTotalIncomeLine_month")
public Collection<Map<String,java.lang.Object>> graph4(@RequestParam int uSER_ID ){
return exp.graph4(uSER_ID);
}
@GetMapping("/getIncome")
public Collection<Map<String,Object>> getIncome(@RequestParam int uSER_ID){
return exp.getIncome(uSER_ID);
}
@GetMapping("/getExpense")
public Collection<Map<String,Object>> getExpense(@RequestParam int uSER_ID){
return exp.getExpense(uSER_ID);
}
@GetMapping("/getIncomeExpense")
public Collection<Map<String,Object>> getIncomeExpense(@RequestParam int uSER_ID){
return exp.getIncomeExpense(uSER_ID);
}
}