generated from VLADIMIR/template
up
This commit is contained in:
@@ -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),
|
||||
req.ID,
|
||||
req.Password,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -28,7 +28,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),
|
||||
req.ID,
|
||||
req.Password,
|
||||
convertAnswers(req.Answers),
|
||||
)
|
||||
@@ -56,7 +56,7 @@ func (s *server) SetTeamAnswerScore(ctx context.Context, req *proto.SetTeamAnswe
|
||||
|
||||
err := s.answerService.SetTeamAnswerScore(
|
||||
ctx,
|
||||
int(req.ID),
|
||||
req.ID,
|
||||
req.QuestionCode,
|
||||
score,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user