change page-no-limit into bool and remove debug mode
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user