base

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Data    interface{} `json:"data,omitempty"`
	Message string      `json:"message"`
	Code    int         `json:"code"`
}

func BadResponse

func BadResponse(message string) *Response

func ErrorResponse

func ErrorResponse(code int, message string) *Response

func ForbiddenResponse

func ForbiddenResponse(message string) *Response

func ServerErrorResponse

func ServerErrorResponse(message string) *Response

func SuccessResponse

func SuccessResponse(data interface{}) *Response

Jump to

Keyboard shortcuts

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