Documentation ¶
Index ¶
- type Service
- func (svc *Service) Create(ctx context.Context, title string) (*todo.Todo, error)
- func (svc *Service) Delete(ctx context.Context, id int64) error
- func (svc *Service) Done(ctx context.Context, id int64) error
- func (svc *Service) GetList(ctx context.Context) ([]*todo.Todo, error)
- func (svc *Service) UnDone(ctx context.Context, id int64) error
- func (svc *Service) UpdateTitle(ctx context.Context, id int64, title string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service todo service
func NewService ¶
func NewService( todoRepo todorepo.Repository, ) *Service
NewService return service
Click to show internal directories.
Click to hide internal directories.