Documentation ¶
Index ¶
- Variables
- func Custum(c *gin.Context, data gin.H)
- func Download(c *gin.Context, data []byte, filename, contentType string)
- func Error(c *gin.Context, code int, err error, msg string)
- func OK(c *gin.Context, data interface{}, msg string)
- func PageOK(c *gin.Context, result interface{}, count int, pageIndex int, pageSize int, ...)
- type Page
- type Response
- type Responses
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &response{}
Functions ¶
Types ¶
type Response ¶
type Response struct { // 数据集 RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` }
Click to show internal directories.
Click to hide internal directories.