package
Version:
v0.0.1-alpha
Opens a new window with list of versions in this module.
Published: Jul 24, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
Result = "result"
Total = "total"
CurrentPage = "currentPage"
PageSize = "pageSize"
)
func NewApiResult(ctx *gin.Context) *apiResultJson
func NewPage(data interface{}, total, currentPage, pageSize int) gin.H
type ApiResult struct {
Success bool `json:"success"`
Msg string `json:"msg"`
Obj interface{} `json:"obj"`
Code string `json:"code"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.