초기 커밋
This commit is contained in:
31
app/core/constants.py
Normal file
31
app/core/constants.py
Normal file
@@ -0,0 +1,31 @@
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class Role:
|
||||
SUPERADMIN = "superadmin"
|
||||
ADMIN = "admin"
|
||||
MANAGER = "manager"
|
||||
USER = "user"
|
||||
DEVICE = "device"
|
||||
|
||||
ALL = [SUPERADMIN, ADMIN, MANAGER, USER, DEVICE]
|
||||
ADMIN_ROLES = [SUPERADMIN, ADMIN]
|
||||
MANAGEMENT_ROLES = [SUPERADMIN, ADMIN, MANAGER]
|
||||
|
||||
|
||||
class DeviceStatus:
|
||||
ONLINE = "online"
|
||||
OFFLINE = "offline"
|
||||
ERROR = "error"
|
||||
MAINTENANCE = "maintenance"
|
||||
|
||||
|
||||
class AlertSeverity:
|
||||
CRITICAL = "critical"
|
||||
WARNING = "warning"
|
||||
INFO = "info"
|
||||
|
||||
|
||||
class TokenType:
|
||||
ACCESS = "access"
|
||||
REFRESH = "refresh"
|
||||
Reference in New Issue
Block a user