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
Click to show internal directories.
Click to hide internal directories.