diff options
| author | s <[email protected]> | 2025-11-16 02:40:58 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-16 02:40:58 -0500 |
| commit | 76d0cff639988ca506b1dc6e848841944c96b263 (patch) | |
| tree | b841dce1980bdb50d9f0c8f96d649a53a1778029 /internal/models | |
| parent | f4c58dfee401431c37e853643d0188cd020f66d7 (diff) | |
| download | dborg-1.0.3.tar.gz dborg-1.0.3.zip | |
docs: add comprehensive api endpoints documentation and expand cli functionalityv1.0.3
Diffstat (limited to 'internal/models')
| -rw-r--r-- | internal/models/admin.go | 10 | ||||
| -rw-r--r-- | internal/models/github.go | 14 |
2 files changed, 24 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"` diff --git a/internal/models/github.go b/internal/models/github.go new file mode 100644 index 0000000..722cbb8 --- /dev/null +++ b/internal/models/github.go @@ -0,0 +1,14 @@ +package models + +type GitHubLeadResult struct { + Repository string `json:"repository"` + Author string `json:"author"` + Email string `json:"email"` + Commit string `json:"commit"` + Date string `json:"date"` + Message string `json:"message"` +} + +type GitHubLeadsStreamResponse struct { + Lead GitHubLeadResult `json:"lead"` +} |
