controller

package
v0.0.0-...-6574dfe Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, code string, err error)

func SendRespOfCreate

func SendRespOfCreate(ctx *gin.Context)

func SendRespOfGet

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

func SendRespOfPost

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

func SendRespOfPut

func SendRespOfPut(ctx *gin.Context)

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