blocked.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package model
  2. import "go-common/library/time"
  3. // BlockedUserCard usr blocked info.
  4. type BlockedUserCard struct {
  5. UID int64 `json:"uid"`
  6. Uname string `json:"uname"`
  7. Face string `json:"face"`
  8. BlockedSum int `json:"blockedSum"`
  9. MoralBlockedSum int `json:"moralBlockedSum"`
  10. MoralNum int `json:"moralNum"`
  11. BlockedStatus int `json:"blockedStatus"`
  12. BlockedForever bool `json:"blockedForever"`
  13. BlockedRestDay int64 `json:"blockedRestDays"`
  14. AnsWerStatus bool `json:"answerStatus"`
  15. BlockedEndTime int64 `json:"blockedEndTime"`
  16. }
  17. // BlockedAnnouncement blocked publish info.
  18. type BlockedAnnouncement struct {
  19. ID int64 `json:"id"`
  20. Title string `json:"title"`
  21. SubTitle string `json:"subTitle"`
  22. PublishStatus uint8 `json:"-"`
  23. StickStatus uint8 `json:"stickStatus"`
  24. Content string `json:"content"`
  25. URL string `json:"url"`
  26. Ptype int8 `json:"ptype"`
  27. CTime time.Time `json:"ctime"`
  28. MTime time.Time `json:"mtime"`
  29. }
  30. // AnnounceList announce list.
  31. type AnnounceList struct {
  32. List []*BlockedAnnouncement `json:"list"`
  33. Count int64 `json:"count"`
  34. }