wlog.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package model
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. // Log Module Field defination
  6. const (
  7. // report business = 12
  8. WLogModuleChallenge = 1
  9. WLogModuleTag = 2
  10. WLogModuleControl = 3
  11. WLogModuleGroup = 4
  12. WLogModuleReply = 5 // modify business_state
  13. WLogModulePublicReferee = 6
  14. WLogModuleRoleShift = 7 // 流转 (同一个执行方)
  15. WLogModuleDispose = 8 // content dispose 操作内容对象
  16. WLogModuleAddMoral = 20 // 扣节操
  17. WLogModuleBlock = 21 // 封禁
  18. // report business = 11
  19. FeedBackTypeNotifyUserReceived = 2
  20. FeedBackTypeNotifyUserDisposed = 3
  21. FeedBackTypeReply = 5
  22. )
  23. // LogSlice is a Log slice struct
  24. type LogSlice []*WLog
  25. // Log model is the universal model
  26. // Will record any management actions
  27. type WLog struct {
  28. Lid int32 `json:"lid"`
  29. AdminID int64 `json:"adminid"`
  30. Admin string `json:"admin"`
  31. Oid int64 `json:"oid"`
  32. Business int8 `json:"business"`
  33. Target int64 `json:"target"`
  34. Module int8 `json:"module"`
  35. Remark string `json:"remark"`
  36. Note string `json:"note"`
  37. CTime xtime.Time `json:"ctime"`
  38. MTime xtime.Time `json:"mtime"`
  39. Meta interface{} `json:"meta"`
  40. ReportCTime string `json:"report_ctime"`
  41. Mid int64 `json:"mid"`
  42. TypeID int64 `json:"type_id"`
  43. TimeConsume int64 `json:"time_consume"`
  44. OpType string `json:"op_type"`
  45. PreRid string `json:"pre_rid"`
  46. Param interface{} `json:"param"`
  47. Mids []int64 `json:"mids"` //对被举报人的批量操作
  48. }