reply.go 746 B

12345678910111213141516171819202122232425262728293031
  1. package model
  2. import (
  3. repmol "go-common/app/job/main/reply/model/reply"
  4. )
  5. // ReplyEvent reply event
  6. type ReplyEvent struct {
  7. Action string `json:"action"`
  8. Mid int64 `json:"mid"`
  9. Subject *repmol.Subject `json:"subject"`
  10. Reply *repmol.Reply `json:"reply"`
  11. Report *repmol.Report `json:"report"`
  12. }
  13. const (
  14. // EventAdd add reply
  15. EventAdd = "reply"
  16. // EventLike add like
  17. EventLike = "like"
  18. // EventLikeCancel like cal
  19. EventLikeCancel = "like_cancel"
  20. // EventHate hate
  21. EventHate = "hate"
  22. // EventHateCancel hate cal
  23. EventHateCancel = "hate_cancel"
  24. // EventReportDel user report approved
  25. EventReportDel = "report_del"
  26. // EventReportRecover user report recover
  27. EventReportRecover = "report_recover"
  28. )