controllers

package
v0.0.0-...-05665eb Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloneDB = database.CloneDB

Functions

func DELETEItem

func DELETEItem[T any](r *gin.Engine, GetDB func() (*gorm.DB, error), prefix string, model *T)

func GETItems

func GETItems[T any](r *gin.Engine, GetDB func() (*gorm.DB, error), prefix string, model *T)

func PATCHItem

func PATCHItem[T any](r *gin.Engine, GetDB func() (*gorm.DB, error), prefix string, model *T)

func POSTItem

func POSTItem[T any](r *gin.Engine, GetDB func() (*gorm.DB, error), prefix string, model *T)

func PUTItem

func PUTItem[T any](r *gin.Engine, GetDB func() (*gorm.DB, error), prefix string, model *T)

Types

type TWO

type TWO[T any, Y any] struct {
	First  T
	Second Y
}

Jump to

Keyboard shortcuts

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