thread-master/old/backend/internal/handler/auth/resend_verification_email_h...

21 lines
499 B
Go
Raw Normal View History

2026-06-28 08:28:42 +00:00
// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
2026-07-09 03:45:28 +00:00
package auth
2026-06-28 08:28:42 +00:00
import (
"net/http"
2026-07-09 03:45:28 +00:00
"haixun-backend/internal/logic/auth"
2026-06-28 08:28:42 +00:00
"haixun-backend/internal/response"
"haixun-backend/internal/svc"
)
2026-07-09 03:45:28 +00:00
func ResendVerificationEmailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
2026-06-28 08:28:42 +00:00
return func(w http.ResponseWriter, r *http.Request) {
2026-07-09 03:45:28 +00:00
l := auth.NewResendVerificationEmailLogic(r.Context(), svcCtx)
data, err := l.ResendVerificationEmail()
2026-06-28 08:28:42 +00:00
response.Write(r.Context(), w, data, err)
}
}