credit.go 738 B

123456789101112131415161718192021222324252627282930313233
  1. package model
  2. import (
  3. "encoding/json"
  4. xtime "go-common/library/time"
  5. )
  6. // Message is simple message struct info.
  7. type Message struct {
  8. Action string `json:"action"`
  9. Table string `json:"table"`
  10. New json.RawMessage `json:"new"`
  11. Old json.RawMessage `json:"old"`
  12. }
  13. // CreditInfo is simple creditInfo struct info.
  14. type CreditInfo struct {
  15. Mid int64 `json:"mid"`
  16. Status int64 `json:"status"`
  17. PunishType int64 `json:"punishType"`
  18. PunishEnd xtime.Time `json:"punishEnd"`
  19. CTime xtime.Time `json:"-"`
  20. MTime xtime.Time `json:"-"`
  21. }
  22. // AutoCaseConf struct
  23. type AutoCaseConf struct {
  24. Reasons map[int8]struct{}
  25. ReasonStr string
  26. ReportScore int
  27. Likes int
  28. }