ai.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package ai
  2. import (
  3. "encoding/json"
  4. "go-common/app/interface/main/app-card/model/card/banner"
  5. "go-common/app/interface/main/app-card/model/card/cm"
  6. tag "go-common/app/interface/main/tag/model"
  7. "go-common/app/service/main/archive/model/archive"
  8. )
  9. type Item struct {
  10. ID int64 `json:"id,omitempty"`
  11. TrackID string `json:"trackid,omitempty"`
  12. Name string `json:"name,omitempty"`
  13. Goto string `json:"goto,omitempty"`
  14. Tid int64 `json:"tid,omitempty"`
  15. From int8 `json:"from,omitempty"`
  16. Source string `json:"source,omitempty"`
  17. AvFeature json.RawMessage `json:"av_feature,omitempty"`
  18. Config *Config `json:"config,omitempty"`
  19. RcmdReason *RcmdReason `json:"rcmd_reason,omitempty"`
  20. StatType int8 `json:"stat_type,omitempty"`
  21. Style int8 `json:"style,omitempty"`
  22. // extra
  23. Archive *archive.Archive3 `json:"archive,omitempty"`
  24. Tag *tag.Tag `json:"tag,omitempty"`
  25. Ad *cm.AdInfo `json:"-"`
  26. Banners []*banner.Banner `json:"-"`
  27. Version string `json:"-"`
  28. HideButton bool `json:"-"`
  29. CornerMark int8 `json:"corner_mark,omitempty"`
  30. }
  31. type Config struct {
  32. URI string `json:"uri,omitempty"`
  33. Title string `json:"title,omitempty"`
  34. Cover string `json:"cover,omitempty"`
  35. }
  36. type RcmdReason struct {
  37. ID int `json:"id,omitempty"`
  38. Content string `json:"content,omitempty"`
  39. BgColor string `json:"bg_color,omitempty"`
  40. IconLocation string `json:"icon_location,omitempty"`
  41. Style int `json:"style,omitempty"`
  42. Font int `json:"font,omitempty"`
  43. Position string `json:"position,omitempty"`
  44. Grounding string `json:"grounding,omitempty"`
  45. CornerMark int8 `json:"corner_mark,omitempty"`
  46. FollowedMid int64 `json:"followed_mid,omitempty"`
  47. }