Convert usergroup dates to JSONTime
Matt Whiteley
6 years ago
7 | 7 | |
8 | 8 | // UserGroup contains all the information of a user group |
9 | 9 | type UserGroup struct { |
10 | ID string `json:"id"` | |
11 | TeamID string `json:"team_id"` | |
12 | IsUserGroup bool `json:"is_usergroup"` | |
13 | Name string `json:"name"` | |
14 | Description string `json:"description"` | |
15 | Handle string `json:"handle"` | |
16 | IsExternal bool `json:"is_external"` | |
17 | DateCreate int `json:"date_create"` | |
18 | DateUpdate int `json:"date_update"` | |
19 | DateDelete int `json:"date_delete"` | |
20 | AutoType string `json:"auto_type"` | |
21 | CreatedBy string `json:"created_by"` | |
22 | UpdatedBy string `json:"updated_by"` | |
23 | DeletedBy string `json:"deleted_by"` | |
10 | ID string `json:"id"` | |
11 | TeamID string `json:"team_id"` | |
12 | IsUserGroup bool `json:"is_usergroup"` | |
13 | Name string `json:"name"` | |
14 | Description string `json:"description"` | |
15 | Handle string `json:"handle"` | |
16 | IsExternal bool `json:"is_external"` | |
17 | DateCreate JSONTime `json:"date_create"` | |
18 | DateUpdate JSONTime `json:"date_update"` | |
19 | DateDelete JSONTime `json:"date_delete"` | |
20 | AutoType string `json:"auto_type"` | |
21 | CreatedBy string `json:"created_by"` | |
22 | UpdatedBy string `json:"updated_by"` | |
23 | DeletedBy string `json:"deleted_by"` | |
24 | 24 | Prefs struct { |
25 | 25 | Channels []string `json:"channels"` |
26 | 26 | Groups []string `json:"groups"` |