Small tweaks

This commit is contained in:
Jamie Curnow
2023-07-19 11:52:47 +10:00
parent ed609f0bec
commit 824a22efad
5 changed files with 6 additions and 29 deletions

View File

@ -15,7 +15,7 @@ type Sort struct {
Direction string `json:"direction"`
}
// TableName overrides the table name used by gorm
// GetSort ...
func (p *PageInfo) GetSort(def Sort) []Sort {
if p.Sort == nil {
return []Sort{def}