uploadhandlers

package
v0.0.0-...-851e7b8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadHandlers

type UploadHandlers struct {
	*basichandlers.Basic
}

UploadHandlers provide file upload support

func (*UploadHandlers) Avatar

func (u *UploadHandlers) Avatar() gin.HandlerFunc

Avatar is defined for upload user avatar image @Summary 上传用户头像 @Tags 文件上传 @Description 用于上传单个的用户头像 @Accept json @Produce json @Accept application/x-json-stream @Param Authorization header string true "Authentication header" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /upload/avatar [post]

func (*UploadHandlers) Single

func (u *UploadHandlers) Single() gin.HandlerFunc

Single single file @Summary 上传单个文件(异步同步) @Tags 文件上传 @Description 用于上传单个文件 @Accept json @Produce json @Accept application/x-json-stream @Param Authorization header string true "Authentication header" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /upload/single [post]

Jump to

Keyboard shortcuts

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