handler

package
v0.0.0-...-3a3bdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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]

func MutiUpload

func MutiUpload(ctx context.Context, c *app.RequestContext)

MutiUpload experiment

func Ping

func Ping(ctx context.Context, c *app.RequestContext)

Ping . @Summary 测试服务器连接 @Description 测试服务器连接 @Tags Ping @Produce json @Router /ping [get]

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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