mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-07-21 12:42:43 +08:00
first commit
This commit is contained in:
12
backend/app/utils/status_code.py
Normal file
12
backend/app/utils/status_code.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user