This commit is contained in:
2026-02-11 20:08:27 +08:00
parent 4afbd7dec7
commit b424082f01
2 changed files with 83 additions and 38 deletions

View File

@@ -212,10 +212,10 @@ func (s *UserApplicationServiceImpl) LoginWithSMS(ctx context.Context, cmd *comm
}, nil
}
// SendSMS 发送短信验证码
// 业务流程1. 发送短信验证码
func (s *UserApplicationServiceImpl) SendSMS(ctx context.Context, cmd *commands.SendCodeCommand) error {
return s.smsCodeService.SendCode(ctx, cmd.Phone, entities.SMSScene(cmd.Scene), "", "")
// SendCode 发送短信验证码
// 业务流程1. 安全检查与限流 2. 发送短信验证码
func (s *UserApplicationServiceImpl) SendCode(ctx context.Context, cmd *commands.SendCodeCommand, clientIP, userAgent string) error {
return s.smsCodeService.SendCode(ctx, cmd.Phone, entities.SMSScene(cmd.Scene), clientIP, userAgent)
}
// ChangePassword 修改密码