response

package
v0.0.0-...-fcb87a8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package response 发送响应的工具

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(c *fiber.Ctx, data interface{}) error

Send 发送data响应

func SendCommonError

func SendCommonError(c *fiber.Ctx, message string) error

SendCommonError 发送通用错误

func SendError

func SendError(c *fiber.Ctx, apiError *common.APIError) error

SendError 发送error response

func SendResponse

func SendResponse(c *fiber.Ctx, response *common.APIResponse) error

SendResponse 发送response

func SendWrapError

func SendWrapError(c *fiber.Ctx, innerError error, code int, message string) error

SendWrapError 包裹错误并发送

Types

This section is empty.

Jump to

Keyboard shortcuts

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