Первый коммит
This commit is contained in:
17
app/schemas/common.py
Normal file
17
app/schemas/common.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from enum import Enum
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ModuleName(str, Enum):
|
||||
BACKEND = "backend"
|
||||
AGENT = "agent"
|
||||
RAG = "rag"
|
||||
CONFLUENCE = "confluence"
|
||||
FRONTEND = "frontend"
|
||||
|
||||
|
||||
class ErrorPayload(BaseModel):
|
||||
code: str
|
||||
desc: str
|
||||
module: ModuleName
|
||||
Reference in New Issue
Block a user