package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Sep 7, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
- Variables
-
func Custum(c *gin.Context, data gin.H)
-
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
type Page struct {
Count int `json:"count"`
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
}
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"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.