作者 tangxvhui

部分入口屏蔽

@@ -15,21 +15,21 @@ func init() { @@ -15,21 +15,21 @@ func init() {
15 beego.NSBefore(middleware.AuthToken), 15 beego.NSBefore(middleware.AuthToken),
16 beego.NSNamespace("/department", 16 beego.NSNamespace("/department",
17 beego.NSRouter("/list", &controllers.CompanyController{}, "post:DepartmentList"), 17 beego.NSRouter("/list", &controllers.CompanyController{}, "post:DepartmentList"),
18 - beego.NSRouter("/add", &controllers.CompanyController{}, "post:DepartmentAdd"),  
19 - beego.NSRouter("/edit", &controllers.CompanyController{}, "post:DepartmentUpdate"),  
20 - beego.NSRouter("/delete", &controllers.CompanyController{}, "post:DepartmentDelete"), 18 + // beego.NSRouter("/add", &controllers.CompanyController{}, "post:DepartmentAdd"),
  19 + // beego.NSRouter("/edit", &controllers.CompanyController{}, "post:DepartmentUpdate"),
  20 + // beego.NSRouter("/delete", &controllers.CompanyController{}, "post:DepartmentDelete"),
21 beego.NSRouter("/user", &controllers.CompanyController{}, "post:DepartmentUser"), 21 beego.NSRouter("/user", &controllers.CompanyController{}, "post:DepartmentUser"),
22 beego.NSRouter("/info", &controllers.CompanyController{}, "post:DepartmentInfo"), 22 beego.NSRouter("/info", &controllers.CompanyController{}, "post:DepartmentInfo"),
23 ), 23 ),
24 beego.NSNamespace("/company", 24 beego.NSNamespace("/company",
25 - beego.NSRouter("/current/edit", &controllers.CompanyController{}, "post:CurrentCompanyEdit"), 25 + // beego.NSRouter("/current/edit", &controllers.CompanyController{}, "post:CurrentCompanyEdit"),
26 beego.NSRouter("/current/info", &controllers.CompanyController{}, "post:CurrentCompanyInfo"), 26 beego.NSRouter("/current/info", &controllers.CompanyController{}, "post:CurrentCompanyInfo"),
27 ), 27 ),
28 beego.NSNamespace("position", 28 beego.NSNamespace("position",
29 beego.NSRouter("/list", &controllers.CompanyController{}, "post:PositionList"), 29 beego.NSRouter("/list", &controllers.CompanyController{}, "post:PositionList"),
30 - beego.NSRouter("/add", &controllers.CompanyController{}, "post:PositionAdd"),  
31 - beego.NSRouter("/edit", &controllers.CompanyController{}, "post:PositionEdit"),  
32 - beego.NSRouter("/delete", &controllers.CompanyController{}, "post:PositionDelete"), 30 + // beego.NSRouter("/add", &controllers.CompanyController{}, "post:PositionAdd"),
  31 + // beego.NSRouter("/edit", &controllers.CompanyController{}, "post:PositionEdit"),
  32 + // beego.NSRouter("/delete", &controllers.CompanyController{}, "post:PositionDelete"),
33 ), 33 ),
34 beego.NSNamespace("/rbac", 34 beego.NSNamespace("/rbac",
35 beego.NSRouter("/role/add", &controllers.RbacController{}, "post:RoleAdd"), 35 beego.NSRouter("/role/add", &controllers.RbacController{}, "post:RoleAdd"),
@@ -47,15 +47,14 @@ func init() { @@ -47,15 +47,14 @@ func init() {
47 ), 47 ),
48 beego.NSNamespace("/user", 48 beego.NSNamespace("/user",
49 beego.NSRouter("/list", &controllers.CompanyController{}, "post:UserList"), 49 beego.NSRouter("/list", &controllers.CompanyController{}, "post:UserList"),
50 - beego.NSRouter("/add", &controllers.CompanyController{}, "post:UserAdd"),  
51 - beego.NSRouter("/edit", &controllers.CompanyController{}, "post:UserEdit"),  
52 - beego.NSRouter("/delete", &controllers.CompanyController{}, "post:UserDelete"),  
53 - beego.NSRouter("/allow_forbid", &controllers.CompanyController{}, "post:UserAllowForbid"), 50 + // beego.NSRouter("/add", &controllers.CompanyController{}, "post:UserAdd"),
  51 + // beego.NSRouter("/edit", &controllers.CompanyController{}, "post:UserEdit"),
  52 + // beego.NSRouter("/delete", &controllers.CompanyController{}, "post:UserDelete"),
  53 + // beego.NSRouter("/allow_forbid", &controllers.CompanyController{}, "post:UserAllowForbid"),
54 beego.NSRouter("/info", &controllers.CompanyController{}, "post:UserDetail"), 54 beego.NSRouter("/info", &controllers.CompanyController{}, "post:UserDetail"),
55 ), 55 ),
56 beego.NSNamespace("/auth", 56 beego.NSNamespace("/auth",
57 beego.NSRouter("/change_company", &controllers.AuthController{}, "post:ChangeCompany"), 57 beego.NSRouter("/change_company", &controllers.AuthController{}, "post:ChangeCompany"),
58 - //beego.NSRouter("/refresh_token", &controllers.AuthController{}, "post:RefreshToken"),  
59 beego.NSRouter("/me", &controllers.AuthController{}, "post:Me"), 58 beego.NSRouter("/me", &controllers.AuthController{}, "post:Me"),
60 beego.NSRouter("/smscode/check", &controllers.AuthController{}, "post:SmsCodeCheck"), 59 beego.NSRouter("/smscode/check", &controllers.AuthController{}, "post:SmsCodeCheck"),
61 ), 60 ),
@@ -145,10 +144,10 @@ func init() { @@ -145,10 +144,10 @@ func init() {
145 beego.NSRouter("/login", &controllers.AuthController{}, "post:LoginSecretKey"), 144 beego.NSRouter("/login", &controllers.AuthController{}, "post:LoginSecretKey"),
146 beego.NSRouter("/startCaptcha", &controllers.AuthController{}, "post:RegisterGeetest"), 145 beego.NSRouter("/startCaptcha", &controllers.AuthController{}, "post:RegisterGeetest"),
147 beego.NSRouter("/verifyCaptcha", &controllers.AuthController{}, "post:ValidateGeetest"), 146 beego.NSRouter("/verifyCaptcha", &controllers.AuthController{}, "post:ValidateGeetest"),
148 - beego.NSRouter("/login_sms", &controllers.AuthController{}, "post:LoginSms"),  
149 - beego.NSRouter("/sms_code", &controllers.AuthController{}, "post:SmsCode"),  
150 - beego.NSRouter("/sms_code/check", &controllers.AuthController{}, "post:SmsCodeCheck"),  
151 - beego.NSRouter("/my/reset_password", &controllers.MyController{}, "post:ResetPassword"), 147 + //beego.NSRouter("/login_sms", &controllers.AuthController{}, "post:LoginSms"),
  148 + //beego.NSRouter("/sms_code", &controllers.AuthController{}, "post:SmsCode"),
  149 + //beego.NSRouter("/sms_code/check", &controllers.AuthController{}, "post:SmsCodeCheck"),
  150 + //beego.NSRouter("/my/reset_password", &controllers.MyController{}, "post:ResetPassword"),
152 ) 151 )
153 nsUcenter := beego.NewNamespace("/ucenter", 152 nsUcenter := beego.NewNamespace("/ucenter",
154 beego.NSBefore(middleware.LogRequestData), 153 beego.NSBefore(middleware.LogRequestData),