Skip to content

Commit

Permalink
changed the feedback api
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 23, 2023
1 parent 2d2826f commit 6b49b50
Show file tree
Hide file tree
Showing 11 changed files with 1,177 additions and 995 deletions.
1,317 changes: 645 additions & 672 deletions server/api/tumdev/campus_backend.pb.go

Large diffs are not rendered by default.

201 changes: 34 additions & 167 deletions server/api/tumdev/campus_backend.pb.gw.go

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

55 changes: 30 additions & 25 deletions server/api/tumdev/campus_backend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,11 @@ service Campus {
option (google.api.http) = {get: "/movies/{last_id}"};
}

rpc SendFeedback(SendFeedbackRequest) returns (SendFeedbackReply) {
option (google.api.http) = {post: "/feedback"};
}

rpc SendFeedbackImage(SendFeedbackImageRequest) returns (SendFeedbackImageReply) {
option (google.api.http) = {post: "/feedback/{id}/{image_nr}"};
rpc SendFeedback(stream SendFeedbackRequest) returns (SendFeedbackReply) {
option (google.api.http) = {
post: "/feedback",
body: "attachment",
};
}

rpc GetUploadStatus(GetUploadStatusRequest) returns (GetUploadStatusReply) {
Expand Down Expand Up @@ -538,29 +537,35 @@ message Movie {
string link = 16;
}

message SendFeedbackReply {}
message SendFeedbackRequest {
string topic = 1;
string email = 2;
string email_id = 3;
string message = 4;
int32 image_count = 5;
double latitude = 6;
double longitude = 7;
string os_version = 8;
string app_version = 9;
}

message SendFeedbackImageReply {
string status = 1;
}
message Metadata {
double latitude = 1;
double longitude = 2;
string osVersion = 3;
string appVersion = 4;
}

message SendFeedbackImageRequest {
int32 id = 1;
int32 image_nr = 2;
//todo where does the file come from?
enum Recipient {
// Feedback for the TUM Dev Team
TUM_DEV = 0;
// Feedback for the general TUM Contact Form
TUM_CONTACT = 1;
}

// who is the feedback for
Recipient recipient = 1;
// the email address of the user
string from_email = 2;
// The actual message
string message = 3;
// Optional metadata which the user can choose to attach or not
Metadata metadata = 4;
// Optional file in Base64
bytes attachment = 5;
}

message SendFeedbackReply {}

message GetMembersRequest {
string lrz_id = 1;
}
Expand Down
Loading

0 comments on commit 6b49b50

Please sign in to comment.