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
544 B
18 lines
544 B
package service |
|
|
|
import ( |
|
"context" |
|
"strconv" |
|
|
|
"go-common/app/job/main/usersuit/model" |
|
"go-common/library/log" |
|
) |
|
|
|
func (s *Service) accNotify(c context.Context, uid int64, Action string) (err error) { |
|
msg := &model.AccountNotify{UID: uid, Type: "update", Action: Action} |
|
if err = s.accountNotifyPub.Send(c, strconv.FormatInt(msg.UID, 10), msg); err != nil { |
|
log.Error("mid(%d) s.accountNotifyPub.Send(%+v,%s) error(%v)", msg.UID, msg, Action, err) |
|
} |
|
log.Info("mid(%d) s.accountNotifyPub.Send(%+v,%s)", msg.UID, msg, Action) |
|
return |
|
}
|
|
|