diff --git a/app/email/api/internal/handler/user/forgotPasswordHandler.go b/app/email/api/internal/handler/user/forgotPasswordHandler.go deleted file mode 100644 index 9f7cd16..0000000 --- a/app/email/api/internal/handler/user/forgotPasswordHandler.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code scaffolded by goctl. Safe to edit. -// goctl 1.9.2 - -package user - -import ( - "net/http" - - "github.com/zeromicro/go-zero/rest/httpx" - "juwan-backend/app/email/api/internal/logic/user" - "juwan-backend/app/email/api/internal/svc" - "juwan-backend/app/email/api/internal/types" -) - -// 忘记密码-发送验证码 -func ForgotPasswordHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { - return func(w http.ResponseWriter, r *http.Request) { - var req types.ForgotPasswordReq - if err := httpx.Parse(r, &req); err != nil { - httpx.ErrorCtx(r.Context(), w, err) - return - } - - l := user.NewForgotPasswordLogic(r.Context(), svcCtx) - resp, err := l.ForgotPassword(&req) - if err != nil { - httpx.ErrorCtx(r.Context(), w, err) - } else { - httpx.OkJsonCtx(r.Context(), w, resp) - } - } -} diff --git a/app/email/api/internal/logic/user/forgotPasswordLogic.go b/app/email/api/internal/logic/user/forgotPasswordLogic.go deleted file mode 100644 index 8edaee0..0000000 --- a/app/email/api/internal/logic/user/forgotPasswordLogic.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code scaffolded by goctl. Safe to edit. -// goctl 1.9.2 - -package user - -import ( - "context" - - "juwan-backend/app/email/api/internal/svc" - "juwan-backend/app/email/api/internal/types" - - "github.com/zeromicro/go-zero/core/logx" -) - -type ForgotPasswordLogic struct { - logx.Logger - ctx context.Context - svcCtx *svc.ServiceContext -} - -// 忘记密码-发送验证码 -func NewForgotPasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ForgotPasswordLogic { - return &ForgotPasswordLogic{ - Logger: logx.WithContext(ctx), - ctx: ctx, - svcCtx: svcCtx, - } -} - -func (l *ForgotPasswordLogic) ForgotPassword(req *types.ForgotPasswordReq) (resp *types.EmptyResp, err error) { - // todo: add your logic here and delete this line - - return -} diff --git a/app/users/api/internal/middleware/jwtauthMiddleware.go b/app/users/api/internal/middleware/jwtauthMiddleware.go deleted file mode 100644 index c51e5ba..0000000 --- a/app/users/api/internal/middleware/jwtauthMiddleware.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code scaffolded by goctl. Safe to edit. -// goctl 1.9.2 - -package middleware - -import "net/http" - -type JwtAuthMiddleware struct { -} - -func NewJwtAuthMiddleware() *JwtAuthMiddleware { - return &JwtAuthMiddleware{} -} - -func (m *JwtAuthMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc { - return func(w http.ResponseWriter, r *http.Request) { - // TODO generate middleware implement function, delete after code implementation - - // Passthrough to next handler if need - next(w, r) - } -}