Skip to content

Commit

Permalink
feat: id to string
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoo0515 committed Feb 17, 2024
1 parent ac0c7dc commit 7d682c2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions proto/feedback.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ syntax = "proto3";
package proto;

message PronunciationFeedbackDTO {
int32 sentence_id = 1;
string sentence_id = 1;
repeated int32 incorrect_indexes = 2;
int32 pronunciation_score = 3;
int32 volume_score = 4;
Expand All @@ -12,7 +12,7 @@ message PronunciationFeedbackDTO {
}

message GetPronunciationFeebackRequest {
int32 sentence_id = 1;
string sentence_id = 1;
string audio_file_url = 2;
}

Expand All @@ -21,12 +21,12 @@ message GetPronunciationResponse {
}

message CommunicationFeedbackDTO {
int32 scene_id = 1;
string scene_id = 1;
string overall_feedback = 5;
}

message GetCommunicationFeedbackRequest {
int32 scene_id = 1;
string scene_id = 1;
string audio_file_url = 2;
}

Expand Down
4 changes: 2 additions & 2 deletions proto/scene.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ package proto;

// information for sentence formation practice
message SceneDTO {
int32 id = 1;
string id = 1;
string image_url = 2;
string question = 3;
}

message GetSceneRequest {
int32 id = 1;
string id = 1;
}

message GetSceneResponse {
Expand Down
4 changes: 2 additions & 2 deletions proto/sentence.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package proto;

// sentence which user has to try to pronounce
message SentenceDTO {
int32 id = 1;
string id = 1;
string text = 2;
}

message GetSetenceRequest {
int32 id = 1;
string id = 1;
}

message GetSetenceResponse {
Expand Down
8 changes: 4 additions & 4 deletions proto/topic.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ package proto;

// topic used to select the theme of the session
message TopicDTO {
int32 id = 1;
string id = 1;
string title = 2;
string thumbnail_url = 3;
repeated int32 sentence_ids = 4;
repeated int32 scene_ids = 5;
repeated string sentence_ids = 4;
repeated string scene_ids = 5;
}

message ListTopicsRequest {
Expand All @@ -20,7 +20,7 @@ message ListTopicsResponse {
}

message GetTopicRequest {
int32 id = 1;
string id = 1;
}

message GetTopicResponse {
Expand Down

0 comments on commit 7d682c2

Please sign in to comment.