chore: 清理死代码与空壳中间件
删除 email handler/user/ 和 logic/user/ 下未被 routes.go 引用的 重复 forgotPasswordHandler。删除 jwtauthMiddleware 空壳。
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user