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

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