TestController.java 1019 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.fdkankan.scene.controller;
  2. import com.fdkankan.scene.service.ISceneCleanService;
  3. import com.fdkankan.web.response.ResultData;
  4. import com.fdkankan.fyun.face.FYunFileServiceInterface;
  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/8/17
  16. **/
  17. @RestController
  18. @RequestMapping("/test")
  19. public class TestController {
  20. @Autowired
  21. private FYunFileServiceInterface fYunFileServiceInterface;
  22. @Autowired
  23. private ISceneCleanService sceneCleanService;
  24. @Autowired
  25. private FYunFileServiceInterface fYunFileService;
  26. @GetMapping("/test")
  27. public ResultData test(){
  28. fYunFileService.uploadFile("4dkankan","C:\\Users\\4dage\\Downloads\\4DKanKan_share.png", "test_1/test.png");
  29. return ResultData.ok();
  30. }
  31. }