pub.go 322 B

12345678910111213141516
  1. package dao
  2. import (
  3. "context"
  4. "go-common/library/log"
  5. "strconv"
  6. )
  7. func (d *Dao) Pub(c context.Context, uid int64, msg interface{}) error {
  8. key := strconv.FormatInt(uid, 10)
  9. err := d.changeDataBus.Send(c, key, msg)
  10. if err != nil {
  11. log.Error("pub wallet change failed uid:%d, msg:%+v", uid, msg)
  12. }
  13. return err
  14. }