push.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package model
  2. import "go-common/library/time"
  3. // VipPushData .
  4. type VipPushData struct {
  5. ID int64 `json:"id" form:"id"`
  6. DisableType int8 `json:"disable_type"`
  7. GroupName string `json:"group_name" form:"group_name"`
  8. Title string `json:"title" form:"title"`
  9. Content string `json:"content" form:"content" validate:"required"`
  10. PushTotalCount int32 `json:"-"`
  11. PushedCount int32 `json:"-"`
  12. PushProgress string `json:"push_progress"`
  13. ProgressStatus int8 `json:"progress_status"`
  14. Operator string `json:"operator"`
  15. Status int8 `json:"status"`
  16. Platform string `json:"platform" form:"platform"`
  17. LinkType int32 `json:"link_type" form:"link_type" validate:"required"`
  18. ErrorCode int32 `json:"error_code"`
  19. LinkURL string `json:"link_url" form:"link_url" validate:"required"`
  20. ExpiredDayStart int32 `json:"expired_day_start" form:"expired_day_start"`
  21. ExpiredDayEnd int64 `json:"expired_day_end" form:"expired_day_end"`
  22. EffectStartDate time.Time `json:"effect_start_date" form:"effect_start_date" validate:"required"`
  23. EffectEndDate time.Time `json:"effect_end_date" form:"effect_end_date" validate:"required"`
  24. PushStartTime string `json:"push_start_time" form:"push_start_time" validate:"required"`
  25. PushEndTime string `json:"push_end_time" form:"push_end_time" validate:"required"`
  26. PlatformArr []*PushDataPlatform `json:"platform_arr"`
  27. }
  28. // PushDataPlatform .
  29. type PushDataPlatform struct {
  30. Name string `json:"name"`
  31. Condition string `json:"condition"`
  32. Build int64 `json:"build"`
  33. }