add: anowflake email kafka, refa: redis connectg
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
"juwan-backend/app/email/mq/internal/config"
|
||||
"juwan-backend/app/email/mq/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type SendVerificationCodeMq struct {
|
||||
c config.Config
|
||||
ctx context.Context
|
||||
svcCxt *svc.ServiceContext
|
||||
}
|
||||
|
||||
func NewSendVerificationCodeMq(ctx context.Context, c config.Config, svcCtx *svc.ServiceContext) *SendVerificationCodeMq {
|
||||
return &SendVerificationCodeMq{
|
||||
c: c,
|
||||
ctx: ctx,
|
||||
svcCxt: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (l *SendVerificationCodeMq) Consume(ctx context.Context, key, value string) error {
|
||||
_ = ctx
|
||||
_ = key
|
||||
_ = value
|
||||
logx.Infof("Consume get message key: %s, value: %s", key, value)
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user