...
|
...
|
@@ -9,266 +9,266 @@ func init() { |
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:AuthController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "AccessToken",
|
|
|
Router: `/accessToken`,
|
|
|
Method: "AccessToken",
|
|
|
Router: `/accessToken`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:AuthController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Login",
|
|
|
Router: `/login`,
|
|
|
Method: "Login",
|
|
|
Router: `/login`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:AuthController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "RefreshToken",
|
|
|
Router: `/refreshToken`,
|
|
|
Method: "RefreshToken",
|
|
|
Router: `/refreshToken`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:AuthController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Revoke",
|
|
|
Router: `/revoke`,
|
|
|
Method: "Revoke",
|
|
|
Router: `/revoke`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:AuthController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "SmsCode",
|
|
|
Router: `/smsCode`,
|
|
|
Method: "SmsCode",
|
|
|
Router: `/smsCode`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:AuthController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:AuthController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "UpdateDevice",
|
|
|
Router: `/updateDevice`,
|
|
|
Method: "UpdateDevice",
|
|
|
Router: `/updateDevice`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "ChanceType",
|
|
|
Router: `/chanceType`,
|
|
|
Method: "ChanceType",
|
|
|
Router: `/chanceType`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "CommentDetailsMulti",
|
|
|
Router: `/commentDetailsMulti`,
|
|
|
Method: "CommentDetailsMulti",
|
|
|
Router: `/commentDetailsMulti`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "CommentDetailsSingle",
|
|
|
Router: `/commentDetailsSingle`,
|
|
|
Method: "CommentDetailsSingle",
|
|
|
Router: `/commentDetailsSingle`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Comments",
|
|
|
Router: `/comments`,
|
|
|
Method: "Comments",
|
|
|
Router: `/comments`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Favorite",
|
|
|
Router: `/favorite`,
|
|
|
Method: "Favorite",
|
|
|
Router: `/favorite`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "IComment",
|
|
|
Router: `/iComment`,
|
|
|
Method: "IComment",
|
|
|
Router: `/iComment`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "IComments",
|
|
|
Router: `/iComments`,
|
|
|
Method: "IComments",
|
|
|
Router: `/iComments`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "ChanceSubmit",
|
|
|
Router: `/submit`,
|
|
|
Method: "ChanceSubmit",
|
|
|
Router: `/submit`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "SympathyAction",
|
|
|
Router: `/sympathyAction`,
|
|
|
Method: "SympathyAction",
|
|
|
Router: `/sympathyAction`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:ChanceController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Templates",
|
|
|
Router: `/templates`,
|
|
|
Method: "Templates",
|
|
|
Router: `/templates`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:CommendController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:CommendController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Company",
|
|
|
Router: `/company`,
|
|
|
Method: "Company",
|
|
|
Router: `/company`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:DepartmentController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:DepartmentController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Departments",
|
|
|
Router: `/departments`,
|
|
|
Method: "Departments",
|
|
|
Router: `/departments`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:MessageController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:MessageController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "MessageCenter",
|
|
|
Router: `/messageCenter`,
|
|
|
Method: "MessageCenter",
|
|
|
Router: `/messageCenter`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:MessageController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:MessageController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "MsgCenterAllRead",
|
|
|
Router: `/msgCenterAllRead`,
|
|
|
Method: "MsgCenterAllRead",
|
|
|
Router: `/msgCenterAllRead`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:MessageController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:MessageController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "MsgCenterRead",
|
|
|
Router: `/msgCenterRead`,
|
|
|
Method: "MsgCenterRead",
|
|
|
Router: `/msgCenterRead`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:MessageController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:MessageController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "MsgInteractive",
|
|
|
Router: `/msgInteractive`,
|
|
|
Method: "MsgInteractive",
|
|
|
Router: `/msgInteractive`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UcenterController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UcenterController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "UCenterLogin",
|
|
|
Router: `/login`,
|
|
|
Method: "UCenterLogin",
|
|
|
Router: `/login`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UploadController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UploadController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Image",
|
|
|
Router: `/image`,
|
|
|
Method: "Image",
|
|
|
Router: `/image`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UploadController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UploadController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Video",
|
|
|
Router: `/video`,
|
|
|
Method: "Video",
|
|
|
Router: `/video`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UploadController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UploadController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "Voice",
|
|
|
Router: `/voice`,
|
|
|
Method: "Voice",
|
|
|
Router: `/voice`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UserController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "ChangePassword",
|
|
|
Router: `/changePassword`,
|
|
|
Method: "ChangePassword",
|
|
|
Router: `/changePassword`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UserController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "ChangePhone",
|
|
|
Router: `/changePhone`,
|
|
|
Method: "ChangePhone",
|
|
|
Router: `/changePhone`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UserController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "CheckSmsCode",
|
|
|
Router: `/checkSmsCode`,
|
|
|
Method: "CheckSmsCode",
|
|
|
Router: `/checkSmsCode`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UserController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "ResetPassword",
|
|
|
Router: `/resetPassword`,
|
|
|
Method: "ResetPassword",
|
|
|
Router: `/resetPassword`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UserController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "SwitchCompany",
|
|
|
Router: `/switchCompany`,
|
|
|
Method: "SwitchCompany",
|
|
|
Router: `/switchCompany`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UserController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "UserCompanys",
|
|
|
Router: `/userCompanys`,
|
|
|
Method: "UserCompanys",
|
|
|
Router: `/userCompanys`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
beego.GlobalControllerRouter["opp/controllers/v1:UserController"] = append(beego.GlobalControllerRouter["opp/controllers/v1:UserController"],
|
|
|
beego.ControllerComments{
|
|
|
Method: "UserInfo",
|
|
|
Router: `/userInfo`,
|
|
|
Method: "UserInfo",
|
|
|
Router: `/userInfo`,
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
MethodParams: param.Make(),
|
|
|
Params: nil})
|
|
|
|
|
|
} |
...
|
...
|
|