added new of dashboard and log apply on routes

This commit is contained in:
2026-02-26 17:08:49 +05:30
parent 568428b5d0
commit 45bfd4b592
16 changed files with 427 additions and 164 deletions

17
app/constants/messages.py Normal file
View File

@@ -0,0 +1,17 @@
class SuccessMessage:
FETCHED = "Data fetched successfully"
CREATED = "Resource created successfully"
UPDATED = "Resource updated successfully"
DELETED = "Resource deleted successfully"
LOGIN = "Login successful"
LOGOUT = "Logout successful"
class ErrorMessage:
INVALID_REQUEST = "Invalid request data"
UNAUTHORIZED = "Unauthorized access"
FORBIDDEN = "Access forbidden"
NOT_FOUND = "Resource not found"
VALIDATION_FAILED = "Validation failed"
INTERNAL_ERROR = "Internal server error"
DUPLICATE_ENTRY = "Duplicate record found"