adminvideoupload

package
v0.0.0-...-ca656e9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Size10MB = 10 * 1024 * 1024
View Source
const Size12MB = 12 * 1024 * 1024

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

Types

type Error

type Error struct {
	Errno   int    `json:"errno"`
	Message string `json:"message"`
}

func NewError

func NewError(msg ...string) *Error

type FileType

type FileType string
const (
	FileTypeXieyi FileType = "admin-xieyi"
	FileTypeWupin FileType = "admin-wupin"
)

type Query

type Query struct {
	File *multipart.FileHeader `form:"file"`
	Type FileType              `form:"type"`
}

type Success

type Success struct {
	Errno int         `json:"errno"`
	Data  SuccessData `json:"data"`
}

func NewSuccess

func NewSuccess(url string, poster string) *Success

type SuccessData

type SuccessData struct {
	Url    string `json:"url"`
	Poster string `json:"poster,omitempty"`
}

Jump to

Keyboard shortcuts

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