26 lines
902 B
Go
26 lines
902 B
Go
package bo
|
|
|
|
type AccountBo struct {
|
|
Id int64 `json:"id"`
|
|
Username string `json:"username"`
|
|
Roles []string `json:"roles"`
|
|
Deleted int64 `json:"deleted"`
|
|
TokenVersion int64 `json:"tokenVersion"`
|
|
}
|
|
|
|
type PeerExport struct {
|
|
Id int64 `json:"id,omitempty"`
|
|
AuthId string `json:"authId,omitempty"`
|
|
Name string `json:"name"`
|
|
Remark string `json:"remark"`
|
|
Secret string `json:"secret,omitempty"`
|
|
QuotaBytes int64 `json:"quotaBytes"`
|
|
DownloadBytes int64 `json:"downloadBytes,omitempty"`
|
|
UploadBytes int64 `json:"uploadBytes,omitempty"`
|
|
ExpiresAt int64 `json:"expiresAt"`
|
|
MaxDevices int64 `json:"maxDevices"`
|
|
Disabled int64 `json:"disabled"`
|
|
BannedUntil int64 `json:"bannedUntil,omitempty"`
|
|
LastConnectionAt int64 `json:"lastConnectionAt,omitempty"`
|
|
}
|