28 lines
501 B
Python
28 lines
501 B
Python
"""核心数据模型"""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class Account:
|
|
"""账号配置"""
|
|
username: str
|
|
password: str
|
|
email: str
|
|
email_password: str
|
|
email_imap_server: str
|
|
email_imap_port: int = 993
|
|
|
|
|
|
@dataclass
|
|
class ProxyConfig:
|
|
"""代理配置"""
|
|
enabled: bool = False
|
|
api_url: str = ""
|
|
http: str = ""
|
|
https: str = ""
|
|
# 白名单配置
|
|
whitelist_enabled: bool = False
|
|
whitelist_uid: str = ""
|
|
whitelist_ukey: str = ""
|