Documentation ¶ Index ¶ func ApiExport(table, filename string) gin.HandlerFunc func ApiImport(table string) gin.HandlerFunc func Error(ctx *gin.Context, err error) func Fail(ctx *gin.Context, err string) func List(ctx *gin.Context, data any, total int64) func OK(ctx *gin.Context, data any) type ReplyData type ReplyList Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ApiExport ¶ func ApiExport(table, filename string) gin.HandlerFunc func ApiImport ¶ func ApiImport(table string) gin.HandlerFunc func Error ¶ func Error(ctx *gin.Context, err error) func Fail ¶ func Fail(ctx *gin.Context, err string) func List ¶ func List(ctx *gin.Context, data any, total int64) func OK ¶ func OK(ctx *gin.Context, data any) Types ¶ type ReplyData ¶ type ReplyData[T any] struct { Data T `json:"data"` Error string `json:"error,omitempty"` } type ReplyList ¶ type ReplyList[T any] struct { Data []T `json:"data"` Total int64 `json:"total"` Error string `json:"error,omitempty"` } Source Files ¶ View all Source files export.go import.go reply.go Click to show internal directories. Click to hide internal directories.