Documentation ¶
Index ¶
- type Resource
- func (r *Resource) AddTodo(todo entityTodo.Todo) error
- func (r *Resource) DeleteTodo(id int64) error
- func (r *Resource) GetTodoByID(id int64) (entityTodo.Todo, error)
- func (r *Resource) GetTodos() ([]entityTodo.Todo, error)
- func (r *Resource) UpdateTodo(id int64, req entityTodo.UpdateRequest) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) DeleteTodo ¶
func (*Resource) GetTodoByID ¶
func (r *Resource) GetTodoByID(id int64) (entityTodo.Todo, error)
func (*Resource) UpdateTodo ¶
func (r *Resource) UpdateTodo(id int64, req entityTodo.UpdateRequest) (int64, error)
Click to show internal directories.
Click to hide internal directories.