fix/ci-deploy-reset #6

Merged
starmen1265 merged 19 commits from fix/ci-deploy-reset into main 2026-03-11 14:32:51 +08:00
Showing only changes of commit a155d93dd8 - Show all commits
@@ -0,0 +1,25 @@
"""
Response formatter for Feishu Card messages.
This module provides classes for formatting responses as Feishu Card JSON 2.0
messages with three-zone structure (header/content/actions).
"""
from dataclasses import dataclass
from typing import Dict, Any, List, Optional
from enum import Enum
class CardTheme(Enum):
"""Theme colors for Feishu Card messages."""
SUCCESS = "green"
ERROR = "red"
INFO = "blue"
WARNING = "orange"
@dataclass
class CardButton:
"""Interactive button for Feishu Card actions."""
text: str
value: Dict[str, Any]
button_type: str = "primary" # primary, default, danger