satellite/console: Clarify return params of interface method

Name the return parameters in a User interface method to clarify what
they are.

Change-Id: I6a5c97659c8167df89b38016fcccbc8eb70a09c5
This commit is contained in:
Ivan Fraixedes 2023-11-17 11:45:52 +01:00
parent 257bdbac32
commit ed67ce33bb
No known key found for this signature in database
GPG Key ID: FB6101AFB5CB5AD5

View File

@ -29,7 +29,7 @@ type Users interface {
// UpdateFailedLoginCountAndExpiration increments failed_login_count and sets login_lockout_expiration appropriately.
UpdateFailedLoginCountAndExpiration(ctx context.Context, failedLoginPenalty *float64, id uuid.UUID) error
// GetByEmailWithUnverified is a method for querying users by email from the database.
GetByEmailWithUnverified(ctx context.Context, email string) (*User, []User, error)
GetByEmailWithUnverified(ctx context.Context, email string) (verified *User, unverified []User, err error)
// GetByStatus is a method for querying user by status from the database.
GetByStatus(ctx context.Context, status UserStatus, cursor UserCursor) (*UsersPage, error)
// GetByEmail is a method for querying user by verified email from the database.