zone.go 977 B

1234567891011121314151617181920212223
  1. package conf
  2. // PageCfg cfg
  3. type PageCfg struct {
  4. Name string // page name
  5. Top int // recom positions
  6. Middle int // last updated
  7. Bottom int // bottom list
  8. TopM int // top interv module id
  9. MiddleM int // middle interv module id
  10. }
  11. // ZonesInfo loads all the zones' ID and name
  12. type ZonesInfo struct {
  13. PGCZonesID []int // all the zones' ID that need to be loaded
  14. UGCZonesID []int16 // all the ugc zones' ID
  15. PageIDs []int // all the page ID's
  16. ZonesName []string // all the zones' name that need to be loaded
  17. TargetTypes []int32 // ugc types that we could pick source data
  18. UgcTypes []int32 // ugc archive type order, for search types listing
  19. OldIdxJump int // when the module is UGC and we can't find the old index page corresponding, we tell the client to jump to this category's index page
  20. OldIdxMapping map[string]int // ugc idx ID old and new mapping
  21. }