蛋蛋星球-制度模式
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

34 行
953 B

  1. package jpush
  2. const (
  3. ScheduleTimeUnitDay = "day"
  4. ScheduleTimeUnitWeek = "week"
  5. ScheduleTimeUnitMonth = "month"
  6. )
  7. type ScheduleRequest struct {
  8. Cid string `json:"cid,omitempty"`
  9. Name string `json:"name"`
  10. Enabled bool `json:"enabled"`
  11. Push *PushRequest `json:"push"`
  12. Trigger *ScheduleTrigger `json:"trigger"`
  13. }
  14. type ScheduleTrigger struct {
  15. Single *ScheduleTriggerSingle `json:"single,omitempty"`
  16. Periodical *ScheduleTriggerPeriodical `json:"periodical,omitempty"`
  17. }
  18. type ScheduleTriggerSingle struct {
  19. Timer string `json:"time,omitempty"`
  20. }
  21. type ScheduleTriggerPeriodical struct {
  22. Start string `json:"start,omitempty"`
  23. End string `json:"end,omitempty"`
  24. Time string `json:"time,omitempty"`
  25. TimeUnit string `json:"time_unit,omitempty"`
  26. Frequency int `json:"frequency,int,omitempty"`
  27. Point interface{} `json:"point,omitempty"`
  28. }