repository

package
v0.0.0-...-e31252a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TodoRepository

type TodoRepository interface {
	Create(todo *domain.Todo) error
	FindById(id uint) (*domain.Todo, error)
	FindAllByIdTodo(idTodo uint) ([]*domain.Todo, error)
	Delete(id uint) error
	Update(todo *domain.Todo) error
}

func NewTodoRepository

func NewTodoRepository(db *gorm.DB) TodoRepository

type UserRepository

type UserRepository interface {
	Create(user *domain.User) error
	FindById(id uint) (*domain.User, error)
	FindAllByIdUser(idUser uint) (*[]domain.User, error)
	Delete(id uint) error
	Update(user *domain.User) error
}

func NewUserRepository

func NewUserRepository(db *gorm.DB) UserRepository

Jump to

Keyboard shortcuts

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