add: anowflake email kafka, refa: redis connectg

This commit is contained in:
wwweww
2026-02-25 01:16:13 +08:00
parent fdbcde13b2
commit 300058ad01
67 changed files with 3596 additions and 139 deletions
@@ -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
}