You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
571 B

  1. <?php
  2. namespace App\Service\v3\Interfaces;
  3. interface AttachmentServiceInterface
  4. {
  5. /**
  6. * 表单上传,单文件
  7. * @param $file
  8. * @param $path
  9. * @param $filesystem
  10. * @param string $attachmenttype
  11. */
  12. public function formUpload($file, $path, $filesystem, $attachmenttype = 'image');
  13. /**
  14. * base64code上传,单文件
  15. * @param $contents
  16. * @param $path
  17. * @param $filesystem
  18. */
  19. public function base64Upload($contents, $path, $filesystem);
  20. public function switchImgToAliOss($path, $bucket = '');
  21. }