Skip to content

Commit

Permalink
Expose usergroup created_at and updated_at fields to usergrouplist re…
Browse files Browse the repository at this point in the history
…sponse
  • Loading branch information
auggod committed Dec 8, 2021
1 parent 333e534 commit 0cdd38a
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 81 deletions.
2 changes: 1 addition & 1 deletion proto/user/address.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/user/user.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

174 changes: 97 additions & 77 deletions proto/user/usergroup_messages.pb.go

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion proto/user/usergroup_messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ message UserGroupPrivateResponse {
//repeated RelatedUserGroup recommended_artists = 15;
//map<string, string> publisher = 16;
//map<string, string> pro = 17;
string group_email = 18;
string group_email = 9;
string created_at = 10;
string updated_at = 11;
}

message UserGroupListResponse {
Expand Down
2 changes: 2 additions & 0 deletions server/usergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ func (s *Server) ListUsersUserGroups(ctx context.Context, user *pbUser.UserReque
result.Avatar = uuid.UUID.String(usergroup.Avatar)
result.Banner = uuid.UUID.String(usergroup.Banner)
result.GroupEmail = usergroup.GroupEmail
result.CreatedAt = usergroup.CreatedAt.UTC().String()
result.UpdatedAt = usergroup.UpdatedAt.UTC().String()

results.Usergroup = append(results.Usergroup, &result)
}
Expand Down
2 changes: 1 addition & 1 deletion statik/statik.go

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions third_party/OpenAPI/user/user.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,12 @@
"groupEmail": {
"type": "string",
"title": "repeated string followers = 9;\nrepeated string members = 10;\nrepeated string memberOfGroups = 11;\nrepeated string links = 12;\nrepeated string tags = 13;\n StreetAddress address = 13;\nPrivacy privacy = 14;\nrepeated RelatedUserGroup recommended_artists = 15;\nmap\u003cstring, string\u003e publisher = 16;\nmap\u003cstring, string\u003e pro = 17;"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
Expand Down

0 comments on commit 0cdd38a

Please sign in to comment.