response

package
v0.0.0-...-0ffe074 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Overview

Package response ...

Description : response ...

Author : go_developer@163.com<白茶清欢>

Date : 2022-06-25 20:52

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(ctx *gin.Context, httpCode int, data interface{})

JSON ctx.JSON 的平替, 增加了数据是否已相应的标识

Author : go_developer@163.com<白茶清欢>

Date : 14:51 2023/2/15

func Send

func Send(ctx *gin.Context, code interface{}, httpCode int, data interface{})

Send 基础的发送数据

Author : go_developer@163.com<白茶清欢>

Date : 22:40 2022/6/25

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

func SendWithStatusOK(ctx *gin.Context, code interface{}, data interface{})

SendWithStatusOK ...

Author : go_developer@163.com<白茶清欢>

Date : 22:41 2022/6/25

func Success

func Success(ctx *gin.Context, data interface{})

Success 成功的响应

Author : go_developer@163.com<白茶清欢>

Date : 22:37 2022/6/25

Types

This section is empty.

Jump to

Keyboard shortcuts

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