Add support for IP on User

This commit is contained in:
Paul Tyng
2020-02-18 15:28:39 -05:00
parent 3fb1d0badb
commit 19709dff50
3 changed files with 13 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ type User struct {
Note string `json:"note,omitempty"`
UseFixedIP bool `json:"use_fixedip"`
UserGroupID string `json:"usergroup_id"`
// non-generated fields
IP string `json:"ip,omitempty"`
}
func (c *Client) listUser(site string) ([]User, error) {