log.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package common
  2. const (
  3. //BusinessID action log business ID
  4. BusinessID = 204
  5. //LogPopularStars popular new start card log
  6. LogPopularStars = 0
  7. //LogChannelTab channel tab log
  8. LogChannelTab = 1
  9. //LogEventTopic popular event topic log
  10. LogEventTopic = 2
  11. //LogSWEBCard search web card log
  12. LogSWEBCard = 3
  13. //LogSWEB search web log
  14. LogSWEB = 4
  15. )
  16. //LogManager .
  17. type LogManager struct {
  18. ID int `json:"id"`
  19. OID int `json:"oid"`
  20. Uname string `json:"uname"`
  21. UID int `json:"uid"`
  22. Type int `json:"module"`
  23. ExtraData string `json:"content"`
  24. Action string `json:"action"`
  25. CTime string `json:"ctime"`
  26. }
  27. //LogSearch .
  28. type LogSearch struct {
  29. ID int `json:"id"`
  30. OID int `json:"oid"`
  31. Uname string `json:"uname"`
  32. UID int `json:"uid"`
  33. Type int `json:"type"`
  34. ExtraData string `json:"extra_data"`
  35. Action string `json:"action"`
  36. CTime string `json:"ctime"`
  37. }
  38. //ManagerPage .
  39. type ManagerPage struct {
  40. CurrentPage int `json:"current_page"`
  41. TotalItems int `json:"total_items"`
  42. PageSize int `json:"page_size"`
  43. }
  44. //LogManagers .
  45. type LogManagers struct {
  46. Item []*LogManager `json:"item"`
  47. Page ManagerPage `json:"pager"`
  48. }