Add phone registration with SMS verification and regenerate Swagger docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
704606b3f5
commit
5e3c46da83
17 files changed
+1008
-20
No files matched your search
@@ -7,4 +7,10 @@ type Repository interface {
|
||||
GetUserByID(ctx context.Context, id int) (UserCredentials, error)
|
||||
GetProfile(ctx context.Context, id int) (UserProfileDTO, error)
|
||||
UpdateProfile(ctx context.Context, id int, dto UpdateProfileDTO) (UserProfileDTO, error)
|
||||
UserExists(ctx context.Context, username, phone string) (bool, error)
|
||||
UsernameTaken(ctx context.Context, username, exceptPhone string) (bool, error)
|
||||
UpsertVerification(ctx context.Context, v Verification) error
|
||||
GetVerificationByPhone(ctx context.Context, phone string) (Verification, error)
|
||||
IncrementVerifyAttempts(ctx context.Context, id int64) error
|
||||
CompleteRegistration(ctx context.Context, v Verification) (int, error)
|
||||
}
|
||||
Reference in new issue
Block a user