将model从pak包中移出到根目录
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2022-04-05 18:16:20 +08:00
parent 795028c4bb
commit 513b563728
11 changed files with 54 additions and 21 deletions

View File

@@ -17,6 +17,8 @@ func Router() *iris.Application {
// v1
v1 := app.Party("/v1")
v1.PartyFunc("/users", func(users iris.Party) {
// 需要登录
users.Use(middleware.SignRequired)
// 用户详细信息
users.Get("/profile/{name:string}", controller.UserProfile)
users.Post("/profile", controller.UserProfile)