config.py 885 B

12345678910111213141516171819202122232425262728293031323334
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from pydantic import BaseModel, Field
  5. from tasks.Restart.config_scheduler import RestartScheduler
  6. from tasks.Component.config_base import ConfigBase
  7. class HarvestConfig(BaseModel):
  8. # 默认启用
  9. enable: bool = Field(default=True, description='harvest_enable_help')
  10. # 永久勾玉卡
  11. enable_jade: bool = Field(default=True)
  12. # 签到
  13. enable_sign: bool = Field(default=True)
  14. # 999天的签到福袋
  15. enable_sign_999: bool = Field(default=True)
  16. # 邮件
  17. enable_mail: bool = Field(default=True)
  18. # 御魂加成
  19. enable_soul: bool = Field(default=True)
  20. class Restart(ConfigBase):
  21. scheduler: RestartScheduler = Field(default_factory=RestartScheduler)
  22. harvest_config: HarvestConfig = Field(default_factory=HarvestConfig)