FileInfoController.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.fjhx.file.controller;
  2. import com.baomidou.dynamic.datasource.annotation.DS;
  3. import com.fjhx.file.entity.FileInfoSelectDto;
  4. import com.fjhx.file.entity.FileInfoVo;
  5. import com.fjhx.file.entity.SingDto;
  6. import com.fjhx.file.entity.SingVo;
  7. import com.fjhx.file.service.FileInfoService;
  8. import com.ruoyi.common.constant.DatasourceConstant;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.PostMapping;
  11. import org.springframework.web.bind.annotation.RequestBody;
  12. import org.springframework.web.bind.annotation.RequestMapping;
  13. import org.springframework.web.bind.annotation.RestController;
  14. import java.util.List;
  15. /**
  16. * <p>
  17. * 文件表 前端控制器
  18. * </p>
  19. *
  20. * @author zlj
  21. * @since 2023-03-14
  22. */
  23. @DS(DatasourceConstant.BASE)
  24. @RestController
  25. @RequestMapping("/fileInfo")
  26. public class FileInfoController {
  27. @Autowired
  28. private FileInfoService fileInfoService;
  29. /**
  30. * 获取前端直传签名
  31. */
  32. @PostMapping("/getSing")
  33. public SingVo getSing(@RequestBody SingDto dto) {
  34. return fileInfoService.getSing(dto);
  35. }
  36. /**
  37. * 文件表列表
  38. */
  39. @PostMapping("/getList")
  40. public List<FileInfoVo> getList(@RequestBody FileInfoSelectDto dto) {
  41. return fileInfoService.getList(dto);
  42. }
  43. }