Documentation
¶
Index ¶
- func DeleteFileHandler(c *gin.Context)
- func DownloadMultiFilesHandler(c *gin.Context)
- func DownloadSingleFileHandler(c *gin.Context)
- func EmptyTrashHandler(c *gin.Context)
- func QueryFilesHandler(c *gin.Context)
- func UpdateFilesHandler(c *gin.Context)
- func UploadFilesHandler(c *gin.Context)
- func UserLogin(c *gin.Context)
- type DownloadParams
- type FileInfo
- type UploadMetaData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFileHandler ¶
func DownloadMultiFilesHandler ¶
Files godoc @tags files @summary Download multiple files @description Download files by the specified file paths, will be zipped @accept json @produce octet-stream @param files body DownloadParams true "the files that you want to download" @success 200 {file} binary @failure 400 {object} types.ErrorResult{error=string} @failure 500 {object} types.ErrorResult{error=string} @router /api/storage/download [post]
func DownloadSingleFileHandler ¶
Files godoc @tags files @summary Download a single file @description Download a single file by the specified file path @accept json @produce octet-stream @param path path string true "the file that you want to download" @success 200 {file} binary @failure 400 {object} types.ErrorResult{error=string} @router /api/storage/download [get]
func EmptyTrashHandler ¶
func QueryFilesHandler ¶
Files godoc @tags files @summary Retrieve files information @description get files by specified path @accept json @produce json @param path path string true "the path that you want to list the files" @success 200 {object} types.JSONResult{data=[]FileInfo} @failure 400 {object} types.ErrorResult{error=string} @router /api/storage/files [get]
func UpdateFilesHandler ¶
func UploadFilesHandler ¶
Types ¶
type DownloadParams ¶
type DownloadParams struct {
FilePaths []string `json:"file_paths"`
}