repository

package
v0.0.0-...-29094d0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-2.0 Imports: 7 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(ctx context.Context, tx *gorm.DB, todo model.Todo) model.Todo
	FindAll(ctx context.Context, tx *gorm.DB, param web.RequestParameterTodo) []model.Todo
	FindById(ctx context.Context, tx *gorm.DB, id int) model.Todo
	Update(ctx context.Context, tx *gorm.DB, todo model.Todo) model.Todo
	Delete(ctx context.Context, tx *gorm.DB, id int)
}

func NewTodoRepository

func NewTodoRepository() TodoRepository

type TodoRepositoryImpl

type TodoRepositoryImpl struct {
}

func (TodoRepositoryImpl) Create

func (repository TodoRepositoryImpl) Create(ctx context.Context, tx *gorm.DB, todo model.Todo) model.Todo

func (TodoRepositoryImpl) Delete

func (repository TodoRepositoryImpl) Delete(ctx context.Context, tx *gorm.DB, id int)

func (TodoRepositoryImpl) FindAll

func (repository TodoRepositoryImpl) FindAll(ctx context.Context, tx *gorm.DB, param web.RequestParameterTodo) (todos []model.Todo)

func (TodoRepositoryImpl) FindById

func (repository TodoRepositoryImpl) FindById(ctx context.Context, tx *gorm.DB, id int) model.Todo

func (TodoRepositoryImpl) Update

func (repository TodoRepositoryImpl) Update(ctx context.Context, tx *gorm.DB, todo model.Todo) model.Todo

Jump to

Keyboard shortcuts

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