You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
847 B

package model
import "time"
// type def.
const (
AccountType = iota
ArchiveType
ActivityType
)
// Statistics def.
type Statistics struct {
ID int64 `json:"id"`
TargetMid int64 `json:"target_mid"`
TargetID int64 `json:"target_id"`
EventID int64 `json:"event_id"`
State int8 `json:"state"`
Type int8 `json:"type"`
Isdel int8 `json:"is_del"`
Quantity int64 `json:"quantity"`
EventName string `json:"event_name"`
Ctime time.Time `json:"ctime"`
Mtime time.Time `json:"mtime"`
CtimeUnix int64 `json:"ctimeunix"`
MtimeUnix int64 `json:"mtimeunix"`
}
// StatPage def.
type StatPage struct {
TotalCount int64 `json:"total_count"`
Pn int `json:"pn"`
Ps int `json:"ps"`
Items []*Statistics `json:"items"`
}