Add phone registration with SMS verification and regenerate Swagger docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-13 14:43:33 +05:00
parent 704606b3f5
commit 5e3c46da83
17 changed files with 1008 additions and 20 deletions

View File

@@ -3,11 +3,14 @@ package appresult
import "encoding/json"
var (
ErrMissingParam = NewAppError(nil, "Required parameter is missing or invalid.", "SE-00001")
ErrUnauthorized = NewAppError(nil, "Invalid credentials or unauthorized access.", "SE-00002")
ErrNotFound = NewAppError(nil, "The requested resource was not found.", "SE-00003")
ErrInternalServer = NewAppError(nil, "An internal server error occurred. Please try again later.", "SE-00004")
ErrNotAcceptable = NewAppError(nil, "The request could not be processed.", "SE-00007")
ErrMissingParam = NewAppError(nil, "Required parameter is missing or invalid.", "SE-00001")
ErrUnauthorized = NewAppError(nil, "Invalid credentials or unauthorized access.", "SE-00002")
ErrNotFound = NewAppError(nil, "The requested resource was not found.", "SE-00003")
ErrInternalServer = NewAppError(nil, "An internal server error occurred. Please try again later.", "SE-00004")
ErrNotAcceptable = NewAppError(nil, "The request could not be processed.", "SE-00007")
ErrConflict = NewAppError(nil, "A user with this phone or username already exists.", "SE-00008")
ErrInvalidCode = NewAppError(nil, "Invalid or expired verification code.", "SE-00009")
ErrPasswordMismatch = NewAppError(nil, "Password confirmation does not match.", "SE-00010")
)
type AppError struct {