正在显示
2 个修改的文件
包含
18 行增加
和
0 行删除
@@ -116,3 +116,20 @@ func (c *StaffAssessControllerV2) GetAssessTargetUserSelfInfo() { | @@ -116,3 +116,20 @@ func (c *StaffAssessControllerV2) GetAssessTargetUserSelfInfo() { | ||
116 | data, err := srv.GetAssessSelfInfoV2(paramReq) | 116 | data, err := srv.GetAssessSelfInfoV2(paramReq) |
117 | c.Response(data, err) | 117 | c.Response(data, err) |
118 | } | 118 | } |
119 | + | ||
120 | +// 获取当前登录员工自评详情 | ||
121 | +func (c *StaffAssessControllerV2) GetAssessSelfMeInfo() { | ||
122 | + srv := service.NewStaffAssessServeice() | ||
123 | + paramReq := &query.GetExecutorSelfAssessQuery{} | ||
124 | + err := c.BindJSON(paramReq) | ||
125 | + if err != nil { | ||
126 | + e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error()) | ||
127 | + c.Response(nil, e) | ||
128 | + return | ||
129 | + } | ||
130 | + userReq := middlewares.GetUser(c.Ctx) | ||
131 | + paramReq.CompanyId = int(userReq.CompanyId) | ||
132 | + paramReq.TargetUserId = int(userReq.UserId) | ||
133 | + data, err := srv.GetAssessSelfInfoV2(paramReq) | ||
134 | + c.Response(data, err) | ||
135 | +} |
@@ -47,6 +47,7 @@ func init() { | @@ -47,6 +47,7 @@ func init() { | ||
47 | web.NSCtrlPost("/me/execute/supper/list", (*controllers.StaffAssessControllerV2).ListMeSupperAssess), //我要执行的360评估的用户列表 | 47 | web.NSCtrlPost("/me/execute/supper/list", (*controllers.StaffAssessControllerV2).ListMeSupperAssess), //我要执行的360评估的用户列表 |
48 | web.NSCtrlPost("/me/invite-user", (*controllers.StaffAssessControllerV2).GetAssessMeInviteUser), //获取邀请的员工 | 48 | web.NSCtrlPost("/me/invite-user", (*controllers.StaffAssessControllerV2).GetAssessMeInviteUser), //获取邀请的员工 |
49 | web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessControllerV2).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情 | 49 | web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessControllerV2).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情 |
50 | + web.NSCtrlPost("/self/me/info", (*controllers.StaffAssessControllerV2).GetAssessSelfMeInfo), //获取当前周期里我的自评反馈详情 | ||
50 | ) | 51 | ) |
51 | 52 | ||
52 | web.AddNamespace(assessTaskNS) | 53 | web.AddNamespace(assessTaskNS) |
-
请 注册 或 登录 后发表评论