Stopped creating Project and Task with blank name
This commit is contained in:
@@ -2,6 +2,7 @@ package repository
|
||||
|
||||
import "github.com/ajaxray/geek-life/model"
|
||||
|
||||
// ProjectRepository interface defines methods of project data accessor
|
||||
type ProjectRepository interface {
|
||||
GetAll() ([]model.Project, error)
|
||||
GetByID(id int64) (model.Project, error)
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/ajaxray/geek-life/model"
|
||||
)
|
||||
|
||||
// TaskRepository interface defines methods of task data accessor
|
||||
type TaskRepository interface {
|
||||
GetAll() ([]model.Task, error)
|
||||
GetAllByProject(project model.Project) ([]model.Task, error)
|
||||
|
||||
Reference in New Issue
Block a user