Add domain types

This commit is contained in:
Dustin Pianalto
2021-01-20 17:39:18 -09:00
parent b611dd7c87
commit cfe683c53c
7 changed files with 172 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package geeksbot
import "database/sql"
type User struct {
ID string
SteamID sql.NullString
IsActive bool
IsStaff bool
IsAdmin bool
}
type UserService interface {
User(id string) (*User, error)
CreateUser(u *User) (*User, error)
DeleteUser(u *User) error
UpdateUser(u *User) (*User, error)
}