-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] 필요한 protobuf 파일 정의 #5
Changes from 3 commits
56282d1
46cd37e
1b62d79
0b39c3e
da72737
612cc15
8f8816e
e24ffad
ac0c7dc
7d682c2
99621e7
7cbb1eb
283feb9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
// information for articulation practice | ||
message ContextDTO { | ||
int32 id = 1; | ||
string image_url = 2; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question도 필요할 듯! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 그때 예시 봤을 때 이미지 + 이미지를 보고 답할 수 있는 질문들 구성인 것 같은데 질문도 같이 내려줘야할지도? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 그러고보니 우리의 귀요미 캐릭터 동영상은 어떻게 하기로 했었죠?... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 그건 일단 패스... |
||
|
||
message GetContextRequest { | ||
int32 id = 1; | ||
} | ||
|
||
message GetContextResponse { | ||
ContextDTO context = 1; | ||
} | ||
|
||
message ArticulationFeeback { | ||
int32 context_id = 1; | ||
string overall_feedback = 5; | ||
} | ||
|
||
message GetArticulationFeedbackRequest { | ||
int32 context_id = 1; | ||
} | ||
|
||
message GetArticulationFeedbackResponse { | ||
ArticulationFeeback articulation_feedback = 1; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
import "articulation.proto"; | ||
import "pronunciation.proto"; | ||
|
||
enum HistoryType { | ||
UNKNOWN = 0; | ||
PRONUNCIATION = 1; | ||
ARTICULATION = 2; | ||
} | ||
|
||
message FeebackHistoryDTO { | ||
HistoryType type = 1; | ||
oneof feeback { | ||
PronunciationFeedbackDTO pronunciation = 2; | ||
ArticulationFeedbackDTO articulation = 3; | ||
} | ||
} | ||
|
||
message ListHistoriesRequest { | ||
optional HistoryType type = 1; | ||
} | ||
|
||
message ListHistoriesResponse { | ||
repeated FeebackHistoryDTO histories = 1; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
// sentence which user has to try to pronounce | ||
message SentenceDTO { | ||
int32 id = 1; | ||
string text = 2; | ||
} | ||
|
||
message GetSetenceRequest { | ||
int32 id = 1; | ||
} | ||
|
||
message GetSetenceResponse { | ||
SentenceDTO sentence = 1; | ||
} | ||
|
||
message PronunciationFeeback { | ||
int32 sentence_id = 1; | ||
repeated int32 incorrect_indexes = 2; | ||
int32 pronunciation_score = 3; | ||
int32 volume_score = 4; | ||
int32 speed_score = 5; | ||
string overall_feedback = 6; | ||
} | ||
|
||
message GetPronunciationFeebackRequest { | ||
int32 sentence_id = 1; | ||
string audio_file_url = 2; | ||
} | ||
|
||
message SubmitPronunciationResponse { | ||
PronunciationFeeback pronunciation_feeback = 1; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
syntax = "proto3"; | ||
|
||
package proto; | ||
|
||
import "articulation.proto"; | ||
import "pronunciation.proto"; | ||
|
||
// situation used to select the theme of the session | ||
message SituationDTO { | ||
int32 id = 1; | ||
string title = 2; | ||
string thumbnail_url = 3; | ||
repeated SentenceDTO sentences = 4; | ||
repeated ContextDTO contexts = 5; | ||
} | ||
|
||
message ListSituationsRequest { | ||
// empty | ||
} | ||
|
||
message ListSituationsResponse { | ||
repeated SituationDTO situations = 1; | ||
} | ||
|
||
message GetSituationRequest { | ||
int32 id = 1; | ||
} | ||
|
||
message GetSituationResponse { | ||
SituationDTO situation = 1; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
articulation의 의미가 문장 구사보다는 발음 명료성에 가까운 거 같아서 다른 워딩을 쓰는 게 좋지 않을까 생각!
(formation, contextual feedback 등...?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이름 바꿨습니당