fix: 统一重置密码验证码的 scene 常量

This commit is contained in:
zetaloop
2026-04-23 14:58:25 +08:00
parent 86f3490fc2
commit d596d41e1a
3 changed files with 5 additions and 3 deletions
@@ -8,6 +8,7 @@ import (
"juwan-backend/app/email/api/internal/svc"
"juwan-backend/app/email/api/internal/types"
"juwan-backend/common/redisx"
"github.com/zeromicro/go-zero/core/logx"
)
@@ -30,6 +31,6 @@ func NewForgotPasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Fo
func (l *ForgotPasswordLogic) ForgotPassword(req *types.ForgotPasswordReq) (resp *types.SendVerificationCodeResp, err error) {
return NewSendVerificationCodeLogic(l.ctx, l.svcCtx).SendVerificationCode(&types.SendVerificationCodeReq{
Email: req.Email,
Scene: "reset_password",
Scene: redisx.SCENE_RESET_PWD,
})
}