response

package
v0.0.0-...-8010d25 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(rCtx *app.RequestContext, statusCode int, bizCode int32, msg string)

func Ok

func Ok(rCtx *app.RequestContext, msg string)

func OkWithData

func OkWithData(rCtx *app.RequestContext, msg string, data interface{})

Types

type Response

type Response struct {
	Code int32  `json:"code"`
	Msg  string `json:"msg"`
}

type ResponseWithData

type ResponseWithData struct {
	Response
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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