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
+4
View File
@@ -118,5 +118,9 @@ func (v *CategoryValidatorImpl) ValidateListCategoriesRequest(req *contract.List
}
}
if req.Type != "" && req.Type != "parent" && req.Type != "child" {
return errors.New("type must be either 'parent' or 'child'"), constants.MalformedFieldErrorCode
}
return nil, ""
}