作者 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 +}
@@ -49,6 +49,7 @@ func init() { @@ -49,6 +49,7 @@ func init() {
49 web.NSCtrlPost("/me/invite-user", (*controllers.StaffAssessControllerV2).GetAssessMeInviteUser), //获取邀请的员工 49 web.NSCtrlPost("/me/invite-user", (*controllers.StaffAssessControllerV2).GetAssessMeInviteUser), //获取邀请的员工
50 web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessControllerV2).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情 50 web.NSCtrlPost("/target-user/self/info", (*controllers.StaffAssessControllerV2).GetAssessTargetUserSelfInfo), //获取被评估员工的自评反馈详情
51 web.NSCtrlPost("/self/me/info", (*controllers.StaffAssessControllerV2).GetAssessSelfMeInfo), //获取当前周期里我的自评反馈详情 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)