|
@@ -36,7 +36,7 @@ func (l *GetEmployeeByIdLogic) GetEmployeeById(req *types.IDReq) (*types.Employe
|
|
|
return nil, dberrorhandler.DefaultEntError(l.Logger, err, req)
|
|
|
}
|
|
|
|
|
|
- workExperience := make([]types.WorkExperienceInfo, 0)
|
|
|
+ workExperience := make([]types.WorkExperienceInfo, 0, len(data.Edges.EmWorkExperiences))
|
|
|
for _, work := range data.Edges.EmWorkExperiences {
|
|
|
workExperience = append(workExperience, types.WorkExperienceInfo{
|
|
|
BaseIDInfo: types.BaseIDInfo{
|
|
@@ -54,7 +54,7 @@ func (l *GetEmployeeByIdLogic) GetEmployeeById(req *types.IDReq) (*types.Employe
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- tutorial := make([]types.TutorialInfo, 0)
|
|
|
+ tutorial := make([]types.TutorialInfo, 0, len(data.Edges.EmTutorial))
|
|
|
for _, tt := range data.Edges.EmTutorial {
|
|
|
tutorial = append(tutorial, types.TutorialInfo{
|
|
|
BaseIDInfo: types.BaseIDInfo{
|