|
|
|
@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@ -17,7 +18,7 @@ public class VolunteerController { |
|
|
|
@Autowired |
|
|
|
private VolunteerService volunteerService; |
|
|
|
|
|
|
|
@GetMapping("/overall-details") |
|
|
|
@GetMapping(value = "/overall-details", produces = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
public ResponseEntity<Map<String, Object>> getOverallDetails() { |
|
|
|
return volunteerService.getOverallDetails(); |
|
|
|
} |
|
|
|
@ -56,7 +57,8 @@ public class VolunteerController { |
|
|
|
public ResponseEntity<Map<String, Object>> getOverallPendingRequest() { |
|
|
|
return volunteerService.getOverallPendingRequest(); |
|
|
|
} |
|
|
|
/// ////////////////////////////////////// |
|
|
|
|
|
|
|
/// ////////////////////////////////////// |
|
|
|
@GetMapping("/zonewise-details") |
|
|
|
public ResponseEntity<Map<String, Object>> getZonewiseDetails() { |
|
|
|
return volunteerService.getZonewiseDetails(); |
|
|
|
@ -101,14 +103,23 @@ public class VolunteerController { |
|
|
|
public ResponseEntity<Map<String, Object>> getZonewisePendingRequest(@RequestParam String zone) { |
|
|
|
return volunteerService.getZonewisePendingRequest(zone); |
|
|
|
} |
|
|
|
/// //////////////////////////////////// |
|
|
|
|
|
|
|
/// //////////////////////////////////// |
|
|
|
@GetMapping("/wardwise-details") |
|
|
|
public ResponseEntity<Map<String, Object>> getWardwiseDetails(@RequestParam String zone) { |
|
|
|
return volunteerService.getWardwiseDetails(zone); |
|
|
|
} |
|
|
|
/// ///////////////////////////////////// |
|
|
|
|
|
|
|
/// ///////////////////////////////////// |
|
|
|
@GetMapping("/volunteer-details") |
|
|
|
public ResponseEntity<Map<String, Object>> getVolunteerDetails(@RequestParam String zone) { |
|
|
|
return volunteerService.getVolunteerDetails(zone); |
|
|
|
} |
|
|
|
|
|
|
|
/// ///////////////////////////////////// |
|
|
|
@GetMapping(value = "/categorywise-details", produces = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
public ResponseEntity<Map<String, Object>> getCategorywiseDetails(@RequestParam String zone) { |
|
|
|
return volunteerService.getCategorywiseDetails(zone); |
|
|
|
} |
|
|
|
|
|
|
|
} |