todo

package
v0.0.0-...-c8ed9d9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func (*Service) Create

func (svc *Service) Create(ctx context.Context, title string) (*todo.Todo, error)

Create 作成

func (*Service) Delete

func (svc *Service) Delete(ctx context.Context, id int64) error

Delete todo削除

func (*Service) Done

func (svc *Service) Done(ctx context.Context, id int64) error

Done todo完了にする

func (*Service) GetList

func (svc *Service) GetList(ctx context.Context) ([]*todo.Todo, error)

GetList リスト

func (*Service) UnDone

func (svc *Service) UnDone(ctx context.Context, id int64) error

UnDone todo未完了にする

func (*Service) UpdateTitle

func (svc *Service) UpdateTitle(ctx context.Context, id int64, title string) error

UpdateTitle タイトル更新

Jump to

Keyboard shortcuts

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