config.py 562 B

123456789101112131415161718
  1. # This Python file uses the following encoding: utf-8
  2. from pydantic import BaseModel, Field
  3. from tasks.Component.config_scheduler import Scheduler
  4. from tasks.Component.config_base import ConfigBase, MultiLine
  5. class CheckinBigGodConfig(BaseModel):
  6. usage: MultiLine = Field(
  7. title='Usage',
  8. default='',
  9. description='checkin_big_god_usage_help'
  10. )
  11. class AutoCheckinBigGod(ConfigBase):
  12. scheduler: Scheduler = Field(default_factory=Scheduler)
  13. checkin_config: CheckinBigGodConfig = Field(default_factory=CheckinBigGodConfig)