response

package
v0.0.0-...-5808d2a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Return

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

Types

type UniversalReturn

type UniversalReturn struct {
	RequestID string      `json:"request_id,omitempty"` // 请求ID
	Code      string      `json:"code"`                 // 状态码  0 正常
	Message   string      `json:"message,omitempty"`    // 基础消息
	Data      interface{} `json:"data,omitempty"`       // 数据
}

UniversalReturn 通用返回

type UserLogin

type UserLogin struct {
	JWT        string `json:"jwt"`
	Storehouse string `json:"storehouse"`
}

Jump to

Keyboard shortcuts

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