summaryrefslogtreecommitdiffstats
path: root/internal/models/admin.go
diff options
context:
space:
mode:
authors <[email protected]>2025-11-16 02:40:58 -0500
committers <[email protected]>2025-11-16 02:40:58 -0500
commit76d0cff639988ca506b1dc6e848841944c96b263 (patch)
treeb841dce1980bdb50d9f0c8f96d649a53a1778029 /internal/models/admin.go
parentf4c58dfee401431c37e853643d0188cd020f66d7 (diff)
downloaddborg-76d0cff639988ca506b1dc6e848841944c96b263.tar.gz
dborg-76d0cff639988ca506b1dc6e848841944c96b263.zip
docs: add comprehensive api endpoints documentation and expand cli functionalityv1.0.3
Diffstat (limited to 'internal/models/admin.go')
-rw-r--r--internal/models/admin.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/models/admin.go b/internal/models/admin.go
index 22dee9b..852e80f 100644
--- a/internal/models/admin.go
+++ b/internal/models/admin.go
@@ -36,6 +36,16 @@ type DisableAccountRequest struct {
Disabled bool `json:"disabled"`
}
+type AccountStatsResponse struct {
+ Success bool `json:"success,omitempty"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+ Account *Account `json:"account,omitempty"`
+ UsageStats map[string]int `json:"usage_stats,omitempty"`
+ TotalRequests int `json:"total_requests,omitempty"`
+ CreditsUsed int `json:"credits_used,omitempty"`
+}
+
type AdminResponse struct {
Success bool `json:"success,omitempty"`
Message string `json:"message,omitempty"`