作者 tangxvhui

添加接口

  1 +package domain
  2 +
  3 +import "testing"
  4 +
  5 +func TestGenerateToken(t *testing.T) {
  6 + ut := UserAuth{
  7 + CompanyId: 526,
  8 + UserId: 3330346066045952,
  9 + Phone: "15980201153",
  10 + PlatformId: 29,
  11 + AdminType: 1,
  12 + }
  13 + tk, _ := ut.CreateAccessToken()
  14 + t.Log(tk)
  15 +}
@@ -44,11 +44,12 @@ func init() { @@ -44,11 +44,12 @@ func init() {
44 44
45 assessV2NS := web.NewNamespace("/v2/staff-assess", 45 assessV2NS := web.NewNamespace("/v2/staff-assess",
46 web.NSBefore(filters.AllowCors(), middlewares.CheckFontToken()), 46 web.NSBefore(filters.AllowCors(), middlewares.CheckFontToken()),
47 - web.NSCtrlPost("/me/execute/invite/list", (*controllers.StaffAssessControllerV2).ListMeInviteUserAssess), //我要执行的360评估的用户列表  
48 - web.NSCtrlPost("/me/execute/supper/list", (*controllers.StaffAssessControllerV2).ListMeSupperAssess), //我要执行的360评估的用户列表  
49 - web.NSCtrlPost("/me/invite-user", (*controllers.StaffAssessControllerV2).GetAssessMeInviteUser), //获取邀请的员工  
50 - web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessControllerV2).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情  
51 - web.NSCtrlPost("/self/me/info", (*controllers.StaffAssessControllerV2).GetAssessSelfMeInfo), //获取当前周期里我的自评反馈详情 47 + web.NSCtrlPost("/me/execute/invite/list", (*controllers.StaffAssessControllerV2).ListMeInviteUserAssess), //我要执行的360评估的用户列表
  48 + web.NSCtrlPost("/me/execute/supper/list", (*controllers.StaffAssessControllerV2).ListMeSupperAssess), //我要执行的360评估的用户列表
  49 + web.NSCtrlPost("/me/invite-user", (*controllers.StaffAssessControllerV2).GetAssessMeInviteUser), //获取邀请的员工
  50 + web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessControllerV2).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情
  51 + web.NSCtrlPost("/self/me/info", (*controllers.StaffAssessControllerV2).GetAssessSelfMeInfo), //获取当前周期里我的自评反馈详情
  52 + web.NSCtrlPost("/target-user/invite/list", (*controllers.StaffAssessControllerV2).ListTargetUserInviteAssess), //获取被评估员工360评估的列表
52 ) 53 )
53 54
54 web.AddNamespace(assessTaskNS) 55 web.AddNamespace(assessTaskNS)