...
|
...
|
@@ -10,9 +10,9 @@ import ( |
|
|
func init() {
|
|
|
assessTaskNS := web.NewNamespace("/v1/staff-assess-task",
|
|
|
web.NSBefore(filters.AllowCors(), middlewares.CheckFontToken()),
|
|
|
web.NSCtrlPost("/search/me", (*controllers.StaffAssessController).SearchAssessTaskMe), //获取我参与过的评估项目列表
|
|
|
web.NSCtrlPost("/desc/me", (*controllers.StaffAssessController).AssessTaskMeDesc), //获取我的项目评估进度描述
|
|
|
web.NSCtrlPost("/", (*controllers.StaffAssessController).CreateStaffAssessTask), //创建员工的评估任务
|
|
|
web.NSCtrlPost("/search/me", (*controllers.StaffAssessController).SearchAssessTaskMe), //获取我参与过的评估项目列表
|
|
|
web.NSCtrlPost("/desc/me", (*controllers.StaffAssessController).AssessTaskMeDesc), //获取我的项目评估进度描述
|
|
|
//web.NSCtrlPost("/", (*controllers.StaffAssessController).CreateStaffAssessTask), //创建员工的评估任务
|
|
|
web.NSCtrlGet("/cycle", (*controllers.StaffAssessController).ListAssessCycle), //获取周期列表
|
|
|
web.NSCtrlPost("/cycle/day", (*controllers.StaffAssessController).ListAssessCycleDay), //获取周期中的考核日期
|
|
|
web.NSCtrlPost("/cycle/day/content", (*controllers.StaffAssessController).ListAssessContentCycleDay), //根据周期里的考核日期,获取员工填写评估内容列表
|
...
|
...
|
@@ -33,8 +33,24 @@ func init() { |
|
|
web.NSCtrlPost("/target-user/invite/list", (*controllers.StaffAssessController).ListTargetUserInviteAssess), //获取被评估员工360评估的列表
|
|
|
web.NSCtrlPost("/me/target-user/supper/list", (*controllers.StaffAssessController).ListTargetUserMeSupperAssess), //获取我的上级评估的列表
|
|
|
web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessController).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情
|
|
|
)
|
|
|
//v2 改版
|
|
|
assessTaskV2NS := web.NewNamespace("/v2/staff-assess-task",
|
|
|
web.NSBefore(filters.AllowCors(), middlewares.CheckFontToken()),
|
|
|
web.NSCtrlPost("/search/me", (*controllers.StaffAssessControllerV2).SearchAssessTaskMe), //获取我参与过的评估项目列表
|
|
|
web.NSCtrlPost("/desc/me", (*controllers.StaffAssessControllerV2).AssessTaskMeDesc),
|
|
|
)
|
|
|
|
|
|
assessV2NS := web.NewNamespace("/v2/staff-assess",
|
|
|
web.NSBefore(filters.AllowCors(), middlewares.CheckFontToken()),
|
|
|
web.NSCtrlPost("/me/execute/invite/list", (*controllers.StaffAssessControllerV2).ListMeInviteUserAssess), //我要执行的360评估的用户列表
|
|
|
web.NSCtrlPost("/me/execute/supper/list", (*controllers.StaffAssessControllerV2).ListMeSupperAssess), //我要执行的360评估的用户列表
|
|
|
web.NSCtrlPost("/me/invite-user", (*controllers.StaffAssessControllerV2).GetAssessMeInviteUser), //获取邀请的员工
|
|
|
web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessControllerV2).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情
|
|
|
)
|
|
|
|
|
|
web.AddNamespace(assessTaskNS)
|
|
|
web.AddNamespace(assessNS)
|
|
|
web.AddNamespace(assessTaskV2NS)
|
|
|
web.AddNamespace(assessV2NS)
|
|
|
} |
...
|
...
|
|