feat(category): update list filter category

This commit is contained in:
Efril
2026-08-06 21:21:41 +07:00
parent b9ac97178f
commit a7c2d6cbb3
5 changed files with 34 additions and 0 deletions
+3
View File
@@ -94,6 +94,9 @@ func (s *CategoryServiceImpl) ListCategories(ctx context.Context, req *contract.
if req.ParentID != nil {
filters["parent_id"] = *req.ParentID
}
if req.Type != "" {
filters["type"] = req.Type
}
if req.Search != "" {
filters["search"] = req.Search
}