implement user registration with email verification, enhance error handling, and update database configuration

This commit is contained in:
2025-07-22 09:15:12 +08:00
parent 1f5f67761b
commit 00c28fea9c
5 changed files with 72 additions and 18 deletions

View File

@ -24,6 +24,7 @@ func (e *ServiceError) Error() string {
var (
ErrNotFound = &ServiceError{Code: http.StatusNotFound, Message: "not found"}
ErrInvalidCredentials = &ServiceError{Code: http.StatusUnauthorized, Message: "invalid credentials"}
ErrConflict = &ServiceError{Code: http.StatusConflict, Message: "resource conflict"}
ErrInternalServer = &ServiceError{Code: http.StatusInternalServerError, Message: "internal server error"}
ErrBadRequest = &ServiceError{Code: http.StatusBadRequest, Message: "invalid request parameters"}
ErrForbidden = &ServiceError{Code: http.StatusForbidden, Message: "access forbidden"}