Files
BiliNote/backend/app/utils/status_code.py
Jefferyhcool 0e0b8da317 first commit
2025-04-13 17:44:54 +08:00

12 lines
209 B
Python

from enum import IntEnum
class StatusCode(IntEnum):
SUCCESS = 0
FAIL = 1
DOWNLOAD_ERROR = 1001
TRANSCRIBE_ERROR = 1002
GENERATE_ERROR = 1003
INVALID_URL = 2001
PARAM_ERROR = 2002