Documentation
¶
Overview ¶
Package response 发送响应的工具
Index ¶
- func Send(c *fiber.Ctx, data interface{}) error
- func SendCommonError(c *fiber.Ctx, message string) error
- func SendError(c *fiber.Ctx, apiError *common.APIError) error
- func SendResponse(c *fiber.Ctx, response *common.APIResponse) error
- func SendWrapError(c *fiber.Ctx, innerError error, code int, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendCommonError ¶
SendCommonError 发送通用错误
func SendResponse ¶
func SendResponse(c *fiber.Ctx, response *common.APIResponse) error
SendResponse 发送response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.