| 21 | } |
| 22 | |
| 23 | type GroupSyncable struct { |
| 24 | GroupId string `json:"group_id"` |
| 25 | |
| 26 | // SyncableId represents the Id of the model that is being synced with the group, for example a ChannelId or |
| 27 | // TeamId. |
| 28 | SyncableId string `db:"-" json:"-"` |
| 29 | |
| 30 | AutoAdd bool `json:"auto_add"` |
| 31 | SchemeAdmin bool `json:"scheme_admin"` |
| 32 | CreateAt int64 `json:"create_at"` |
| 33 | DeleteAt int64 `json:"delete_at"` |
| 34 | UpdateAt int64 `json:"update_at"` |
| 35 | Type GroupSyncableType `db:"-" json:"-"` |
| 36 | |
| 37 | // Values joined in from the associated team and/or channel |
| 38 | ChannelDisplayName string `db:"-" json:"-"` |
| 39 | TeamDisplayName string `db:"-" json:"-"` |
| 40 | TeamType string `db:"-" json:"-"` |
| 41 | ChannelType string `db:"-" json:"-"` |
| 42 | TeamID string `db:"-" json:"-"` |
| 43 | } |
| 44 | |
| 45 | func (syncable *GroupSyncable) Auditable() map[string]any { |
| 46 | return map[string]any{ |
nothing calls this directly
no outgoing calls
no test coverage detected