Stopped creating Project and Task with blank name

This commit is contained in:
Anis Ahmad
2020-06-06 12:57:29 +06:00
parent 032a53d1c3
commit 62d04b2963
11 changed files with 31 additions and 14 deletions

View File

@@ -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)

View File

@@ -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)