Convert db backend to use Gorm, with basis for support

for Mysql and Postgres in addition to existing Sqlite
This commit is contained in:
Jamie Curnow committed 2023-05-26 11:37:39 +10:00
1 parent b4e5b8b6db
commit 29990110b1
93 files changed
+1215 -3075

No files matched your search

+4 -10
View File
@@ -1,18 +1,12 @@
package model
import (
"time"
)
// PageInfo is the model used by Api Handlers and passed on to other parts
// of the application
type PageInfo struct {
FromDate time.Time `json:"from_date"`
ToDate time.Time `json:"to_date"`
Sort []Sort `json:"sort"`
Offset int `json:"offset"`
Limit int `json:"limit"`
Expand []string `json:"expand"`
Sort []Sort `json:"sort"`
Offset int `json:"offset"`
Limit int `json:"limit"`
Expand []string `json:"expand"`
}
// Sort holds the sorting data