1234567891011121314151617181920212223242526272829303132333435363738 |
- package model
- import (
- xtime "go-common/library/time"
- )
- // Task is Laser application Task
- type Task struct {
- ID int64 `json:"id"`
- AdminID int64 `json:"admin_id"`
- Username string `json:"username"`
- MID int64 `json:"mid"`
- LogDate xtime.Time `json:"log_date"`
- ContactEmail string `json:"contact_email"`
- SourceType int `json:"source_type"`
- Platform int `json:"platform"`
- State int `json:"state"`
- IsDeleted int `json:"is_deleted"`
- CTime xtime.Time `json:"ctime"`
- MTime xtime.Time `json:"mtime"`
- }
- // TaskPager Task pager
- type TaskPager struct {
- Total int64 `json:"total"`
- PageNo int `json:"page_no" default:"1"`
- PageSize int `json:"page_size" default:"20"`
- Items []*Task `json:"items"`
- }
- // TaskInfo is to set as value of memcache key(mid)
- type TaskInfo struct {
- MID int64
- LogDate xtime.Time
- SourceType int
- Platform int
- Empty bool
- }
|