diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/models/admin.go | 2 | ||||
| -rw-r--r-- | internal/models/osint.go | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/models/admin.go b/internal/models/admin.go index 5cf0f37..22dee9b 100644 --- a/internal/models/admin.go +++ b/internal/models/admin.go @@ -1,12 +1,14 @@ package models type Account struct { + ID int `json:"id"` APIKey string `json:"api_key"` Name string `json:"name"` Credits int `json:"credits"` Unlimited bool `json:"unlimited"` Disabled bool `json:"disabled"` IsPremium bool `json:"is_premium"` + IsAdmin bool `json:"is_admin"` CreatedAt interface{} `json:"created_at,omitempty"` } diff --git a/internal/models/osint.go b/internal/models/osint.go index d025836..6c2774e 100644 --- a/internal/models/osint.go +++ b/internal/models/osint.go @@ -72,8 +72,8 @@ type ShortlinksSearchParams struct { } type CreditsInfo struct { - Used int `json:"used"` - Remaining int `json:"remaining"` + Remaining int `json:"remaining"` + Unlimited bool `json:"unlimited"` } type BucketsSearchResponse struct { |
