feat: update ppid data categories

This commit is contained in:
hanif salafi 2024-05-17 10:10:23 +07:00
parent 74bf64bbd7
commit ae3a6653ac
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ func (_i *ppidDataCategoriesService) All(req request.PpidDataCategoriesQueryRequ
} }
for _, result := range results { for _, result := range results {
ppidDataCategories = append(ppidDataCategories, mapper.PpidDataCategoriesResponseMapper(result, nil)) req := request.PpidDataCategoriesQueryRequest{
ParentId: &result.ID,
}
subResult, _, _ := _i.Repo.GetAllNonPage(req)
ppidDataCategories = append(ppidDataCategories, mapper.PpidDataCategoriesResponseMapper(result, subResult))
} }
return return