作者 yangfu

1.路由修改

@@ -9,25 +9,25 @@ import ( @@ -9,25 +9,25 @@ import (
9 func init() { 9 func init() {
10 nsV1 := beego.NewNamespace("v1", beego.NSBefore(middleware.CheckJWTToken)) //beego.NSNamespace("auth", beego.NSInclude(&controllers.AuthController{})), 10 nsV1 := beego.NewNamespace("v1", beego.NSBefore(middleware.CheckJWTToken)) //beego.NSNamespace("auth", beego.NSInclude(&controllers.AuthController{})),
11 11
12 - nsV1.Router("auth/login", &controllers.AuthController{}, "Post:Login")  
13 - nsV1.Router("auth/smsCode", &controllers.AuthController{}, "Post:SmsCode")  
14 - nsV1.Router("auth/accessToken", &controllers.AuthController{}, "Post:AccessToken")  
15 - nsV1.Router("auth/refreshToken", &controllers.AuthController{}, "Post:RefreshToken")  
16 - nsV1.Router("auth/revoke", &controllers.AuthController{}, "Post:Revoke")  
17 - nsV1.Router("auth/updateDevice", &controllers.AuthController{}, "Post:UpdateDevice")  
18 - nsV1.Router("auth/checkSmsCod", &controllers.AuthController{}, "Post:AuthCheckSmsCode") 12 + nsV1.Router("/auth/login", &controllers.AuthController{}, "Post:Login")
  13 + nsV1.Router("/auth/smsCode", &controllers.AuthController{}, "Post:SmsCode")
  14 + nsV1.Router("/auth/accessToken", &controllers.AuthController{}, "Post:AccessToken")
  15 + nsV1.Router("/auth/refreshToken", &controllers.AuthController{}, "Post:RefreshToken")
  16 + nsV1.Router("/auth/revoke", &controllers.AuthController{}, "Post:Revoke")
  17 + nsV1.Router("/auth/updateDevice", &controllers.AuthController{}, "Post:UpdateDevice")
  18 + nsV1.Router("/auth/checkSmsCod", &controllers.AuthController{}, "Post:AuthCheckSmsCode")
19 19
20 - nsV1.Router("user/userInfo", &controllers.UserController{}, "Post:UserInfo")  
21 - nsV1.Router("user/checkSmsCode", &controllers.UserController{}, "Post:CheckSmsCode")  
22 - nsV1.Router("user/changePhone", &controllers.UserController{}, "Post:ChangePhone")  
23 - nsV1.Router("user/resetPassword", &controllers.UserController{}, "Post:ResetPassword")  
24 - nsV1.Router("user/changePassword", &controllers.UserController{}, "Post:ChangePassword") 20 + nsV1.Router("/user/userInfo", &controllers.UserController{}, "Post:UserInfo")
  21 + nsV1.Router("/user/checkSmsCode", &controllers.UserController{}, "Post:CheckSmsCode")
  22 + nsV1.Router("/user/changePhone", &controllers.UserController{}, "Post:ChangePhone")
  23 + nsV1.Router("/user/resetPassword", &controllers.UserController{}, "Post:ResetPassword")
  24 + nsV1.Router("/user/changePassword", &controllers.UserController{}, "Post:ChangePassword")
25 25
26 - nsV1.Router("order/statistics", &controllers.OrderController{}, "Post:Statistics")  
27 - nsV1.Router("order/details", &controllers.OrderController{}, "Post:OrderDetail")  
28 - nsV1.Router("order/list", &controllers.OrderController{}, "Post:OrderList") 26 + nsV1.Router("/order/statistics", &controllers.OrderController{}, "Post:Statistics")
  27 + nsV1.Router("/order/details", &controllers.OrderController{}, "Post:OrderDetail")
  28 + nsV1.Router("/order/list", &controllers.OrderController{}, "Post:OrderList")
29 29
30 - nsV1.Router("dividend/statistics", &controllers.DividendController{}, "Post:DividendStatistics")  
31 - nsV1.Router("dividend/orders", &controllers.DividendController{}, "Post:DividendOrders") 30 + nsV1.Router("/dividend/statistics", &controllers.DividendController{}, "Post:DividendStatistics")
  31 + nsV1.Router("/dividend/orders", &controllers.DividendController{}, "Post:DividendOrders")
32 beego.AddNamespace(nsV1) 32 beego.AddNamespace(nsV1)
33 } 33 }