teams: adds some validation to the API

This commit is contained in:
Daniel Lee
2018-02-16 11:46:20 +01:00
parent ac6800a88a
commit b9d572bdec
4 changed files with 54 additions and 12 deletions
+3 -2
View File
@@ -7,8 +7,9 @@ import (
// Typed errors
var (
ErrTeamNotFound = errors.New("Team not found")
ErrTeamNameTaken = errors.New("Team name is taken")
ErrTeamNotFound = errors.New("Team not found")
ErrTeamNameTaken = errors.New("Team name is taken")
ErrTeamMemberNotFound = errors.New("Team member not found")
)
// Team model