action.go 505 B

1234567891011121314151617181920212223242526272829
  1. package like
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. // action type
  6. const (
  7. LIKESCORE = 1
  8. )
  9. // Action def.
  10. type Action struct {
  11. ID int64 `json:"id"`
  12. Lid int64 `json:"lid"`
  13. Mid int64 `json:"mid"`
  14. Action int64 `json:"action"`
  15. Ctime xtime.Time `json:"ctime"`
  16. Mtime xtime.Time `json:"mtime"`
  17. Sid int64 `json:"sid"`
  18. IP int64 `json:"ip"`
  19. IPv6 []byte `json:"ipv6"`
  20. }
  21. // LidLikeSum def .
  22. type LidLikeSum struct {
  23. Likes int64
  24. Lid int64
  25. }