controller

package
v0.0.0-...-b486baa Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostSuccessfully

func PostSuccessfully(ctx *gin.Context)

Post

func PutSuccessfully

func PutSuccessfully(ctx *gin.Context)

Put

func SendBadRequestBody

func SendBadRequestBody(ctx *gin.Context, err error)

func SendBadRequestParam

func SendBadRequestParam(ctx *gin.Context, err error)

func SendFailedResp

func SendFailedResp(ctx *gin.Context, err error)

func SendRespOfGet

func SendRespOfGet(ctx *gin.Context, data interface{})

Get

func SendRespOfPost

func SendRespOfPost(ctx *gin.Context, data interface{})

Types

type ResponseData

type ResponseData struct {
	Code string      `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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