response

package
v0.0.0-...-775f829 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 4 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 IOList

type IOList struct {
	Count int64                             `json:"count"`
	Items []models.InventoryHistoryDetailed `json:"items"`
}

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