You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
449 B
18 lines
449 B
package block |
|
|
|
import ( |
|
"context" |
|
"strconv" |
|
|
|
"go-common/app/admin/main/member/model/block" |
|
|
|
"github.com/pkg/errors" |
|
) |
|
|
|
func (s *Service) accountNotify(c context.Context, mid int64) (err error) { |
|
msg := &block.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 |
|
}
|
|
|