Documentation ¶
Index ¶
- func CreateDirectory(c *context.APIContext)
- func DeleteFile(c *context.APIContext)
- func DownloadFile(c *context.APIContext)
- func GetFileInfo(c *context.APIContext)
- func GetUserRootDirectory(c *context.APIContext)
- func MoveFile(c *context.APIContext)
- func ReadDirectory(c *context.APIContext)
- func RenameFile(c *context.APIContext)
- func UploadFile(c *context.APIContext)
- type CreateDirForm
- type DeleteFileForm
- type DownloadFileForm
- type GetFileInfoForm
- type MoveFileForm
- type ReadDirectoryForm
- type RenameFileForm
- type UserRootDirForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
func CreateDirectory(c *context.APIContext)
func DeleteFile ¶
func DeleteFile(c *context.APIContext)
func DownloadFile ¶
func DownloadFile(c *context.APIContext)
func GetFileInfo ¶
func GetFileInfo(c *context.APIContext)
func GetUserRootDirectory ¶
func GetUserRootDirectory(c *context.APIContext)
func MoveFile ¶
func MoveFile(c *context.APIContext)
func ReadDirectory ¶
func ReadDirectory(c *context.APIContext)
func RenameFile ¶
func RenameFile(c *context.APIContext)
func UploadFile ¶
func UploadFile(c *context.APIContext)
Types ¶
type CreateDirForm ¶
type DeleteFileForm ¶
type DeleteFileForm struct {
FileID uint `form:"file_id" uri:"file_id" json:"file_id" binding:"required"`
}
type DownloadFileForm ¶
type DownloadFileForm struct {
FileID uint `form:"file_id" uri:"file_id" json:"file_id" binding:"required"`
}
type GetFileInfoForm ¶
type GetFileInfoForm struct {
FileID uint `json:"file_id" uri:"file_id" form:"file_id" binding:"required"`
}
type MoveFileForm ¶
type MoveFileForm struct {
DirectoryID uint `form:"directory_id" json:"directory_id" binding:"required"`
}
type ReadDirectoryForm ¶
type RenameFileForm ¶
type RenameFileForm struct {
FileName string `form:"filename" json:"filename" binding:"required,filename"`
}
type UserRootDirForm ¶
type UserRootDirForm struct { // 只有管理员可以使用 UserID uint `form:"user_id" query:"user_id" uri:"user_id" json:"user_id" binding:"omitempty"` }
Click to show internal directories.
Click to hide internal directories.