Create & Init Project...

This commit is contained in:
2019-04-22 18:49:16 +08:00
commit fc4fa37393
25440 changed files with 4054998 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package dao
import (
"context"
"fmt"
"go-common/app/job/main/member/model"
)
func notifyKey(mid int64) string {
return fmt.Sprintf("MemberJob-AccountNotify-T%d", mid)
}
// NotifyPurgeCache is
func (d *Dao) NotifyPurgeCache(c context.Context, mid int64, action string) error {
msg := &model.NotifyInfo{
Mid: mid,
Action: action,
}
key := notifyKey(mid)
return d.accNotify.Send(c, key, msg)
}