蛋蛋星球-制度模式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

schedule_request.go 953 B

4 週之前
123456789101112131415161718192021222324252627282930313233
  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. }