大面积重构

Response部分

usersController部分

中间件部分
This commit is contained in:
2022-04-06 13:54:48 +08:00
parent 513b563728
commit 0df2aaa82f
13 changed files with 114 additions and 119 deletions

View File

@@ -1,8 +1,8 @@
package router
import (
"drive-linked/pkg/controller"
"drive-linked/pkg/middleware"
"drive-linked/pkg/service/controller"
"github.com/kataras/iris/v12"
)
@@ -20,8 +20,7 @@ func Router() *iris.Application {
// 需要登录
users.Use(middleware.SignRequired)
// 用户详细信息
users.Get("/profile/{name:string}", controller.UserProfile)
users.Post("/profile", controller.UserProfile)
users.Get("/profile", controller.UserProfile)
})
return app
}