go-common/app/service/live/wallet/dao/pub.go

17 lines
322 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"go-common/library/log"
"strconv"
)
func (d *Dao) Pub(c context.Context, uid int64, msg interface{}) error {
key := strconv.FormatInt(uid, 10)
err := d.changeDataBus.Send(c, key, msg)
if err != nil {
log.Error("pub wallet change failed uid:%d, msg:%+v", uid, msg)
}
return err
}