Documentation ¶
Overview ¶
Package scaffold .
Index ¶
- func Create[T any](db *gorm.DB, ob *T) gin.HandlerFunc
- func FindByID[T any](db *gorm.DB, ob *T) gin.HandlerFunc
- func ICrerate[T any](db *gorm.DB, ob *T) (*T, error)
- func IFindByField[T any](db *gorm.DB, ob []*T, fn string, fv interface{}) ([]*T, error)
- func IFindByID[T any](db *gorm.DB, ob *T, id interface{}) (*T, error)
- func IList[T any](db *gorm.DB, obs []*T) ([]*T, error)
- func IListByOrder[T any](db *gorm.DB, obs []*T) ([]*T, error)
- func IListWithChildren[T any](db *gorm.DB, obs []*T, level int) ([]*T, error)
- func IUpdate[T any](db *gorm.DB, ob *T) (*T, error)
- func List[T any](db *gorm.DB, ob []*T) gin.HandlerFunc
- func ListByOrder[T any](db *gorm.DB, ob []*T) gin.HandlerFunc
- func ListWhitChildren[T any](db *gorm.DB, ob []*T, level int) gin.HandlerFunc
- func Remove[T any](db *gorm.DB, ob *T) gin.HandlerFunc
- func Update[T any](db *gorm.DB, ob *T) gin.HandlerFunc
- type Container
- type Msg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IFindByField ¶
IFindByField: fn field name, fv field value
func IListWithChildren ¶
IListWithChildren .
func ListWhitChildren ¶
ListWhitChildren .
Types ¶
Click to show internal directories.
Click to hide internal directories.