Полный продакшен-рефактор fix25: split peer/admin, удаление legacy, шифрование secret, auth_id, новые API/роуты и зачистка subscription
This commit is contained in:
@@ -3,10 +3,11 @@ package bo
|
||||
import "time"
|
||||
|
||||
type AccountBo struct {
|
||||
Id int64 `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Roles []string `json:"roles"`
|
||||
Deleted int64 `json:"deleted"`
|
||||
Id int64 `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Roles []string `json:"roles"`
|
||||
Deleted int64 `json:"deleted"`
|
||||
TokenVersion int64 `json:"tokenVersion"`
|
||||
}
|
||||
|
||||
type AccountExport struct {
|
||||
@@ -28,3 +29,18 @@ type AccountExport struct {
|
||||
ConAt int64 `json:"conAt"`
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
type PeerExport struct {
|
||||
Id int64 `json:"id,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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user