...
|
...
|
@@ -116,3 +116,20 @@ func (c *StaffAssessControllerV2) GetAssessTargetUserSelfInfo() { |
|
|
data, err := srv.GetAssessSelfInfoV2(paramReq)
|
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 获取当前登录员工自评详情
|
|
|
func (c *StaffAssessControllerV2) GetAssessSelfMeInfo() {
|
|
|
srv := service.NewStaffAssessServeice()
|
|
|
paramReq := &query.GetExecutorSelfAssessQuery{}
|
|
|
err := c.BindJSON(paramReq)
|
|
|
if err != nil {
|
|
|
e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error())
|
|
|
c.Response(nil, e)
|
|
|
return
|
|
|
}
|
|
|
userReq := middlewares.GetUser(c.Ctx)
|
|
|
paramReq.CompanyId = int(userReq.CompanyId)
|
|
|
paramReq.TargetUserId = int(userReq.UserId)
|
|
|
data, err := srv.GetAssessSelfInfoV2(paramReq)
|
|
|
c.Response(data, err)
|
|
|
} |
...
|
...
|
|