All checks were successful
continuous-integration/drone/push Build is passing
- 扩展 ToolConfig 配置类型,新增 external_api 类型
- 实现接口注册表,包含 90+ 睿美云开放接口定义
- 实现 TPOS SHA256WithRSA 签名鉴权
- 实现睿美云 API 客户端,支持多租户配置
- 新增代理路由 /api/ruimeiyun/call/{api_name}
- 支持接口权限控制和健康检查
22 lines
898 B
Python
22 lines
898 B
Python
"""任务通知渠道模型"""
|
|
from datetime import datetime
|
|
from sqlalchemy import Column, Integer, String, Enum, Boolean, DateTime
|
|
from ..database import Base
|
|
|
|
|
|
class TaskNotifyChannel(Base):
|
|
"""任务通知渠道表(用于定时任务推送)"""
|
|
__tablename__ = "platform_task_notify_channels"
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
tenant_id = Column(String(50), nullable=False)
|
|
channel_name = Column(String(100), nullable=False)
|
|
channel_type = Column(Enum('dingtalk_bot', 'wecom_bot'), nullable=False)
|
|
webhook_url = Column(String(500), nullable=False)
|
|
sign_secret = Column(String(200)) # 钉钉加签密钥
|
|
description = Column(String(255))
|
|
is_enabled = Column(Boolean, default=True)
|
|
|
|
created_at = Column(DateTime, default=datetime.now)
|
|
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now)
|