🎨几乎全部完成

This commit is contained in:
coward
2024-08-12 16:52:28 +08:00
parent 49a851ac92
commit 6af6eec866
8 changed files with 304 additions and 21 deletions

View File

@@ -15,6 +15,7 @@ Table = {{ .Server.Table|html }}
# CreatedAt: {{ .CreatedAt|html }}
# UpdatedAt: {{ .UpdatedAt|html }}
# CreateUser: {{ .CreateUser|html }}
# SyncAt: {{ .SyncAt|html }}
[Peer]
PublicKey = {{ .PublicKey|html }}
PresharedKey = {{ .PresharedKey|html }}

View File

@@ -30,12 +30,13 @@ type Client struct {
PublicKey string `json:"publicKey"`
PresharedKey string `json:"presharedKey"`
AllowedIPS string `json:"allowedIps"`
PersistentKeepalive string `json:"persistentKeepalive"`
PersistentKeepalive int `json:"persistentKeepalive"`
Endpoint string `json:"endpoint"`
CreateUser string `json:"createUser"`
Enabled bool `json:"enabled"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
SyncAt string `json:"syncAt"`
}
type Keys struct {