From 6c8beb133073ebb3b6d8bb16e852b29dbc23f133 Mon Sep 17 00:00:00 2001 From: sinner Date: Wed, 8 Apr 2026 13:47:51 -0400 Subject: feat: add admin edit command for updating account properties --- internal/models/admin.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/models') diff --git a/internal/models/admin.go b/internal/models/admin.go index ee551f3..7d774a8 100644 --- a/internal/models/admin.go +++ b/internal/models/admin.go @@ -21,8 +21,11 @@ type AccountCreateRequest struct { } type AccountUpdateRequest struct { - Credits int `json:"credits,omitempty"` - Disabled bool `json:"disabled"` + Name *string `json:"name,omitempty"` + Credits *int `json:"credits,omitempty"` + Unlimited *bool `json:"unlimited,omitempty"` + IsPremium *bool `json:"is_premium,omitempty"` + Disabled *bool `json:"disabled,omitempty"` } type AddCreditsRequest struct { -- cgit v1.2.3