zhenxun_bot/plugins/statistics/_config.py
2024-01-06 17:36:22 +08:00

27 lines
430 B
Python

from enum import Enum
from typing import NamedTuple
class SearchType(Enum):
"""
查询类型
"""
DAY = "day_statistics"
""""""
WEEK = "week_statistics"
""""""
MONTH = "month_statistics"
""""""
TOTAL = "total_statistics"
"""总数"""
class ParseData(NamedTuple):
global_search: bool
"""是否全局搜索"""
search_type: SearchType
"""搜索类型"""