from enum import Enum, unique # 录屏状态枚举 @unique class RecordingStatus(Enum): RECORDING_WAITING = ("5", "待录制") RECORDING_RUNNING = ("10", "录制中") RECORDING_SUCCESS = ("15", "录制完成") RECORDING_TIMEOUT = ("20", "录制超时") RECORDING_FAILED = ("25", "录制失败")