YueYunyun преди 3 месеца
родител
ревизия
e66604d304
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      SourceCode/IntelligentRailwayCosting/app/core/dtos/log.py
  2. 2 2
      SourceCode/IntelligentRailwayCosting/app/core/enum/log.py

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