Documentation ¶
Index ¶
- func Count(tab *table.Table) gin.HandlerFunc
- func Create(tab *table.Table, after func(id string) error) gin.HandlerFunc
- func Delete(tab *table.Table, after func(id string) error) gin.HandlerFunc
- func Detail(tab *table.Table, after func(id string, doc mongodb.Document) error) gin.HandlerFunc
- func Disable(tab *table.Table, after func(id string) error) gin.HandlerFunc
- func Enable(tab *table.Table, after func(id string) error) gin.HandlerFunc
- func Error(ctx *gin.Context, err error)
- func Export(tab *table.Table) gin.HandlerFunc
- func Fail(ctx *gin.Context, err string)
- func Group(tab *table.Table, after func(doc []mongodb.Document) error) gin.HandlerFunc
- func Import(tab *table.Table, after func(ids []string) error) gin.HandlerFunc
- func List(ctx *gin.Context, data any, total int64)
- func OK(ctx *gin.Context, data any)
- func Operator(hook func(id string) error) gin.HandlerFunc
- func Register(method, path string, handlers ...gin.HandlerFunc)
- func RegisterRoutes(router *gin.RouterGroup)
- func Search(tab *table.Table, after func(doc []mongodb.Document) error) gin.HandlerFunc
- func Update(tab *table.Table, after func(id string) error) gin.HandlerFunc
- type API
- type ReplyData
- type ReplyList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(method, path string, handlers ...gin.HandlerFunc)
func RegisterRoutes ¶
func RegisterRoutes(router *gin.RouterGroup)
Types ¶
Click to show internal directories.
Click to hide internal directories.