mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 21:28:15 -05:00
29990110b1
for Mysql and Postgres in addition to existing Sqlite
17 lines
389 B
Go
17 lines
389 B
Go
package model
|
|
|
|
// PageInfo is the model used by Api Handlers and passed on to other parts
|
|
// of the application
|
|
type PageInfo struct {
|
|
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"`
|
|
}
|