databus.go 467 B

1234567891011121314151617181920
  1. package model
  2. // ScoreChange DataBus spy score change.
  3. type ScoreChange struct {
  4. Mid int64 `json:"mid"`
  5. Score int8 `json:"score"`
  6. BaseScore int8 `json:"base_score"`
  7. EventScore int8 `json:"event_score"`
  8. TS int64 `json:"ts"`
  9. Reason string `json:"reason"`
  10. RiskLevel int8 `json:"risk_level"`
  11. }
  12. const (
  13. //CoinReason coin reason ref update score
  14. CoinReason = "coin-service"
  15. //CoinHighRisk coin high risk
  16. CoinHighRisk = 7
  17. )