crud

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Creator

func Creator(m APICrudModel) map[string]func(c *gin.Context)

func GetID

func GetID(c *gin.Context) (int64, error)

func GetLimitOffset

func GetLimitOffset(c *gin.Context) (int, int)

Types

type APICrudModel

type APICrudModel interface {
	GetDatabase() *gorm.DB
	GetActiveConditionMap() map[string]interface{}
	GetID() int64
	Delete() (bool, error)
	List() interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL