webresult

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forbidden

func Forbidden(msg ...string) *fiber.Error

func InvalidParam

func InvalidParam(msg ...string) *fiber.Error

func NotFound

func NotFound(msg ...string) error

func SendFailed

func SendFailed(ctx fiber.Ctx, msg string, data ...any) error

func SendSucceed

func SendSucceed(ctx fiber.Ctx, data ...any) error

func SystemBusy

func SystemBusy(err ...error) error

func Unauthorized

func Unauthorized(msg ...string) *fiber.Error

Types

type WebResult

type WebResult struct {
	Message string `json:"message"`
	Data    any    `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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