[create-pull-request] automated change (#90)

Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-08-10 11:06:46 +10:00
committed by GitHub
parent adcc9a2556
commit 8f0bac78f6
8 changed files with 277 additions and 184 deletions

View File

@@ -28,18 +28,20 @@ type User struct {
DevIdOverride int `json:"dev_id_override,omitempty"` // non-generated field
IP string `json:"ip,omitempty"` // non-generated field
Blocked bool `json:"blocked,omitempty"`
FixedApEnabled bool `json:"fixed_ap_enabled"`
FixedApMAC string `json:"fixed_ap_mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
FixedIP string `json:"fixed_ip,omitempty"`
Hostname string `json:"hostname,omitempty"`
LastSeen int `json:"last_seen,omitempty"`
MAC string `json:"mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
Name string `json:"name,omitempty"`
NetworkID string `json:"network_id"`
Note string `json:"note,omitempty"`
UseFixedIP bool `json:"use_fixedip"`
UserGroupID string `json:"usergroup_id"`
Blocked bool `json:"blocked,omitempty"`
FixedApEnabled bool `json:"fixed_ap_enabled"`
FixedApMAC string `json:"fixed_ap_mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
FixedIP string `json:"fixed_ip,omitempty"`
Hostname string `json:"hostname,omitempty"`
LastSeen int `json:"last_seen,omitempty"`
LocalDNSRecord string `json:"local_dns_record,omitempty"`
LocalDNSRecordEnabled bool `json:"local_dns_record_enabled"`
MAC string `json:"mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
Name string `json:"name,omitempty"`
NetworkID string `json:"network_id"`
Note string `json:"note,omitempty"`
UseFixedIP bool `json:"use_fixedip"`
UserGroupID string `json:"usergroup_id"`
}
func (dst *User) UnmarshalJSON(b []byte) error {