diff options
| author | sinner <[email protected]> | 2026-04-08 13:47:51 -0400 |
|---|---|---|
| committer | sinner <[email protected]> | 2026-04-08 13:47:51 -0400 |
| commit | 6c8beb133073ebb3b6d8bb16e852b29dbc23f133 (patch) | |
| tree | 1410c127c20ae9ec304221af9ad685fe35935fee /internal/models | |
| parent | 850cc065469d2efaefc7947dcb7a6b79e9da1858 (diff) | |
| download | dborg-6c8beb133073ebb3b6d8bb16e852b29dbc23f133.tar.gz dborg-6c8beb133073ebb3b6d8bb16e852b29dbc23f133.zip | |
feat: add admin edit command for updating account properties
Diffstat (limited to 'internal/models')
| -rw-r--r-- | internal/models/admin.go | 7 |
1 files changed, 5 insertions, 2 deletions
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 { |
