package
Version:
v0.0.0-...-ac3b76c
Opens a new window with list of versions in this module.
Published: Jan 10, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 5
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 any, msg string)
-
func PageOK(c *gin.Context, result any, count int, pageIndex int, pageSize int, msg string)
-
type Page
-
type Response
-
type Responses
type Page struct {
Count int `json:"count"`
PageIndex int `json:"page_index"`
PageSize int `json:"page_size"`
}
type Response struct {
RequestId string `json:"requestId,omitempty"`
Code int32 `json:"code,omitempty"`
Info string `json:"info,omitempty"`
Msg string `json:"msg,omitempty"`
Status string `json:"status,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.