mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-23 04:09:59 +00:00
feat: 完善 DDD 架构 - 添加领域分析器服务适配层
- 添加 src/__init__.py 作为源码包入口 - 添加 domain/services 分析器适配层: - topic_analyzer.py: 话题分析领域服务 - user_title_analyzer.py: 用户称号分析领域服务 - golden_quote_analyzer.py: 金句分析领域服务 - 更新 domain/entities/__init__.py 导出更多实体类 - 更新 shared/constants.py 添加枚举类 (Platform, TaskStatus, ContentType, ReportFormat) - 所有新代码使用中文注释
This commit is contained in:
@@ -2,6 +2,50 @@
|
||||
常量 - 插件中使用的共享常量
|
||||
"""
|
||||
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class Platform(str, Enum):
|
||||
"""平台枚举类"""
|
||||
ONEBOT = "onebot"
|
||||
AIOCQHTTP = "aiocqhttp"
|
||||
TELEGRAM = "telegram"
|
||||
DISCORD = "discord"
|
||||
SLACK = "slack"
|
||||
LARK = "lark"
|
||||
|
||||
|
||||
class TaskStatus(str, Enum):
|
||||
"""任务状态枚举类"""
|
||||
PENDING = "pending"
|
||||
RUNNING = "running"
|
||||
COMPLETED = "completed"
|
||||
FAILED = "failed"
|
||||
CANCELLED = "cancelled"
|
||||
|
||||
|
||||
class ContentType(str, Enum):
|
||||
"""消息内容类型枚举类"""
|
||||
TEXT = "text"
|
||||
IMAGE = "image"
|
||||
EMOJI = "emoji"
|
||||
STICKER = "sticker"
|
||||
FILE = "file"
|
||||
AUDIO = "audio"
|
||||
VIDEO = "video"
|
||||
REPLY = "reply"
|
||||
AT = "at"
|
||||
UNKNOWN = "unknown"
|
||||
|
||||
|
||||
class ReportFormat(str, Enum):
|
||||
"""报告格式枚举类"""
|
||||
TEXT = "text"
|
||||
MARKDOWN = "markdown"
|
||||
IMAGE = "image"
|
||||
HTML = "html"
|
||||
|
||||
|
||||
# 插件元数据
|
||||
PLUGIN_NAME = "astrbot_plugin_qq_group_daily_analysis"
|
||||
PLUGIN_VERSION = "2.0.0"
|
||||
|
||||
Reference in New Issue
Block a user