admin.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package model
  2. const (
  3. // AdminIsNotReport 不是举报记录
  4. AdminIsNotReport int32 = 0
  5. // AdminIsReport 是举报记录
  6. AdminIsReport = 1
  7. // AdminIsNotNew 不是该评论最新的
  8. AdminIsNotNew int32 = 0
  9. // AdminIsNew 是该评论最新的
  10. AdminIsNew = 1
  11. // AdminOperDelete 管理员删除评论
  12. AdminOperDelete int32 = 0
  13. // AdminOperDeleteByReport 管理员通过举报删除 NOTE Deprecated
  14. AdminOperDeleteByReport = 1
  15. // AdminOperIgnoreReport 管理员忽略举报 NOTE Deprecated
  16. AdminOperIgnoreReport = 2
  17. // AdminOperRecover 管理员恢复评论
  18. AdminOperRecover = 3
  19. // AdminOperEdit 管理员编辑内容
  20. AdminOperEdit = 4
  21. // AdminOperPass 管理通过待审
  22. AdminOperPass = 5
  23. // AdminOperSubState 修改主题的状态
  24. AdminOperSubState = 6
  25. // AdminOperSubTop 置顶评论
  26. AdminOperSubTop = 7
  27. // AdminOperSubMid 修改主题的mid
  28. AdminOperSubMid = 8
  29. // AdminOperRptIgnore1 举报一审忽略
  30. AdminOperRptIgnore1 = 9
  31. // AdminOperRptIgnore2 举报二审忽略
  32. AdminOperRptIgnore2 = 10
  33. // AdminOperRptDel1 举报一审删除
  34. AdminOperRptDel1 = 11
  35. // AdminOperRptDel2 举报二审删除
  36. AdminOperRptDel2 = 12
  37. // AdminOperRptRecover1 举报一审恢复
  38. AdminOperRptRecover1 = 13
  39. // AdminOperRptRecover2 举报二审恢复
  40. AdminOperRptRecover2 = 14
  41. // AdminOperActionSet 对点赞点踩设置
  42. AdminOperActionSet = 15
  43. // AdminOperDeleteUp up主删除评论
  44. AdminOperDeleteUp = 16
  45. // AdminOperDeleteUser 用户删除评论
  46. AdminOperDeleteUser = 17
  47. // AdminOperDeleteAssist 协管删除评论
  48. AdminOperDeleteAssist = 18
  49. // AdminOperSubMonitor 设置监控状态
  50. AdminOperSubMonitor = 19
  51. // AdminOperRptTransfer1 转一审
  52. AdminOperRptTransfer1 = 20
  53. // AdminOperRptTransfer2 转二审
  54. AdminOperRptTransfer2 = 21
  55. // AdminOperRptTransferArbitration 移交仲裁
  56. AdminOperRptTransferArbitration = 22
  57. // AdminOperRptStateSet 设置举报状态
  58. AdminOperRptStateSet = 23
  59. // AdminOperSubMonitorOpen 先发后审打开
  60. AdminOperSubMonitorOpen = 24
  61. // AdminOperSubMonitorClose 先发后审关闭
  62. AdminOperSubMonitorClose = 25
  63. // AdminOperSubAuditOpen 先审后发打开
  64. AdminOperSubAuditOpen = 26
  65. // AdminOperSubAuditClose 先审后发关闭
  66. AdminOperSubAuditClose = 27
  67. // AdminOperMarkSpam 标记为垃圾
  68. AdminOperMarkSpam = 28
  69. )
  70. // AdminLog log.
  71. type AdminLog struct {
  72. ID int64 `json:"id"`
  73. Type int8 `json:"type"`
  74. Oid int64 `json:"oid"`
  75. ReplyID int64 `json:"reply_id"`
  76. AdminID int64 `json:"admin_id"`
  77. Result string `json:"result"`
  78. Remark string `json:"remark"`
  79. IsNew int8 `json:"is_new"`
  80. IsReport int8 `json:"is_report"`
  81. State int8 `json:"state"`
  82. CTime string `json:"ctime"`
  83. MTime string `json:"mtime"`
  84. }
  85. // SearchAdminLog log.
  86. type SearchAdminLog struct {
  87. Type int8 `json:"type"`
  88. Oid int64 `json:"oid"`
  89. ReplyID int64 `json:"rpid"`
  90. AdminID int64 `json:"adminid"`
  91. AdminName string `json:"admin_name"`
  92. Result string `json:"opresult"`
  93. Remark string `json:"opremark"`
  94. State int8 `json:"state"`
  95. CTime string `json:"opctime"`
  96. }