Discover Packages
github.com/KenmyZhang/pic_site_admin_server
pkg
app
package
Version:
v0.0.0-...-8170b65
Opens a new window with list of versions in this module.
Published: Jan 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
BindAndValid binds and validates data
MarkErrors logs error logs
type BaseResponse struct {
Code int `json:"status"`
Msg string `json:"msg"`
}
func (g *Gin ) Response(httpCode int , errCode interface{}, data interface{})
Response setting gin.JSON
func (g *Gin ) ResponsePage(httpCode int , errCode interface{}, data interface{}, total, totalPage int )
Response setting gin.JSON
type Response struct {
Code int `json:"status"`
Msg string `json:"msg"`
Data interface{} `json:"data"`
}
type ResponsePage struct {
Code int `json:"status"`
Msg string `json:"msg"`
Data interface{} `json:"data"`
Total int `json:"total"`
TotalPage int `json:"totalPage"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.