feed.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package feed
  2. import (
  3. cdm "go-common/app/interface/main/app-card/model"
  4. )
  5. // IndexParam struct
  6. type IndexParam struct {
  7. Build int `form:"build"`
  8. Platform string `form:"platform"`
  9. MobiApp string `form:"mobi_app"`
  10. Device string `form:"device"`
  11. Network string `form:"network"`
  12. // idx, err := strconv.ParseInt(idxStr, 10, 64)
  13. // if err != nil || idx < 0 {
  14. // idx = 0
  15. // }
  16. Idx int64 `form:"idx" default:"0"`
  17. // pull, err := strconv.ParseBool(pullStr)
  18. // if err != nil {
  19. // pull = true
  20. // }
  21. Pull bool `form:"pull" default:"true"`
  22. Column cdm.ColumnStatus `form:"column"`
  23. // loginEvent, err := strconv.Atoi(loginEventStr)
  24. // if err != nil {
  25. // loginEvent = 0
  26. // }
  27. LoginEvent int `form:"login_event" default:"0"`
  28. OpenEvent string `form:"open_event"`
  29. BannerHash string `form:"banner_hash"`
  30. AdExtra string `form:"ad_extra"`
  31. Qn int `form:"qn" default:"0"`
  32. Interest string `form:"interest"`
  33. Flush int `form:"flush"`
  34. AutoPlayCard int `form:"autoplay_card"`
  35. Fnver int `form:"fnver" default:"0"`
  36. Fnval int `form:"fnval" default:"0"`
  37. DeviceType int `form:"device_type"`
  38. Locale string `form:"locale"`
  39. }