base.go 751 B

1234567891011121314151617181920212223
  1. package v1
  2. // Base .
  3. type Base struct {
  4. App string `json:"mobi_app" form:"mobi_app"`
  5. Client string `json:"platform" form:"platform"`
  6. Version string `json:"version" form:"version"`
  7. Channel string `json:"channel" form:"channel"`
  8. Location string `json:"location" form:"location"`
  9. QueryID string `json:"query_id" form:"query_id"`
  10. Module int `json:"module_id" form:"module_id"`
  11. BUVID string
  12. }
  13. // DataReport 埋点上报字段
  14. type DataReport struct {
  15. Base
  16. SVID int `json:"svid" form:"svid"`
  17. TotalDuration int `json:"total_duration" form:"total_duration"`
  18. PlayDuration int `json:"duration" form:"duration"`
  19. DataType int `json:"data_type" form:"data_type"`
  20. Page int `json:"page_id" form:"page_id"`
  21. }