Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileUpload ¶
func FileUpload(ctx context.Context, c *app.RequestContext)
FileUpload 上传文件接口
@Summary 上传文件 @Description 用户可以通过该接口上传文件 @Tags 文件上传接口 @Accept mpfd @Produce json @Param file formData file true "上传的文件" @Param file_type formData string true "上传的类型,是头像还是背景图片" @Success 200 {object} common.UploadResponse "成功返回文件信息" @Failure 400 {object} common.BaseResponse "请求错误" @Router /upload/file [post]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.