mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
19 lines
444 B
Go
19 lines
444 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"strconv"
|
||
|
|
|
||
|
|
"go-common/app/admin/main/block/model"
|
||
|
|
|
||
|
|
"github.com/pkg/errors"
|
||
|
|
)
|
||
|
|
|
||
|
|
func (s *Service) accountNotify(c context.Context, mid int64) (err error) {
|
||
|
|
msg := &model.AccountNotify{UID: mid, Action: "blockUser"}
|
||
|
|
if err = s.accountNotifyPub.Send(c, strconv.FormatInt(msg.UID, 10), msg); err != nil {
|
||
|
|
err = errors.Errorf("mid(%d) s.accountNotify.Send(%+v) error(%+v)", msg.UID, msg, err)
|
||
|
|
}
|
||
|
|
return
|
||
|
|
}
|