mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add Check method to check if a user with a given login exists already
This commit is contained in:
parent
e8b90e385c
commit
9a7466b04c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue