Interface FileService

  • All Implemented Interfaces:
    net.mamoe.mirai.spi.BaseService

    
    public interface FileService
     implements BaseService
                        

    文件服务,用于图片、语音、端视频文件上传

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class FileService.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String upload(ExternalResource res) 上传文件并返回链接
      • Methods inherited from class net.mamoe.mirai.spi.BaseService

        getPriority
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • upload

         abstract String upload(ExternalResource res)

        上传文件并返回链接