1 Star 0 Fork 0

WisdomClassroom / core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
questionService.pb.go 28.67 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
//******************************************************************************
// Copyright 2020 huanggefan.cn
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//****************************************************************************
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0-devel
// protoc v3.12.4
// source: questionService.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
var File_questionService_proto protoreflect.FileDescriptor
var file_questionService_proto_rawDesc = []byte{
0x0a, 0x15, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x27, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x15, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x71, 0x75, 0x65, 0x73, 0x74,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x32, 0xdc, 0x08, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75,
0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18,
0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22,
0x22, 0x1d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69,
0x6f, 0x6e, 0x2f, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a,
0x01, 0x2a, 0x12, 0x8b, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x46, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x2e, 0x70, 0x62,
0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x75, 0x6c,
0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70,
0x62, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x75,
0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30,
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x22, 0x25, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f,
0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a,
0x12, 0x7a, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
0x2f, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b,
0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x55, 0x55, 0x49, 0x44, 0x7d, 0x12, 0x7e, 0x0a, 0x18,
0x4c, 0x69, 0x73, 0x74, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f,
0x6e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x72, 0x6f,
0x6e, 0x67, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x2b, 0x12, 0x29, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74,
0x69, 0x6f, 0x6e, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x51, 0x75, 0x65,
0x73, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x12, 0x7e, 0x0a, 0x18,
0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x51,
0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x2b, 0x12, 0x29, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74,
0x69, 0x6f, 0x6e, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
0x64, 0x65, 0x64, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x73, 0x0a, 0x0e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19,
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01,
0x2a, 0x12, 0x73, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51,
0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x24, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x73,
0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74,
0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x51,
0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,
0x2f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x73, 0x0a, 0x0e, 0x41,
0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e,
0x70, 0x62, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x6e,
0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x41,
0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_questionService_proto_goTypes = []interface{}{
(*GetQuestionsRequest)(nil), // 0: pb.GetQuestionsRequest
(*GetQuestionsFullInfoRequest)(nil), // 1: pb.GetQuestionsFullInfoRequest
(*ListQuestionsRequest)(nil), // 2: pb.ListQuestionsRequest
(*Empty)(nil), // 3: pb.Empty
(*CreateQuestionRequest)(nil), // 4: pb.CreateQuestionRequest
(*UpdateQuestionRequest)(nil), // 5: pb.UpdateQuestionRequest
(*DeleteQuestionRequest)(nil), // 6: pb.DeleteQuestionRequest
(*AnswerQuestionRequest)(nil), // 7: pb.AnswerQuestionRequest
(*GetQuestionsResponse)(nil), // 8: pb.GetQuestionsResponse
(*GetQuestionsFullInfoResponse)(nil), // 9: pb.GetQuestionsFullInfoResponse
(*ListQuestionsResponse)(nil), // 10: pb.ListQuestionsResponse
(*ListWrongQuestionAnswersResponse)(nil), // 11: pb.ListWrongQuestionAnswersResponse
(*ListRecommendedQuestionsResponse)(nil), // 12: pb.ListRecommendedQuestionsResponse
(*CreateQuestionResponse)(nil), // 13: pb.CreateQuestionResponse
(*UpdateQuestionResponse)(nil), // 14: pb.UpdateQuestionResponse
(*DeleteQuestionResponse)(nil), // 15: pb.DeleteQuestionResponse
(*AnswerQuestionResponse)(nil), // 16: pb.AnswerQuestionResponse
}
var file_questionService_proto_depIdxs = []int32{
0, // 0: pb.QuestionService.GetQuestions:input_type -> pb.GetQuestionsRequest
1, // 1: pb.QuestionService.GetQuestionsFullInfo:input_type -> pb.GetQuestionsFullInfoRequest
2, // 2: pb.QuestionService.ListQuestions:input_type -> pb.ListQuestionsRequest
3, // 3: pb.QuestionService.ListWrongQuestionAnswers:input_type -> pb.Empty
3, // 4: pb.QuestionService.ListRecommendedQuestions:input_type -> pb.Empty
4, // 5: pb.QuestionService.CreateQuestion:input_type -> pb.CreateQuestionRequest
5, // 6: pb.QuestionService.UpdateQuestion:input_type -> pb.UpdateQuestionRequest
6, // 7: pb.QuestionService.DeleteQuestion:input_type -> pb.DeleteQuestionRequest
7, // 8: pb.QuestionService.AnswerQuestion:input_type -> pb.AnswerQuestionRequest
8, // 9: pb.QuestionService.GetQuestions:output_type -> pb.GetQuestionsResponse
9, // 10: pb.QuestionService.GetQuestionsFullInfo:output_type -> pb.GetQuestionsFullInfoResponse
10, // 11: pb.QuestionService.ListQuestions:output_type -> pb.ListQuestionsResponse
11, // 12: pb.QuestionService.ListWrongQuestionAnswers:output_type -> pb.ListWrongQuestionAnswersResponse
12, // 13: pb.QuestionService.ListRecommendedQuestions:output_type -> pb.ListRecommendedQuestionsResponse
13, // 14: pb.QuestionService.CreateQuestion:output_type -> pb.CreateQuestionResponse
14, // 15: pb.QuestionService.UpdateQuestion:output_type -> pb.UpdateQuestionResponse
15, // 16: pb.QuestionService.DeleteQuestion:output_type -> pb.DeleteQuestionResponse
16, // 17: pb.QuestionService.AnswerQuestion:output_type -> pb.AnswerQuestionResponse
9, // [9:18] is the sub-list for method output_type
0, // [0:9] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_questionService_proto_init() }
func file_questionService_proto_init() {
if File_questionService_proto != nil {
return
}
file_global_proto_init()
file_questionRequest_proto_init()
file_questionResponse_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_questionService_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_questionService_proto_goTypes,
DependencyIndexes: file_questionService_proto_depIdxs,
}.Build()
File_questionService_proto = out.File
file_questionService_proto_rawDesc = nil
file_questionService_proto_goTypes = nil
file_questionService_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// QuestionServiceClient is the client API for QuestionService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QuestionServiceClient interface {
// 获取指定UUID的题目信息, 仅学生调用
GetQuestions(ctx context.Context, in *GetQuestionsRequest, opts ...grpc.CallOption) (*GetQuestionsResponse, error)
// 获取指定UUID的题目信息, 仅教师与管理员可调用
GetQuestionsFullInfo(ctx context.Context, in *GetQuestionsFullInfoRequest, opts ...grpc.CallOption) (*GetQuestionsFullInfoResponse, error)
// 列举指定章节的题目, 仅教师与管理员可调用
ListQuestions(ctx context.Context, in *ListQuestionsRequest, opts ...grpc.CallOption) (*ListQuestionsResponse, error)
ListWrongQuestionAnswers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListWrongQuestionAnswersResponse, error)
ListRecommendedQuestions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListRecommendedQuestionsResponse, error)
CreateQuestion(ctx context.Context, in *CreateQuestionRequest, opts ...grpc.CallOption) (*CreateQuestionResponse, error)
UpdateQuestion(ctx context.Context, in *UpdateQuestionRequest, opts ...grpc.CallOption) (*UpdateQuestionResponse, error)
DeleteQuestion(ctx context.Context, in *DeleteQuestionRequest, opts ...grpc.CallOption) (*DeleteQuestionResponse, error)
AnswerQuestion(ctx context.Context, in *AnswerQuestionRequest, opts ...grpc.CallOption) (*AnswerQuestionResponse, error)
}
type questionServiceClient struct {
cc grpc.ClientConnInterface
}
func NewQuestionServiceClient(cc grpc.ClientConnInterface) QuestionServiceClient {
return &questionServiceClient{cc}
}
func (c *questionServiceClient) GetQuestions(ctx context.Context, in *GetQuestionsRequest, opts ...grpc.CallOption) (*GetQuestionsResponse, error) {
out := new(GetQuestionsResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/GetQuestions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) GetQuestionsFullInfo(ctx context.Context, in *GetQuestionsFullInfoRequest, opts ...grpc.CallOption) (*GetQuestionsFullInfoResponse, error) {
out := new(GetQuestionsFullInfoResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/GetQuestionsFullInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) ListQuestions(ctx context.Context, in *ListQuestionsRequest, opts ...grpc.CallOption) (*ListQuestionsResponse, error) {
out := new(ListQuestionsResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/ListQuestions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) ListWrongQuestionAnswers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListWrongQuestionAnswersResponse, error) {
out := new(ListWrongQuestionAnswersResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/ListWrongQuestionAnswers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) ListRecommendedQuestions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListRecommendedQuestionsResponse, error) {
out := new(ListRecommendedQuestionsResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/ListRecommendedQuestions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) CreateQuestion(ctx context.Context, in *CreateQuestionRequest, opts ...grpc.CallOption) (*CreateQuestionResponse, error) {
out := new(CreateQuestionResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/CreateQuestion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) UpdateQuestion(ctx context.Context, in *UpdateQuestionRequest, opts ...grpc.CallOption) (*UpdateQuestionResponse, error) {
out := new(UpdateQuestionResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/UpdateQuestion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) DeleteQuestion(ctx context.Context, in *DeleteQuestionRequest, opts ...grpc.CallOption) (*DeleteQuestionResponse, error) {
out := new(DeleteQuestionResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/DeleteQuestion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionServiceClient) AnswerQuestion(ctx context.Context, in *AnswerQuestionRequest, opts ...grpc.CallOption) (*AnswerQuestionResponse, error) {
out := new(AnswerQuestionResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionService/AnswerQuestion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QuestionServiceServer is the server API for QuestionService service.
type QuestionServiceServer interface {
// 获取指定UUID的题目信息, 仅学生调用
GetQuestions(context.Context, *GetQuestionsRequest) (*GetQuestionsResponse, error)
// 获取指定UUID的题目信息, 仅教师与管理员可调用
GetQuestionsFullInfo(context.Context, *GetQuestionsFullInfoRequest) (*GetQuestionsFullInfoResponse, error)
// 列举指定章节的题目, 仅教师与管理员可调用
ListQuestions(context.Context, *ListQuestionsRequest) (*ListQuestionsResponse, error)
ListWrongQuestionAnswers(context.Context, *Empty) (*ListWrongQuestionAnswersResponse, error)
ListRecommendedQuestions(context.Context, *Empty) (*ListRecommendedQuestionsResponse, error)
CreateQuestion(context.Context, *CreateQuestionRequest) (*CreateQuestionResponse, error)
UpdateQuestion(context.Context, *UpdateQuestionRequest) (*UpdateQuestionResponse, error)
DeleteQuestion(context.Context, *DeleteQuestionRequest) (*DeleteQuestionResponse, error)
AnswerQuestion(context.Context, *AnswerQuestionRequest) (*AnswerQuestionResponse, error)
}
// UnimplementedQuestionServiceServer can be embedded to have forward compatible implementations.
type UnimplementedQuestionServiceServer struct {
}
func (*UnimplementedQuestionServiceServer) GetQuestions(context.Context, *GetQuestionsRequest) (*GetQuestionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetQuestions not implemented")
}
func (*UnimplementedQuestionServiceServer) GetQuestionsFullInfo(context.Context, *GetQuestionsFullInfoRequest) (*GetQuestionsFullInfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetQuestionsFullInfo not implemented")
}
func (*UnimplementedQuestionServiceServer) ListQuestions(context.Context, *ListQuestionsRequest) (*ListQuestionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListQuestions not implemented")
}
func (*UnimplementedQuestionServiceServer) ListWrongQuestionAnswers(context.Context, *Empty) (*ListWrongQuestionAnswersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListWrongQuestionAnswers not implemented")
}
func (*UnimplementedQuestionServiceServer) ListRecommendedQuestions(context.Context, *Empty) (*ListRecommendedQuestionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListRecommendedQuestions not implemented")
}
func (*UnimplementedQuestionServiceServer) CreateQuestion(context.Context, *CreateQuestionRequest) (*CreateQuestionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateQuestion not implemented")
}
func (*UnimplementedQuestionServiceServer) UpdateQuestion(context.Context, *UpdateQuestionRequest) (*UpdateQuestionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateQuestion not implemented")
}
func (*UnimplementedQuestionServiceServer) DeleteQuestion(context.Context, *DeleteQuestionRequest) (*DeleteQuestionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteQuestion not implemented")
}
func (*UnimplementedQuestionServiceServer) AnswerQuestion(context.Context, *AnswerQuestionRequest) (*AnswerQuestionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AnswerQuestion not implemented")
}
func RegisterQuestionServiceServer(s *grpc.Server, srv QuestionServiceServer) {
s.RegisterService(&_QuestionService_serviceDesc, srv)
}
func _QuestionService_GetQuestions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetQuestionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).GetQuestions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/GetQuestions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).GetQuestions(ctx, req.(*GetQuestionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_GetQuestionsFullInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetQuestionsFullInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).GetQuestionsFullInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/GetQuestionsFullInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).GetQuestionsFullInfo(ctx, req.(*GetQuestionsFullInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_ListQuestions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListQuestionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).ListQuestions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/ListQuestions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).ListQuestions(ctx, req.(*ListQuestionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_ListWrongQuestionAnswers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).ListWrongQuestionAnswers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/ListWrongQuestionAnswers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).ListWrongQuestionAnswers(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_ListRecommendedQuestions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).ListRecommendedQuestions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/ListRecommendedQuestions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).ListRecommendedQuestions(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_CreateQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateQuestionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).CreateQuestion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/CreateQuestion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).CreateQuestion(ctx, req.(*CreateQuestionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_UpdateQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateQuestionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).UpdateQuestion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/UpdateQuestion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).UpdateQuestion(ctx, req.(*UpdateQuestionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_DeleteQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteQuestionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).DeleteQuestion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/DeleteQuestion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).DeleteQuestion(ctx, req.(*DeleteQuestionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionService_AnswerQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AnswerQuestionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionServiceServer).AnswerQuestion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionService/AnswerQuestion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionServiceServer).AnswerQuestion(ctx, req.(*AnswerQuestionRequest))
}
return interceptor(ctx, in, info, handler)
}
var _QuestionService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.QuestionService",
HandlerType: (*QuestionServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetQuestions",
Handler: _QuestionService_GetQuestions_Handler,
},
{
MethodName: "GetQuestionsFullInfo",
Handler: _QuestionService_GetQuestionsFullInfo_Handler,
},
{
MethodName: "ListQuestions",
Handler: _QuestionService_ListQuestions_Handler,
},
{
MethodName: "ListWrongQuestionAnswers",
Handler: _QuestionService_ListWrongQuestionAnswers_Handler,
},
{
MethodName: "ListRecommendedQuestions",
Handler: _QuestionService_ListRecommendedQuestions_Handler,
},
{
MethodName: "CreateQuestion",
Handler: _QuestionService_CreateQuestion_Handler,
},
{
MethodName: "UpdateQuestion",
Handler: _QuestionService_UpdateQuestion_Handler,
},
{
MethodName: "DeleteQuestion",
Handler: _QuestionService_DeleteQuestion_Handler,
},
{
MethodName: "AnswerQuestion",
Handler: _QuestionService_AnswerQuestion_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "questionService.proto",
}
1
https://gitee.com/WisdomClassroom/core.git
git@gitee.com:WisdomClassroom/core.git
WisdomClassroom
core
core
v0.7.6

搜索帮助