task.go 1002 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package model
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. // Task is Laser application Task
  6. type Task struct {
  7. ID int64 `json:"id"`
  8. AdminID int64 `json:"admin_id"`
  9. Username string `json:"username"`
  10. MID int64 `json:"mid"`
  11. LogDate xtime.Time `json:"log_date"`
  12. ContactEmail string `json:"contact_email"`
  13. SourceType int `json:"source_type"`
  14. Platform int `json:"platform"`
  15. State int `json:"state"`
  16. IsDeleted int `json:"is_deleted"`
  17. CTime xtime.Time `json:"ctime"`
  18. MTime xtime.Time `json:"mtime"`
  19. }
  20. // TaskPager Task pager
  21. type TaskPager struct {
  22. Total int64 `json:"total"`
  23. PageNo int `json:"page_no" default:"1"`
  24. PageSize int `json:"page_size" default:"20"`
  25. Items []*Task `json:"items"`
  26. }
  27. // TaskInfo is to set as value of memcache key(mid)
  28. type TaskInfo struct {
  29. MID int64
  30. LogDate xtime.Time
  31. SourceType int
  32. Platform int
  33. Empty bool
  34. }