controller

package
v0.0.0-...-41ef91b Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorController

type AuthorController interface {
	GetAll(*gin.Context)
	GetOne(g *gin.Context)
	Create(g *gin.Context)
	Update(g *gin.Context)
	Delete(g *gin.Context)
}

TODO : add new abstraction like service

type ToDoController

type ToDoController interface {
	GetAll(*gin.Context)
	GetOne(g *gin.Context)
	Create(g *gin.Context)
	Update(g *gin.Context)
	Delete(g *gin.Context)
}

TODO : add new abstraction like service

func NewAuthorController

func NewAuthorController(db *gorm.DB) ToDoController

func NewToDoController

func NewToDoController(db *gorm.DB) ToDoController

Jump to

Keyboard shortcuts

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