album.go 875 B

1234567891011121314151617181920212223242526272829303132
  1. package model
  2. import "go-common/library/time"
  3. // AlbumCount album count struct.
  4. type AlbumCount struct {
  5. AllCount int64 `json:"all_count"`
  6. DrawCount int64 `json:"draw_count"`
  7. PhotoCount int64 `json:"photo_count"`
  8. DailyCount int64 `json:"daily_count"`
  9. }
  10. // Album album struct.
  11. type Album struct {
  12. DocID int64 `json:"doc_id"`
  13. PosterUID int64 `json:"poster_uid"`
  14. Title string `json:"title"`
  15. Description string `json:"description"`
  16. Pictures []*PicItem `json:"pictures"`
  17. Count int64 `json:"count"`
  18. Ctime time.Time `json:"ctime"`
  19. View int64 `json:"view"`
  20. Like int64 `json:"like"`
  21. }
  22. // PicItem picture item struct.
  23. type PicItem struct {
  24. ImgSrc string `json:"img_src"`
  25. ImgWidth int `json:"img_width"`
  26. ImgHeight int `json:"img_height"`
  27. ImgSize int `json:"img_size"`
  28. }