updates proto

This commit is contained in:
2026-10-01 14:19:43 +07:00
parent 1887b5b9a1
commit d9c5ca2956
27 changed files with 1897 additions and 1872 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ import (
func (s *server) GetTeamAnswers(ctx context.Context, req *proto.GetTeamAnswersReq) (*proto.GetTeamAnswersRsp, error) {
answers, err := s.answerService.GetTeamAnswers(
ctx,
int(req.Id),
int(req.ID),
req.Password,
)
if err != nil {
@@ -30,7 +30,7 @@ func (s *server) GetTeamAnswers(ctx context.Context, req *proto.GetTeamAnswersRe
func (s *server) SubmitTeamAnswers(ctx context.Context, req *proto.SubmitTeamAnswersReq) (*proto.SubmitTeamAnswersRsp, error) {
err := s.answerService.SubmitTeamAnswers(
ctx,
int(req.Id),
int(req.ID),
req.Password,
convertAnswers(req.Answers),
)
@@ -60,7 +60,7 @@ func (s *server) SetTeamAnswerScore(ctx context.Context, req *proto.SetTeamAnswe
err := s.answerService.SetTeamAnswerScore(
ctx,
int(req.Id),
int(req.ID),
req.QuestionCode,
score,
)