Use string instead of ID type

This commit is contained in:
2016-12-20 16:52:26 +01:00
parent 83c36f00bf
commit 7c197ff49d
5 changed files with 7 additions and 8 deletions

View File

@ -2,7 +2,7 @@ package budgeteer
// User struct contains Login information
type User struct {
ID ID
ID string
Email string
Password string
Name string
@ -10,7 +10,7 @@ type User struct {
// UserService provides Methods for CRUD of Users
type UserService interface {
User(id ID) (*User, error)
User(id string) (*User, error)
UserByUsername(username string) (*User, error)
//Users() ([]*User, error)
CreateUser(u *User) error