Documentation ¶
Index ¶
- Variables
- func Custom(c *gin.Context, data gin.H)
- func Error(c *gin.Context, code int, err error, message ...string)
- func OK(c *gin.Context, data interface{}, message ...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:"request_id,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code"` Message string `protobuf:"bytes,3,opt,name=msg,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // 兼容性字段 ErrCode int32 `protobuf:"varint,2,opt,name=errCode,proto3" json:"err_code"` }
Click to show internal directories.
Click to hide internal directories.