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]