go-common/app/job/main/credit/model/credit.go

34 lines
738 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
import (
"encoding/json"
xtime "go-common/library/time"
)
// Message is simple message struct info.
type Message struct {
Action string `json:"action"`
Table string `json:"table"`
New json.RawMessage `json:"new"`
Old json.RawMessage `json:"old"`
}
// CreditInfo is simple creditInfo struct info.
type CreditInfo struct {
Mid int64 `json:"mid"`
Status int64 `json:"status"`
PunishType int64 `json:"punishType"`
PunishEnd xtime.Time `json:"punishEnd"`
CTime xtime.Time `json:"-"`
MTime xtime.Time `json:"-"`
}
// AutoCaseConf struct
type AutoCaseConf struct {
Reasons map[int8]struct{}
ReasonStr string
ReportScore int
Likes int
}