ReloadController.java 1023 B

1234567891011121314151617181920212223242526272829303132
  1. package com.diagbot.web;
  2. import com.diagbot.annotation.SysLogger;
  3. import com.diagbot.dto.RespDTO;
  4. import com.diagbot.facade.ReloadFacade;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RestController;
  11. /**
  12. * @Description:
  13. * @Author:zhaops
  14. * @time: 2019/8/20 15:35
  15. */
  16. @RestController
  17. @Api(value = "热加载API", tags = { "知识库标准化-词库热加载API" })
  18. @RequestMapping(value = "/reload")
  19. @SuppressWarnings("unchecked")
  20. public class ReloadController {
  21. @Autowired
  22. ReloadFacade reloadFacade;
  23. @ApiOperation(value = "知识库标准化-词库热加载[by:zhaops]")
  24. @PostMapping("/createFile")
  25. @SysLogger("createFile")
  26. public RespDTO<Boolean> createFile() {
  27. return RespDTO.onSuc(reloadFacade.createFile());
  28. }
  29. }