files

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 25 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL