bplus.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package bplus
  2. import xtime "go-common/library/time"
  3. const (
  4. CLIPS = 1
  5. ALBUMS = 2
  6. )
  7. type Clip struct {
  8. ID int64 `json:"id,omitempty"`
  9. Duration int64 `json:"duration,omitempty"`
  10. CTime xtime.Time `json:"ctime,omitempty"`
  11. View int `json:"view,omitempty"`
  12. Damaku int `json:"damaku,omitempty"`
  13. Title string `json:"title,omitempty"`
  14. Cover string `json:"cover,omitempty"`
  15. Tag string `json:"tag,omitempty"`
  16. }
  17. type Album struct {
  18. ID int64 `json:"doc_id,omitempty"`
  19. CTime xtime.Time `json:"ctime,omitempty"`
  20. Count int `json:"count,omitempty"`
  21. View int `json:"view,omitempty"`
  22. Comment int `json:"comment,omitempty"`
  23. Title string `json:"title,omitempty"`
  24. Desc string `json:"description,omitempty"`
  25. Pictures []*Pictures `json:"pictures,omitempty"`
  26. }
  27. type Pictures struct {
  28. ImgSrc string `json:"img_src,omitempty"`
  29. ImgWidth int `json:"img_width,omitempty"`
  30. ImgHeight int `json:"img_height,omitempty"`
  31. ImgSize int `json:"img_size,omitempty"`
  32. }