Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager

This commit is contained in:
Jamie Curnow
2022-05-12 08:47:31 +10:00
parent 4db34f5894
commit 2110ecc382
830 changed files with 38168 additions and 36635 deletions

View File

@ -0,0 +1,8 @@
package model
// Filter is the structure of a field/modifier/value item
type Filter struct {
Field string `json:"field"`
Modifier string `json:"modifier"`
Value []string `json:"value"`
}

View File

@ -0,0 +1,22 @@
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 holds the sorting data
type Sort struct {
Field string `json:"field"`
Direction string `json:"direction"`
}