app

package
v0.0.0-...-330c009 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

*

  • @Author: 夜央 Oh oh oh oh oh oh (https://github.com/togettoyou)
  • @Email: zoujh99@qq.com
  • @Date: 2020/3/4 12:51 上午
  • @Description: 定义请求返回JSON格式

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gin

type Gin struct {
	C *gin.Context
}

func (*Gin) Response

func (g *Gin) Response(httpCode int, errMsg string, data interface{})

type Response

type Response struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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