Skip to content

Commit

Permalink
change user feature changed event struct (#2724)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas authored Apr 8, 2022
1 parent 3cb849a commit b09ab7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog/unreleased/user-group-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Enhancement: Add definitions for user and group events
Enhance the events package with definitions for user and group events.

https://github.com/cs3org/reva/pull/2717
https://github.com/cs3org/reva/pull/2724
11 changes: 8 additions & 3 deletions pkg/events/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ func (UserDeleted) Unmarshal(v []byte) (interface{}, error) {
return e, err
}

// UserFeature represents a user feature
type UserFeature struct {
Name string
Value string
}

// UserFeatureChanged is emitted when a user feature was changed
type UserFeatureChanged struct {
UserID string
Feature string
Value string
UserID string
Features []UserFeature
}

// Unmarshal to fulfill umarshaller interface
Expand Down

0 comments on commit b09ab7f

Please sign in to comment.