@@ -9,7 +9,7 @@ class LogDto(BaseModel):
username: str
operation_type: str
operation_desc: str
- operation_result: str | int
+ operation_result: int
operation_module: str
operation_data: Optional[str] = None
data_changes: Optional[str] = None
@@ -1,8 +1,8 @@
from enum import Enum
class OperationResult(Enum):
- SUCCESS = "0"
- FAILURE = "1"
+ SUCCESS = 0
+ FAILURE = 1
@staticmethod
def get_name(status: int):