| 12345678910111213141516171819202122232425262728293031323334 |
- # This Python file uses the following encoding: utf-8
- # @author runhey
- # github https://github.com/runhey
- from pydantic import BaseModel, Field
- from tasks.Restart.config_scheduler import RestartScheduler
- from tasks.Component.config_base import ConfigBase
- class HarvestConfig(BaseModel):
- # 默认启用
- enable: bool = Field(default=True, description='harvest_enable_help')
- # 永久勾玉卡
- enable_jade: bool = Field(default=True)
- # 签到
- enable_sign: bool = Field(default=True)
- # 999天的签到福袋
- enable_sign_999: bool = Field(default=True)
- # 邮件
- enable_mail: bool = Field(default=True)
- # 御魂加成
- enable_soul: bool = Field(default=True)
- class Restart(ConfigBase):
- scheduler: RestartScheduler = Field(default_factory=RestartScheduler)
- harvest_config: HarvestConfig = Field(default_factory=HarvestConfig)
|