summaryrefslogtreecommitdiffstats
path: root/internal/models/x.go
diff options
context:
space:
mode:
authors <[email protected]>2025-11-03 21:17:12 -0500
committers <[email protected]>2025-11-03 21:17:12 -0500
commitf7fcfa623e670dc533bb378912829c73a3593e63 (patch)
tree910119ff7293b407affa9ff34706d627d77a3a04 /internal/models/x.go
downloaddborg-f7fcfa623e670dc533bb378912829c73a3593e63.tar.gz
dborg-f7fcfa623e670dc533bb378912829c73a3593e63.zip
hi
Diffstat (limited to 'internal/models/x.go')
-rw-r--r--internal/models/x.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/internal/models/x.go b/internal/models/x.go
new file mode 100644
index 0000000..f8c7a70
--- /dev/null
+++ b/internal/models/x.go
@@ -0,0 +1,22 @@
+package models
+
+type XResponse struct {
+ Username string `json:"username,omitempty"`
+ PreviousUsernames []UserHistory `json:"previous_usernames,omitempty"`
+
+ Query string `json:"query,omitempty"`
+ Response string `json:"response,omitempty"`
+ Data interface{} `json:"data,omitempty"`
+
+ Credits struct {
+ Remaining int `json:"remaining"`
+ Unlimited bool `json:"unlimited"`
+ } `json:"credits"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}
+
+type UserHistory struct {
+ Username string `json:"username"`
+ TimeAgo string `json:"time_ago"`
+}