repository

package
v0.0.0-...-ca35f81 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(
	DefaultTodo,
)

WireSet all entities for wire inject

Functions

This section is empty.

Types

type Todo

type Todo struct {
	// contains filtered or unexported fields
}

Todo is CRUD todo entity

func DefaultTodo

func DefaultTodo() *Todo

DefaultTodo is get default todo repository

func (*Todo) Create

func (s *Todo) Create(ctx context.Context, v *entity.Todo) error

Create is create todo entity

func (*Todo) DeleteByID

func (s *Todo) DeleteByID(ctx context.Context, id string) error

DeleteByID is delete todo entity

func (*Todo) FindAll

func (s *Todo) FindAll(ctx context.Context) (ret []*entity.Todo, err error)

FindAll is get all todo entity

func (*Todo) FindByID

func (s *Todo) FindByID(ctx context.Context, id string) (*entity.Todo, bool)

FindByID is Find todo entity

func (*Todo) Update

func (s *Todo) Update(ctx context.Context, v *entity.Todo) error

Update is update todo entity

Jump to

Keyboard shortcuts

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