Add phone registration with SMS verification and regenerate Swagger docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user