Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRes ¶
func MakeRes(ctx *fiber.Ctx) *response
* MakeRes 返回消息到客户端 示例: MakeRes(c).Code(somecode).Msg(somemsg).Send(somedata) 返回一个自定义消息 MakeRes(c).Msg(somemsg).Send() 只返回一个提示 MakeRes(c).SendSuccess(somedata) 简写返回一段数据 MakeRes(c).SendSuccess(somemsg,somedata) 简写返回一段数据并覆盖默认的消息提示 MakeRes(c).SendFail 同上 MakeRes(c).SendWarn 同上
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.