Add fields for storage space limits

This commit is contained in:
Wim Brand 2021-09-07 17:09:00 +02:00
parent 805624bc23
commit 40dcfec170
2 changed files with 6 additions and 4 deletions

View File

@ -31,6 +31,7 @@ type SubscriptionType struct {
FileSizeLimit int64 `json:"file_size_limit"` FileSizeLimit int64 `json:"file_size_limit"`
FileExpiryDays int `json:"file_expiry_days"` FileExpiryDays int `json:"file_expiry_days"`
DirectLinkingBandwidth int64 `json:"direct_linking_bandwidth"` DirectLinkingBandwidth int64 `json:"direct_linking_bandwidth"`
StorageSpace int64 `json:"storage_space"`
} }
// GetSubscriptionID returns the subscription object identified by the given ID // GetSubscriptionID returns the subscription object identified by the given ID

View File

@ -10,10 +10,11 @@ import (
// UserInfo contains information about the logged in user // UserInfo contains information about the logged in user
type UserInfo struct { type UserInfo struct {
Username string `json:"username"` Username string `json:"username"`
Email string `json:"email"` Email string `json:"email"`
Subscription SubscriptionType `json:"subscription"` Subscription SubscriptionType `json:"subscription"`
IsAdmin bool `json:"is_admin"` StorageSpaceUsed int64 `json:"storage_space_used"`
IsAdmin bool `json:"is_admin"`
} }
// UserSession is one user session // UserSession is one user session