mirror of
https://github.com/hanzoui/registry-backend.git
synced 2026-10-30 20:30:45 +00:00
25 lines
596 B
Go
25 lines
596 B
Go
package entity
|
|
|
|
import (
|
|
"registry-backend/ent"
|
|
"registry-backend/ent/schema"
|
|
"time"
|
|
)
|
|
|
|
type NodeVersionFilter struct {
|
|
NodeId string
|
|
Status []schema.NodeVersionStatus
|
|
IncludeStatusReason bool
|
|
MinAge time.Duration
|
|
PageSize int
|
|
Page int
|
|
}
|
|
|
|
type ListNodeVersionsResult struct {
|
|
Total int `json:"total"`
|
|
NodeVersions []*ent.NodeVersion `json:"nodes"`
|
|
Page int `json:"page"`
|
|
Limit int `json:"limit"`
|
|
TotalPages int `json:"totalPages"`
|
|
}
|