report.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package search
  2. import (
  3. "time"
  4. "go-common/app/admin/main/workflow/model"
  5. )
  6. // business id const
  7. const (
  8. Archive = 3
  9. Workflow = 11
  10. LogAuditAction = "log_audit"
  11. _auditLogSrhComID = "log_audit_group"
  12. //// IndexTypeYear index by year
  13. //IndexTypeYear indexType = "year"
  14. //// IndexTypeMonth index by month
  15. //IndexTypeMonth indexType = "month"
  16. //// IndexTypeWeek index by week
  17. //IndexTypeWeek indexType = "week"
  18. //// IndexTypeDay index by day
  19. //IndexTypeDay indexType = "day"
  20. )
  21. // AuditReportSearchCond .
  22. type AuditReportSearchCond struct {
  23. AppID string `json:"app_id"`
  24. Fields []string `json:"fields"`
  25. IndexTimeType string `json:"index_time_type"`
  26. IndexTimeFrom time.Time `json:"index_time_from"`
  27. IndexTimeEnd time.Time `json:"index_time_end"`
  28. Business int `json:"business"`
  29. UName string `json:"uname"`
  30. UID []int64 `json:"uid"`
  31. Oid []int64 `json:"oid"`
  32. Type []int `json:"type"`
  33. Action string `json:"action"`
  34. CTime string `json:"ctime"`
  35. Order string `json:"order"`
  36. Sort string `json:"sort"`
  37. Int0 []int64 `json:"int_0"`
  38. Int1 []int64 `json:"int_1"`
  39. Int2 []int64 `json:"int_2"`
  40. Str0 string `json:"str_0"`
  41. Str1 string `json:"str_1"`
  42. Str2 string `json:"str_2"`
  43. Group string `json:"group"`
  44. Distinct string `json:"distinct"`
  45. }
  46. // AuditLogSearchCommonResult .
  47. type AuditLogSearchCommonResult struct {
  48. Page *model.Page `json:"page"`
  49. Result []*ReportLog `json:"result"`
  50. }
  51. // ReportLog .
  52. type ReportLog struct {
  53. Action string `json:"action"`
  54. Business int64 `json:"business"`
  55. CTime string `json:"ctime"`
  56. ExtraData string `json:"extra_data"`
  57. Str0 string `json:"str_0"`
  58. Str1 string `json:"str_1"`
  59. Str2 string `json:"str_2"`
  60. Int0 int64 `json:"int_0"`
  61. Int1 int64 `json:"int_1"`
  62. Int2 int64 `json:"int_2"`
  63. Int3 int64 `json:"int_3"`
  64. Oid int64 `json:"oid"`
  65. Type int64 `json:"type"`
  66. UID int64 `json:"uid"`
  67. UName string `json:"uname"`
  68. }