controller

package
v0.0.0-...-aec535a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BASE_NAME = "./static/file/"

Variables

This section is empty.

Functions

func Base64Upload

func Base64Upload(context *gin.Context)

func FormUpload

func FormUpload(context *gin.Context)

func InsertNewUser

func InsertNewUser(context *gin.Context)

json格式数据

func MultiUpload

func MultiUpload(context *gin.Context)

func PostForm

func PostForm(context *gin.Context)

form表单提交

func QueryById

func QueryById(context *gin.Context)

localhost:9090/user/get/2/hello

func QueryParam

func QueryParam(context *gin.Context)

localhost:9090/user/query?id=2&name=hello

func RenderForm

func RenderForm(context *gin.Context)

跳转html

func RenderView

func RenderView(context *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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