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 any)
- func Send(ctx *gin.Context, code any, httpCode int, data any, extension map[string]any)
- func SendWithException(ctx *gin.Context, e exception.IException, data map[string]any)
- func SendWithStatusOK(ctx *gin.Context, code any, data any)
- func SetBusinessSuccessCode(code any)
- func Success(ctx *gin.Context, data any)
- func SuccessWithExtension(ctx *gin.Context, data any, extension map[string]any)
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 ¶
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
func SetBusinessSuccessCode ¶
func SetBusinessSuccessCode(code any)
SetBusinessSuccessCode 设置成状态码
Author : go_developer@163.com<白茶清欢>
Date : 17:01 2024/8/17
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.