go-common/app/job/main/member/dao/block/notify.go

17 lines
333 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package block
import (
"context"
"github.com/pkg/errors"
)
// AccountNotify is
func (d *Dao) AccountNotify(c context.Context, mid int64) (err error) {
action := "blockUser"
if err = d.notifyFunc(c, mid, action); err != nil {
err = errors.Errorf("mid(%d) s.accountNotify.Send(%+v) error(%+v)", mid, action, err)
}
return
}