notice.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package v1
  2. import (
  3. notice "go-common/app/service/bbq/notice-service/api/v1"
  4. )
  5. // NoticeNumResponse .
  6. type NoticeNumResponse struct {
  7. RedDot int64 `json:"red_dot"`
  8. }
  9. // NoticeOverviewResponse .
  10. type NoticeOverviewResponse struct {
  11. Notices []*NoticeOverview `json:"notices,omitempty"`
  12. }
  13. // NoticeOverview .
  14. type NoticeOverview struct {
  15. UnreadNum int64 `json:"unread_num"`
  16. Name string `json:"name"`
  17. NoticeType int32 `json:"notice_type"`
  18. ShowType int32 `json:"show_type"`
  19. }
  20. // NoticeListRequest .
  21. type NoticeListRequest struct {
  22. Mid int64
  23. NoticeType int32 `form:"notice_type" validated:"required"`
  24. CursorNext string `form:"cursor_next" validated:"required"`
  25. }
  26. // NoticeListResponse .
  27. type NoticeListResponse struct {
  28. HasMore bool `json:"has_more"`
  29. List []*NoticeMsg `json:"list,omitempty"`
  30. }
  31. // NoticeMsg .
  32. type NoticeMsg struct {
  33. *notice.NoticeBase
  34. ShowType int32 `json:"show_type"`
  35. State int32 `json:"state"`
  36. UserInfo *UserInfo `json:"user_info,omitempty"`
  37. Pic string `json:"pic"`
  38. CursorValue string `json:"cursor_value"`
  39. ErrMsg string `json:"err_msg"`
  40. }