Changeset 0.24.0 (#156)
This commit is contained in:
@@ -167,6 +167,8 @@ type UserStore interface {
|
||||
GetByUsername(ctx context.Context, username string) (*models.User, error)
|
||||
GetByEmail(ctx context.Context, email string) (*models.User, error)
|
||||
GetByLogin(ctx context.Context, login string) (*models.User, error) // username or email
|
||||
GetByHandle(ctx context.Context, handle string) (*models.User, error)
|
||||
GetByExternalID(ctx context.Context, authSource, externalID string) (*models.User, error)
|
||||
Update(ctx context.Context, id string, fields map[string]interface{}) error
|
||||
Delete(ctx context.Context, id string) error
|
||||
List(ctx context.Context, opts ListOptions) ([]models.User, int, error)
|
||||
|
||||
Reference in New Issue
Block a user