Skip to content

Commit

Permalink
Add timestamp filter for \nodes endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 committed Feb 2, 2025
1 parent b8e4e46 commit f123ad6
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 118 deletions.
225 changes: 118 additions & 107 deletions drip/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions entity/node.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package entity

import "registry-backend/ent"
import (
"registry-backend/ent"
"time"
)

// NodeFilter holds optional parameters for filtering node results
type NodeFilter struct {
PublisherID string
Search string
IncludeBanned bool
IncludeBanned *bool
Timestamp *time.Time
}

// ListNodesResult is the structure that holds the paginated result of nodes
Expand Down
Loading

0 comments on commit f123ad6

Please sign in to comment.