Полный продакшен-рефактор 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"`
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
package bo
|
||||
|
||||
type Hysteria2 struct {
|
||||
Name string `yaml:"name"`
|
||||
Type string `yaml:"type"`
|
||||
Server string `yaml:"server"`
|
||||
Port string `yaml:"port"`
|
||||
Ports string `yaml:"ports,omitempty"`
|
||||
Password string `yaml:"password"`
|
||||
Up string `yaml:"up,omitempty"`
|
||||
Down string `yaml:"down,omitempty"`
|
||||
Obfs string `yaml:"obfs,omitempty"`
|
||||
ObfsPassword string `yaml:"obfs-password,omitempty"`
|
||||
Sni string `yaml:"sni,omitempty"`
|
||||
SkipCertVerify bool `yaml:"skip-cert-verify,omitempty"`
|
||||
}
|
||||
|
||||
type ProxyGroup struct {
|
||||
Name string `yaml:"name"`
|
||||
Type string `yaml:"type"`
|
||||
Proxies []string `yaml:"proxies"`
|
||||
}
|
||||
|
||||
type ClashConfig struct {
|
||||
Proxies []interface{} `yaml:"proxies"`
|
||||
ProxyGroups []ProxyGroup `yaml:"proxy-groups"`
|
||||
}
|
||||
Reference in New Issue
Block a user