You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Geeksbot/user.go

20 lines
348 B

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)
GetOrCreateUser(id string) (User, error)
}