From 7d682c2238eea9cad4a0ca821924b40f86d6e3de Mon Sep 17 00:00:00 2001 From: Jason Yoo Date: Sat, 17 Feb 2024 20:55:33 +0900 Subject: [PATCH] feat: id to string --- proto/feedback.proto | 8 ++++---- proto/scene.proto | 4 ++-- proto/sentence.proto | 4 ++-- proto/topic.proto | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/proto/feedback.proto b/proto/feedback.proto index 588afac..1125194 100644 --- a/proto/feedback.proto +++ b/proto/feedback.proto @@ -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; @@ -12,7 +12,7 @@ message PronunciationFeedbackDTO { } message GetPronunciationFeebackRequest { - int32 sentence_id = 1; + string sentence_id = 1; string audio_file_url = 2; } @@ -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; } diff --git a/proto/scene.proto b/proto/scene.proto index 0ee0d0c..9925ce1 100644 --- a/proto/scene.proto +++ b/proto/scene.proto @@ -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 { diff --git a/proto/sentence.proto b/proto/sentence.proto index 0bae06c..e18811d 100644 --- a/proto/sentence.proto +++ b/proto/sentence.proto @@ -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 { diff --git a/proto/topic.proto b/proto/topic.proto index 44a5f9a..9600bc0 100644 --- a/proto/topic.proto +++ b/proto/topic.proto @@ -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 { @@ -20,7 +20,7 @@ message ListTopicsResponse { } message GetTopicRequest { - int32 id = 1; + string id = 1; } message GetTopicResponse {