YueYunyun 1 месяц назад
Родитель
Сommit
e66604d304

+ 1 - 1
SourceCode/IntelligentRailwayCosting/app/core/dtos/log.py

@@ -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

+ 2 - 2
SourceCode/IntelligentRailwayCosting/app/core/enum/log.py

@@ -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):