fileUploadAndDownload.js 1001 B

1234567891011121314151617181920212223242526272829303132
  1. import service from '@/utils/request'
  2. // @Tags FileUploadAndDownload
  3. // @Summary 分页文件列表
  4. // @Security ApiKeyAuth
  5. // @accept application/json
  6. // @Produce application/json
  7. // @Param data body modelInterface.PageInfo true "分页获取文件户列表"
  8. // @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
  9. // @Router /fileUploadAndDownload/getFileList [post]
  10. export const getFileList = (data) => {
  11. return service({
  12. url: '/fileUploadAndDownload/getFileList',
  13. method: 'post',
  14. data
  15. })
  16. }
  17. // @Tags FileUploadAndDownload
  18. // @Summary 删除文件
  19. // @Security ApiKeyAuth
  20. // @Produce application/json
  21. // @Param data body dbModel.FileUploadAndDownload true "传入文件里面id即可"
  22. // @Success 200 {string} json "{"success":true,"data":{},"msg":"返回成功"}"
  23. // @Router /fileUploadAndDownload/deleteFile [post]
  24. export const deleteFile = (data) => {
  25. return service({
  26. url: '/fileUploadAndDownload/deleteFile',
  27. method: 'post',
  28. data
  29. })
  30. }