Documentation ¶
Index ¶
- type ArchiveService
- type CreateUploadSessionService
- type DirectoryService
- type DownloadService
- type FileAnonymousGetService
- type FileIDService
- type FilterTagCreateService
- type ItemCompressService
- type ItemDecompressService
- type ItemIDService
- type ItemMoveService
- type ItemPropertyService
- type ItemRelocateService
- type ItemRenameService
- type ItemSearchService
- type ItemService
- type LinkTagCreateService
- type SearchResult
- type SingleFileService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveService ¶
type ArchiveService struct {
ID string `uri:"sessionID" binding:"required"`
}
ArchiveService 文件流式打包下載服务
type CreateUploadSessionService ¶
type CreateUploadSessionService struct { Path string `json:"path" binding:"required"` Size uint64 `json:"size" binding:"min=0"` Name string `json:"name" binding:"required"` PolicyID string `json:"policy_id" binding:"required"` LastModified int64 `json:"last_modified"` MimeType string `json:"mime_type"` }
CreateUploadSessionService 获取上传凭证服务
type DirectoryService ¶
type DirectoryService struct {
Path string `uri:"path" json:"path" binding:"required,min=1,max=65535"`
}
DirectoryService 创建新目录服务
type DownloadService ¶
type DownloadService struct {
ID string `uri:"id" binding:"required"`
}
DownloadService 文件下載服务
type FileAnonymousGetService ¶
type FileAnonymousGetService struct { ID uint `uri:"id" binding:"required,min=1"` Name string `uri:"name" binding:"required"` }
FileAnonymousGetService 匿名(外链)获取文件服务
type FilterTagCreateService ¶
type FilterTagCreateService struct { Expression string `json:"expression" binding:"required,min=1,max=65535"` Icon string `json:"icon" binding:"required,min=1,max=255"` Name string `json:"name" binding:"required,min=1,max=255"` Color string `json:"color" binding:"hexcolor|rgb|rgba|hsl"` }
FilterTagCreateService 文件分类标签创建服务
type ItemCompressService ¶
type ItemCompressService struct { Src ItemIDService `json:"src"` Dst string `json:"dst" binding:"required,min=1,max=65535"` Name string `json:"name" binding:"required,min=1,max=255"` }
ItemCompressService 文件压缩任务服务
type ItemDecompressService ¶
type ItemDecompressService struct { Src string `json:"src"` Dst string `json:"dst" binding:"required,min=1,max=65535"` Encoding string `json:"encoding"` }
ItemDecompressService 文件解压缩任务服务
type ItemIDService ¶
type ItemIDService struct { Items []string `json:"items"` Dirs []string `json:"dirs"` // Source *ItemService Force *bool `json:"force,omitempty"` UnlinkOnly *bool `json:"unlink,omitempty"` }
ItemIDService 处理多文件/目录相关服务,字段值为HashID,可通过Raw()方法获取原始ID
type ItemMoveService ¶
type ItemMoveService struct { SrcDir string `json:"src_dir" binding:"required,min=1,max=65535"` Src ItemIDService `json:"src"` Dst string `json:"dst" binding:"required,min=1,max=65535"` }
ItemMoveService 处理多文件/目录移动
type ItemPropertyService ¶
type ItemPropertyService struct { ID string `binding:"required"` TraceRoot bool `form:"trace_root"` IsFolder bool `form:"is_folder"` }
ItemPropertyService 获取对象属性服务
type ItemRelocateService ¶
type ItemRelocateService struct { Src ItemIDService `json:"src"` DstPolicyID string `json:"dst_policy_id" binding:"required"` }
ItemRelocateService 文件转移任务服务
type ItemRenameService ¶
type ItemRenameService struct { Src ItemIDService `json:"src"` NewName string `json:"new_name" binding:"required,min=1,max=255"` }
ItemRenameService 处理多文件/目录重命名
type ItemSearchService ¶
type ItemSearchService struct { Type string `uri:"type" binding:"required"` Keywords string `uri:"keywords" binding:"required"` Path string `form:"path"` }
ItemSearchService 文件搜索服务
type ItemService ¶
ItemService 处理多文件/目录相关服务
type LinkTagCreateService ¶
type LinkTagCreateService struct { Path string `json:"path" binding:"required,min=1,max=65535"` Name string `json:"name" binding:"required,min=1,max=255"` }
LinkTagCreateService 目录快捷方式标签创建服务
type SearchResult ¶
type SearchResult struct { Parent int `json:"parent"` Objects []serializer.Object `json:"objects"` }
根据关键字搜索文件结果
type SingleFileService ¶
type SingleFileService struct {
Path string `uri:"path" json:"path" binding:"required,min=1,max=65535"`
}
SingleFileService 对单文件进行操作的五福,path为文件完整路径
Click to show internal directories.
Click to hide internal directories.