Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package dao
import (
"context"
"strconv"
"go-common/library/log"
)
// PubScoreChange pub spy score change msg into databus.
func (d *Dao) PubScoreChange(c context.Context, mid int64, msg interface{}) (err error) {
key := strconv.FormatInt(mid, 10)
if err = d.dbScoreChange.Send(c, key, msg); err != nil {
log.Error("d.dbScoreChange.Send(%s, %v) error (%v)", key, msg, err)
}
return
}