package config

// task
// @description: 定时任务
type task struct {
	Enable       bool        `json:"enable" yaml:"enable"`             // 是否启用
	News         syncFriends `json:"news" yaml:"news"`                 // 每日早报
	SyncFriends  syncFriends `json:"syncFriends" yaml:"syncFriends"`   // 同步好友
	WaterGroup   waterGroup  `json:"waterGroup" yaml:"waterGroup"`     // 水群排行榜
	GroupSummary syncFriends `json:"groupSummary" yaml:"groupSummary"` // 群聊总结
}

// syncFriends
// @description: 同步好友
type syncFriends struct {
	Enable bool   `json:"enable" yaml:"enable"` // 是否启用
	Cron   string `json:"cron" yaml:"cron"`     // 定时任务表达式
}

// waterGroup
// @description: 水群排行榜
type waterGroup struct {
	Enable bool           `json:"enable" yaml:"enable"` // 是否启用
	Cron   waterGroupCron `json:"cron" yaml:"cron"`     // 定时任务表达式
}

// waterGroupCron
// @description: 水群排行榜定时任务
type waterGroupCron struct {
	Yesterday string `json:"yesterday" yaml:"yesterday"` // 昨日排行榜
	Week      string `json:"week" yaml:"week"`           // 周排行榜
	Month     string `json:"month" yaml:"month"`         // 月排行榜
	Year      string `json:"year" yaml:"year"`           // 年排行榜
}