file

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *ctx.Context)

@Tags 文件 @Summary 删除 @Accept json @Produce json @param payload body ctx.IDList true "request payload" @Success 200 {object} ctx.Response @Router /file/delete [delete]

func Read

func Read(c *ctx.Context)

@Tags 文件 @Summary 预览 @Param id query string false "file id" @Router /file/read [get]

func Router

func Router(e *gin.RouterGroup)

func Upload

func Upload(c *ctx.Context)

@Tags 文件 @Summary 上传 @Produce json @Accept multipart/form-data @Param file[] formData file true "file" @Success 200 {object} ctx.Response{data=[]db.File} @Router /file/upload [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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