Documentation ¶
Index ¶
- type TodoRepository
- type TodoRepositoryImpl
- func (repository TodoRepositoryImpl) Create(ctx context.Context, tx *gorm.DB, todo model.Todo) model.Todo
- func (repository TodoRepositoryImpl) Delete(ctx context.Context, tx *gorm.DB, id int)
- func (repository TodoRepositoryImpl) FindAll(ctx context.Context, tx *gorm.DB, param web.RequestParameterTodo) (todos []model.Todo)
- func (repository TodoRepositoryImpl) FindById(ctx context.Context, tx *gorm.DB, id int) model.Todo
- func (repository TodoRepositoryImpl) Update(ctx context.Context, tx *gorm.DB, todo model.Todo) model.Todo
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) FindAll ¶
func (repository TodoRepositoryImpl) FindAll(ctx context.Context, tx *gorm.DB, param web.RequestParameterTodo) (todos []model.Todo)
Click to show internal directories.
Click to hide internal directories.