fix: sorting

This commit is contained in:
2025-03-15 18:16:00 +07:00
parent d33e251c7a
commit 8924c68005
15 changed files with 129 additions and 29 deletions

View File

@@ -60,6 +60,6 @@ func (service *PostTypeService) Count() (int64, error) {
return amount, err
}
func (service *PostTypeService) SortedByOrder(fieldsSortOrder map[string]string) ([]*PostType, error) {
func (service *PostTypeService) SortedByOrder(fieldsSortOrder []utils.SortField) ([]*PostType, error) {
return utils.SortByOrder(fieldsSortOrder, PostType{})
}