Run go generate
This commit is contained in:
24
unifi/user.generated.go
generated
24
unifi/user.generated.go
generated
@@ -25,19 +25,19 @@ type User struct {
|
|||||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||||
|
|
||||||
IP string `json:"ip,omitempty"` // non-generated field
|
|
||||||
|
|
||||||
Blocked bool `json:"blocked,omitempty"`
|
|
||||||
DevIdOverride int `json:"dev_id_override,omitempty"` // non-generated field
|
DevIdOverride int `json:"dev_id_override,omitempty"` // non-generated field
|
||||||
FixedIP string `json:"fixed_ip,omitempty"`
|
IP string `json:"ip,omitempty"` // non-generated field
|
||||||
Hostname string `json:"hostname,omitempty"`
|
|
||||||
LastSeen int `json:"last_seen,omitempty"`
|
Blocked bool `json:"blocked,omitempty"`
|
||||||
MAC string `json:"mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
FixedIP string `json:"fixed_ip,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Hostname string `json:"hostname,omitempty"`
|
||||||
NetworkID string `json:"network_id"`
|
LastSeen int `json:"last_seen,omitempty"`
|
||||||
Note string `json:"note,omitempty"`
|
MAC string `json:"mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||||
UseFixedIP bool `json:"use_fixedip"`
|
Name string `json:"name,omitempty"`
|
||||||
UserGroupID string `json:"usergroup_id"`
|
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 {
|
func (dst *User) UnmarshalJSON(b []byte) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user