Discover Packages
github.com/isjyi/os
tools
app
package
Version:
v0.0.0-...-594642b
Opens a new window with list of versions in this module.
Published: Nov 21, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Custum(c, data)
Error(c, code, err, msg)
OK(c, data, msg)
PageOK(c, result, count, pageIndex, pageSize, msg)
Types
Source Files
Directories
Documentation
Documentation
¶
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 PageResponse
type Response
type Page struct {
List interface{} `json:"list"`
Count int `json:"count"`
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
}
type PageResponse struct {
Code int `json:"code" example:"200"`
Data Page `json:"data"`
Msg string `json:"msg"`
}
type Response struct {
Code int `json:"code" example:"200"`
Data interface{} `json:"data"`
Msg string `json:"msg"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.