message.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package model
  2. import (
  3. "fmt"
  4. "go-common/app/admin/main/workflow/model/param"
  5. )
  6. // message mc
  7. const (
  8. ArcComplainDealMC = "1_13_1"
  9. ArcComplainRevMC = "1_15_1"
  10. WkfNotifyMC = "1_5_3"
  11. )
  12. // DealArcComplainMsg generate archive complain deal message param
  13. func DealArcComplainMsg(aid int64, mids []int64) *param.MessageParam {
  14. return &param.MessageParam{
  15. Type: "json",
  16. Source: 1,
  17. DataType: 4,
  18. MC: ArcComplainDealMC,
  19. Title: "您的投诉已被受理",
  20. Context: fmt.Sprintf("您对稿件(av%d)的投诉已被受理。感谢您对 bilibili 社区秩序的维护,哔哩哔哩 (゜-゜)つロ 干杯~ ", aid),
  21. MidList: mids,
  22. }
  23. }
  24. // ReceivedArcComplainMsg generate archive complain received message param
  25. func ReceivedArcComplainMsg(aid int64, mids []int64) *param.MessageParam {
  26. return &param.MessageParam{
  27. Type: "json",
  28. Source: 1,
  29. DataType: 4,
  30. MC: ArcComplainRevMC,
  31. Title: "您的投诉已收到",
  32. Context: fmt.Sprintf("您对稿件(av%d)的投诉我们已经收到。感谢您对 bilibili 社区秩序的维护,哔哩哔哩 (゜-゜)つロ 干杯~", aid),
  33. MidList: mids,
  34. }
  35. }