stat.go 835 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package model
  2. import "time"
  3. const (
  4. // IncreaseStat increase spy stat.
  5. IncreaseStat int8 = 1
  6. // ResetStat reset spy stat.
  7. ResetStat int8 = 2
  8. // WaiteCheck waite for check.
  9. WaiteCheck = 0
  10. )
  11. // type def.
  12. const (
  13. ArchiveType int8 = 1
  14. ActivityType int8 = 2
  15. )
  16. // Statistics def.
  17. type Statistics struct {
  18. ID int64 `json:"id"`
  19. TargetMid int64 `json:"target_mid"`
  20. TargetID int64 `json:"target_id"`
  21. EventID int64 `json:"event_id"`
  22. State int8 `json:"state"`
  23. Type int8 `json:"type"`
  24. Quantity int64 `json:"quantity"`
  25. Ctime time.Time `json:"ctime"`
  26. Mtime time.Time `json:"mtime"`
  27. }
  28. // SpyLog def.
  29. type SpyLog struct {
  30. ID int64 `json:"id"`
  31. TargetMid int64 `json:"target_mid"`
  32. Ctime time.Time `json:"ctime"`
  33. Mtime time.Time `json:"mtime"`
  34. }