Add dev_id_override to user

This commit is contained in:
Joshua Spence
2021-06-16 16:02:24 +10:00
committed by Paul Tyng
parent dd685c0447
commit 2f7eee3a6a
3 changed files with 40 additions and 10 deletions

View File

@@ -27,16 +27,17 @@ type User struct {
IP string `json:"ip,omitempty"` // non-generated field
Blocked bool `json:"blocked,omitempty"`
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"`
DevIdOverride int `json:"dev_id_override,omitempty"` // non-generated field
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"`
}
func (dst *User) UnmarshalJSON(b []byte) error {