TestController.java 876 B

12345678910111213141516171819202122232425262728293031323334
  1. package com.fdkankan.contro.controller;
  2. import com.fdkankan.contro.service.ICommonService;
  3. import com.fdkankan.contro.service.IScene3dNumService;
  4. import com.fdkankan.web.response.ResultData;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RestController;
  9. /**
  10. * <p>
  11. * TODO
  12. * </p>
  13. *
  14. * @author dengsixing
  15. * @since 2022/12/12
  16. **/
  17. @RestController
  18. @RequestMapping("/test")
  19. public class TestController {
  20. @Autowired
  21. private IScene3dNumService scene3dNumService;
  22. @Autowired
  23. private ICommonService commonService;
  24. @GetMapping("/test")
  25. public ResultData test(String num) throws Exception {
  26. commonService.sendEmail(num);
  27. return ResultData.ok();
  28. }
  29. }