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.
17 lines
460 B
17 lines
460 B
package service |
|
|
|
import ( |
|
"context" |
|
"strconv" |
|
|
|
"go-common/app/admin/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) error(%v)", msg.UID, msg, err) |
|
} |
|
return |
|
}
|
|
|