Documentation ¶
Overview ¶
Package response ...
Description : response ...
Author : go_developer@163.com<白茶清欢>
Date : 2022-06-25 20:52
Index ¶
- func JSON(ctx *gin.Context, httpCode int, data interface{})
- func Send(ctx *gin.Context, code interface{}, httpCode int, data interface{})
- func SendWithException(ctx *gin.Context, e exception.IException, data interface{})
- func SendWithStatusOK(ctx *gin.Context, code interface{}, data interface{})
- func Success(ctx *gin.Context, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
JSON ctx.JSON 的平替, 增加了数据是否已相应的标识
Author : go_developer@163.com<白茶清欢>
Date : 14:51 2023/2/15
func SendWithException ¶
func SendWithException(ctx *gin.Context, e exception.IException, data interface{})
SendWithException 使用exception发送数据
Author : go_developer@163.com<白茶清欢>
Date : 13:08 2022/6/26
func SendWithStatusOK ¶
SendWithStatusOK ...
Author : go_developer@163.com<白茶清欢>
Date : 22:41 2022/6/25
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.