...
|
...
|
@@ -15,21 +15,21 @@ func init() { |
|
|
beego.NSBefore(middleware.AuthToken),
|
|
|
beego.NSNamespace("/department",
|
|
|
beego.NSRouter("/list", &controllers.CompanyController{}, "post:DepartmentList"),
|
|
|
beego.NSRouter("/add", &controllers.CompanyController{}, "post:DepartmentAdd"),
|
|
|
beego.NSRouter("/edit", &controllers.CompanyController{}, "post:DepartmentUpdate"),
|
|
|
beego.NSRouter("/delete", &controllers.CompanyController{}, "post:DepartmentDelete"),
|
|
|
// beego.NSRouter("/add", &controllers.CompanyController{}, "post:DepartmentAdd"),
|
|
|
// beego.NSRouter("/edit", &controllers.CompanyController{}, "post:DepartmentUpdate"),
|
|
|
// beego.NSRouter("/delete", &controllers.CompanyController{}, "post:DepartmentDelete"),
|
|
|
beego.NSRouter("/user", &controllers.CompanyController{}, "post:DepartmentUser"),
|
|
|
beego.NSRouter("/info", &controllers.CompanyController{}, "post:DepartmentInfo"),
|
|
|
),
|
|
|
beego.NSNamespace("/company",
|
|
|
beego.NSRouter("/current/edit", &controllers.CompanyController{}, "post:CurrentCompanyEdit"),
|
|
|
// beego.NSRouter("/current/edit", &controllers.CompanyController{}, "post:CurrentCompanyEdit"),
|
|
|
beego.NSRouter("/current/info", &controllers.CompanyController{}, "post:CurrentCompanyInfo"),
|
|
|
),
|
|
|
beego.NSNamespace("position",
|
|
|
beego.NSRouter("/list", &controllers.CompanyController{}, "post:PositionList"),
|
|
|
beego.NSRouter("/add", &controllers.CompanyController{}, "post:PositionAdd"),
|
|
|
beego.NSRouter("/edit", &controllers.CompanyController{}, "post:PositionEdit"),
|
|
|
beego.NSRouter("/delete", &controllers.CompanyController{}, "post:PositionDelete"),
|
|
|
// beego.NSRouter("/add", &controllers.CompanyController{}, "post:PositionAdd"),
|
|
|
// beego.NSRouter("/edit", &controllers.CompanyController{}, "post:PositionEdit"),
|
|
|
// beego.NSRouter("/delete", &controllers.CompanyController{}, "post:PositionDelete"),
|
|
|
),
|
|
|
beego.NSNamespace("/rbac",
|
|
|
beego.NSRouter("/role/add", &controllers.RbacController{}, "post:RoleAdd"),
|
...
|
...
|
@@ -47,15 +47,14 @@ func init() { |
|
|
),
|
|
|
beego.NSNamespace("/user",
|
|
|
beego.NSRouter("/list", &controllers.CompanyController{}, "post:UserList"),
|
|
|
beego.NSRouter("/add", &controllers.CompanyController{}, "post:UserAdd"),
|
|
|
beego.NSRouter("/edit", &controllers.CompanyController{}, "post:UserEdit"),
|
|
|
beego.NSRouter("/delete", &controllers.CompanyController{}, "post:UserDelete"),
|
|
|
beego.NSRouter("/allow_forbid", &controllers.CompanyController{}, "post:UserAllowForbid"),
|
|
|
// beego.NSRouter("/add", &controllers.CompanyController{}, "post:UserAdd"),
|
|
|
// beego.NSRouter("/edit", &controllers.CompanyController{}, "post:UserEdit"),
|
|
|
// beego.NSRouter("/delete", &controllers.CompanyController{}, "post:UserDelete"),
|
|
|
// beego.NSRouter("/allow_forbid", &controllers.CompanyController{}, "post:UserAllowForbid"),
|
|
|
beego.NSRouter("/info", &controllers.CompanyController{}, "post:UserDetail"),
|
|
|
),
|
|
|
beego.NSNamespace("/auth",
|
|
|
beego.NSRouter("/change_company", &controllers.AuthController{}, "post:ChangeCompany"),
|
|
|
//beego.NSRouter("/refresh_token", &controllers.AuthController{}, "post:RefreshToken"),
|
|
|
beego.NSRouter("/me", &controllers.AuthController{}, "post:Me"),
|
|
|
beego.NSRouter("/smscode/check", &controllers.AuthController{}, "post:SmsCodeCheck"),
|
|
|
),
|
...
|
...
|
@@ -145,10 +144,10 @@ func init() { |
|
|
beego.NSRouter("/login", &controllers.AuthController{}, "post:LoginSecretKey"),
|
|
|
beego.NSRouter("/startCaptcha", &controllers.AuthController{}, "post:RegisterGeetest"),
|
|
|
beego.NSRouter("/verifyCaptcha", &controllers.AuthController{}, "post:ValidateGeetest"),
|
|
|
beego.NSRouter("/login_sms", &controllers.AuthController{}, "post:LoginSms"),
|
|
|
beego.NSRouter("/sms_code", &controllers.AuthController{}, "post:SmsCode"),
|
|
|
beego.NSRouter("/sms_code/check", &controllers.AuthController{}, "post:SmsCodeCheck"),
|
|
|
beego.NSRouter("/my/reset_password", &controllers.MyController{}, "post:ResetPassword"),
|
|
|
//beego.NSRouter("/login_sms", &controllers.AuthController{}, "post:LoginSms"),
|
|
|
//beego.NSRouter("/sms_code", &controllers.AuthController{}, "post:SmsCode"),
|
|
|
//beego.NSRouter("/sms_code/check", &controllers.AuthController{}, "post:SmsCodeCheck"),
|
|
|
//beego.NSRouter("/my/reset_password", &controllers.MyController{}, "post:ResetPassword"),
|
|
|
)
|
|
|
nsUcenter := beego.NewNamespace("/ucenter",
|
|
|
beego.NSBefore(middleware.LogRequestData),
|
...
|
...
|
|