helperGin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendBad

func SendBad(c *gin.Context, code int, message string, body interface{})

SendBad 发送失败的消息

func SendOk

func SendOk(c *gin.Context, body interface{})

SendOk 发送成功的消息

Types

type ApiResponse

type ApiResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Body    interface{} `json:"body" `
}

Jump to

Keyboard shortcuts

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