mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
27 lines
430 B
Python
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
|
|
"""搜索类型"""
|