http

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(ctx *fiber.Ctx, msg string) error

错误

func Response

func Response(ctx *fiber.Ctx, code int, msg string, data any) error

输出

func Success

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

正常

Types

type RespData

type RespData struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    any    `json:"data"`
}

Jump to

Keyboard shortcuts

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