add Check method to check if a user with a given login exists already

This commit is contained in:
lyx0 2023-03-05 19:43:35 +00:00
parent e8b90e385c
commit 9a7466b04c

View file

@ -25,8 +25,9 @@ type Models struct {
Delete(login string) error
}
Users interface {
Insert(user *User) error
Insert(login, twitchId string) error
Get(login string) (*User, error)
Check(login string) (*User, error)
SetLevel(login string, level int) error
SetLocation(login, location string) error
GetLocation(login string) (string, error)