You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package in.gov.chennaicorporation.gccoffice.pensioner.controller;
  2. import java.util.List;
  3. import java.util.Map;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.stereotype.Controller;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.ResponseBody;
  9. import in.gov.chennaicorporation.gccoffice.pensioner.service.DropdownService;
  10. @RequestMapping("gcc/api")
  11. @Controller
  12. public class DropdownApiController {
  13. @Autowired
  14. private DropdownService dropdownService;
  15. @GetMapping("/getRetrimentTypes")
  16. @ResponseBody
  17. public List<Map<String, Object>> getRetrimentTypes() {
  18. return dropdownService.getRetrimentTypes();
  19. }
  20. @GetMapping("/getCategoryTypes")
  21. @ResponseBody
  22. public List<Map<String, Object>> getCategoryTypes() {
  23. return dropdownService.getCategoryTypes();
  24. }
  25. @GetMapping("/getProvisionalReasonTypes")
  26. @ResponseBody
  27. public List<Map<String, Object>> getProvisionalReasonTypes() {
  28. return dropdownService.getProvisionalReasonTypes();
  29. }
  30. @GetMapping("/getGisEntryTypes")
  31. @ResponseBody
  32. public List<Map<String, Object>> getGisEntryTypes() {
  33. return dropdownService.getGisEntryTypes();
  34. }
  35. }