push.go 792 B

12345678910111213141516171819202122232425262728293031323334
  1. package model
  2. // 推送消息类型
  3. const (
  4. NoticeTypeLike = 1
  5. NoticeTypeComment = 2
  6. NoticeTypeFan = 3
  7. NoticeTypeSysMsg = 4
  8. )
  9. // 推送业务类型
  10. const (
  11. NoticeBizTypeSv = 1
  12. NoticeBizTypeComment = 2
  13. NoticeBizTypeUser = 3
  14. NoticeBizTypeCmsReview = 4
  15. )
  16. // 推送文案
  17. const (
  18. PushMsgVideoLike = "%s%s赞了你的作品"
  19. PushMsgVideoComment = "%s%s评论了你的作品"
  20. PushMsgCommentLike = "%s%s赞了你的评论"
  21. PushMsgCommentReply = "%s%s回复了你的评论"
  22. PushMsgFollow = "%s%s关注了你"
  23. )
  24. // 推送跳转schema
  25. const (
  26. PushSchemaVideo = "qing://videoplayer?svid=%d"
  27. PushSchemaComment = "qing://commentdetail?svid=%d&rootid=%s"
  28. PushSchemaUser = "qing://profile?mid=%d"
  29. PushSchemaNotice = "qing://notification?type=%d"
  30. )