Add fields for storage space limits
This commit is contained in:
parent
805624bc23
commit
40dcfec170
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user