handler

package
v0.0.0-...-4aa34e7 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upload

type Upload struct{}

Upload ...

func (*Upload) Aliyun

func (e *Upload) Aliyun(c *gin.Context)

Aliyun ... @Tags Api.Upload @Summary Upload file @Description Upload file @ID file.upload @Accept multipart/form-data @Produce json @Param image formData file true "this is a test file" @Success 200 {object} UploadResponse @Failure 400 {object} msg.Error @Router /upload/aliyun [post]

type UploadResponse

type UploadResponse struct {
	Original string `json:"original"`
	Name     string `json:"name"`
	Path     string `json:"path"`
	URL      string `json:"url"`
}

UploadResponse ....

Jump to

Keyboard shortcuts

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