change page-no-limit into bool and remove debug mode

This commit is contained in:
dpurbosakti
2025-10-08 12:57:51 +07:00
parent 983a68d906
commit bd7ff974b1
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
package core
type Pagination struct {
PageNumber int `json:"page-number"`
PageSize int `json:"page-size"`
PageNoLimit int `json:"page-no-limit"`
PageNumber int `json:"page-number"`
PageSize int `json:"page-size"`
PageNoLimit bool `json:"page-no-limit"`
}
@@ -55,7 +55,7 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.Me
tx = plh.SearchCodeOrName(input.Search, tx)
tx = tx.Debug().
tx = tx.
Model(&e.Medicine{}).
Scopes(gh.Filter(input.FilterDto)).
Count(&count).
@@ -55,7 +55,7 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.Pr
tx = plh.SearchCodeOrName(input.Search, tx)
tx = tx.Debug().
tx = tx.
Model(&e.Province{}).
Scopes(gh.Filter(input.FilterDto)).
Count(&count).