Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Nov 18, 2024
1 parent 0a89bb5 commit d332a58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions providers/dns/rainyun/internal/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ type APIResponse[T any] struct {
Data *Data[T] `json:"data"`
}

// TODO(ldez) based on the API style, this structure is probably wrong.

type Data[T any] struct {
TotalRecords int `json:"TotalRecords"` // TODO(ldez) based on the API style, the JSON name is probably wrong.
Records []T `json:"Records"` // TODO(ldez) based on the API style, the JSON name is probably wrong.
TotalRecords int `json:"TotalRecords"`
Records []T `json:"Records"`
}

0 comments on commit d332a58

Please sign in to comment.