refactor: change DevOpsReconcileOperationType to inherit from str and Enum

Updated the DevOpsReconcileOperationType class to inherit from both str and Enum, enhancing its usability as a string enumeration in the application.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-08-03 03:28:06 +08:00
parent 2dd73c0734
commit 6ebac252b0

View File

@ -71,7 +71,7 @@ class CheckApplicationLogsResponse(BaseModel):
limit: int
logs: list[str]
class DevOpsReconcileOperationType(Enum):
class DevOpsReconcileOperationType(str, Enum):
START = "start"
TERMINATE = "terminate"
RESTART = "restart"