Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BundleFileGroup ¶
func BundleFileGroup(repo repository.Repository, s3Client *s3.Client) func(c *gin.Context)
func CreateFileGroup ¶
func CreateFileGroup(repo repository.Repository) func(c *gin.Context)
func Upload ¶
func Upload(repo repository.Repository) func(c *gin.Context)
Types ¶
type BundleFileGroupParam ¶
type BundleFileGroupParam struct { FileGroupId uint64 `json:"fileGroupId" binding:"required"` ExpiredAt string `json:"expiredAt" binding:"required,datetime=2006-01-02T15:04:05Z07:00"` // format UTC: 2021-07-18T10:00:00.000Z Passcode string `json:"passcode" binding:"required,gte=6,lte=100"` DownloadPassword string `json:"downloadPassword" binding:"omitempty,gte=6,lte=100"` UserIds []uint64 `json:"userIds" binding:"omitempty"` }
type FileGroupParam ¶
type FileGroupParam struct {
ArchiveType models.ArchiveType `json:"archiveType" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.