123456789101112131415161718192021 |
- package service
- import (
- "context"
- "go-common/app/job/main/figure/model"
- spym "go-common/app/service/main/spy/model"
- )
- // PutSpyScore handle user spy score chenage message
- func (s *Service) PutSpyScore(c context.Context, sc *spym.ScoreChange) (err error) {
- s.figureDao.PutSpyScore(c, sc.Mid, sc.Score)
- if sc.Reason == spym.CoinReason {
- if sc.RiskLevel == spym.CoinHighRisk {
- s.figureDao.PutCoinUnusual(c, sc.Mid, model.ACColumnHighRisk)
- } else {
- s.figureDao.PutCoinUnusual(c, sc.Mid, model.ACColumnLowRisk)
- }
- }
- return
- }
|