AccountManagementResource.java 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.leanwo.gateway.rest;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.web.bind.annotation.RequestMapping;
  4. import org.springframework.web.bind.annotation.RequestMethod;
  5. import org.springframework.web.bind.annotation.RequestParam;
  6. import org.springframework.web.bind.annotation.ResponseBody;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import com.leanwo.gateway.service.AccountManagementService;
  9. @RestController
  10. @RequestMapping("/api/AccountManagementResource")
  11. public class AccountManagementResource {
  12. @Autowired
  13. private AccountManagementService accountManagementService;
  14. /**
  15. * 重新加载账套数据并且重新加载数据源
  16. * @author GuoZhiBo 20200616
  17. * @return
  18. */
  19. @RequestMapping(value = "/loadAccountManagement", method = RequestMethod.POST, produces = "application/json")
  20. @ResponseBody
  21. public boolean loadAccountManagement() {
  22. accountManagementService.loadAccountManagement(true);
  23. return true;
  24. }
  25. }