service

package
v0.0.0-...-b24e366 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToDoService

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

func NewToDoService

func NewToDoService(db *data.Conn) ToDoService

func (ToDoService) Create

func (s ToDoService) Create(todo model.ToDo) error

func (ToDoService) Delete

func (s ToDoService) Delete(id int64) error

func (ToDoService) GetAll

func (s ToDoService) GetAll() ([]model.ToDo, error)

func (ToDoService) GetByID

func (s ToDoService) GetByID(id int64) (model.ToDo, error)

func (ToDoService) Update

func (s ToDoService) Update(todo model.ToDo) error

Jump to

Keyboard shortcuts

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