refactor: 重构 Agent 模块为 AgentScope,删除旧版 CrewAI/LiteLLM 实现
This commit is contained in:
@@ -12,6 +12,7 @@ from core.db.base import Base, TimestampMixin
|
||||
|
||||
class SubscriptionStatus(str, Enum):
|
||||
ACTIVE = "active"
|
||||
PENDING = "pending"
|
||||
PAUSED = "paused"
|
||||
UNSUBSCRIBED = "unsubscribed"
|
||||
|
||||
@@ -22,6 +23,13 @@ class NotifyLevel(str, Enum):
|
||||
NONE = "none"
|
||||
|
||||
|
||||
class SubscriptionPermission(int, Enum):
|
||||
VIEW = 1 # 001 - 可查看
|
||||
INVITE = 2 # 010 - 可邀请
|
||||
EDIT = 4 # 100 - 可编辑
|
||||
OWNER = 7 # 111 - 所有者(VIEW + INVITE + EDIT)
|
||||
|
||||
|
||||
class ScheduleSubscription(TimestampMixin, Base):
|
||||
__tablename__: str = "schedule_subscriptions"
|
||||
__table_args__ = {"extend_existing": True}
|
||||
|
||||
Reference in New Issue
Block a user