controllers

package
v0.0.0-...-0f31eaf Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 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