1 Star 0 Fork 0

WisdomClassroom / core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
questionBankService.pb.go 16.18 KB
一键复制 编辑 原始数据 按行查看 历史
哔u哔u 提交于 2020-02-22 13:27 . 类型:feature
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: questionBankService.proto
package pb
import (
context "context"
fmt "fmt"
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"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("questionBankService.proto", fileDescriptor_5d92ab7a782d2ede) }
var fileDescriptor_5d92ab7a782d2ede = []byte{
// 378 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0xd4, 0x4d, 0x4a, 0x03, 0x31,
0x14, 0x07, 0x70, 0xa6, 0x0b, 0x91, 0x6c, 0x94, 0x08, 0xa2, 0xe3, 0x07, 0x38, 0x0a, 0x05, 0x3f,
0x1a, 0xad, 0x20, 0xe2, 0x42, 0xd4, 0x56, 0x45, 0xd4, 0x85, 0xd6, 0x39, 0x40, 0xaa, 0x8f, 0x3a,
0xb4, 0x24, 0x71, 0x32, 0xed, 0xa6, 0x74, 0xe3, 0xc6, 0x03, 0x88, 0x74, 0x29, 0x9e, 0xc9, 0x2b,
0x78, 0x10, 0x99, 0x34, 0x03, 0xcd, 0x24, 0x1d, 0xba, 0x6b, 0xde, 0x3f, 0xff, 0xbe, 0x1f, 0xa4,
0x14, 0x2d, 0xbf, 0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x92, 0x50, 0xbc, 0x38,
0x25, 0xf6, 0xdc, 0x90, 0xb8, 0xe2, 0xa9, 0x24, 0x76, 0x31, 0x93, 0xd4, 0xa1, 0x03, 0x2e, 0x89,
0x3d, 0x37, 0x24, 0xae, 0x78, 0x2a, 0x89, 0x5d, 0x4c, 0x25, 0x43, 0x0f, 0x2d, 0x36, 0xcc, 0x1f,
0xda, 0x3d, 0x65, 0xb4, 0x05, 0x31, 0xde, 0x48, 0xd7, 0xb9, 0xb3, 0x4c, 0x14, 0x14, 0x5d, 0xd1,
0xaa, 0x23, 0xa5, 0xda, 0x0f, 0x76, 0x9c, 0x2a, 0x77, 0x39, 0x95, 0x7d, 0x7b, 0x68, 0x29, 0x64,
0x13, 0x6c, 0x9b, 0xea, 0x51, 0x58, 0xb1, 0x6e, 0xab, 0xf8, 0x92, 0xf6, 0x1d, 0x2b, 0x5f, 0x35,
0xd8, 0x73, 0xbf, 0x1f, 0x9b, 0x28, 0x6c, 0xce, 0xa8, 0xbf, 0x8a, 0xc3, 0xff, 0x00, 0x00, 0x00,
0xff, 0xff, 0x75, 0x63, 0xf2, 0x2b, 0xab, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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.SupportPackageIsVersion4
// QuestionBankServiceClient is the client API for QuestionBankService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QuestionBankServiceClient interface {
GetQuestionBank(ctx context.Context, in *GetQuestionBankRequest, opts ...grpc.CallOption) (*GetQuestionBankResponse, error)
ListQuestionBank(ctx context.Context, in *ListQuestionBankRequest, opts ...grpc.CallOption) (*ListQuestionBankResponse, error)
CreateQuestionBank(ctx context.Context, in *CreateQuestionBankRequest, opts ...grpc.CallOption) (*CreateQuestionBankResponse, error)
UpdateQuestionBank(ctx context.Context, in *UpdateQuestionBankRequest, opts ...grpc.CallOption) (*UpdateQuestionBankResponse, error)
DeleteQuestionBank(ctx context.Context, in *DeleteQuestionBankRequest, opts ...grpc.CallOption) (*DeleteQuestionBankResponse, error)
SetQuestionBankManager(ctx context.Context, in *SetQuestionBankManagerRequest, opts ...grpc.CallOption) (*SetQuestionBankManagerResponse, error)
UnSetQuestionBankManager(ctx context.Context, in *UnSetQuestionBankManagerRequest, opts ...grpc.CallOption) (*UnSetQuestionBankManagerResponse, error)
}
type questionBankServiceClient struct {
cc *grpc.ClientConn
}
func NewQuestionBankServiceClient(cc *grpc.ClientConn) QuestionBankServiceClient {
return &questionBankServiceClient{cc}
}
func (c *questionBankServiceClient) GetQuestionBank(ctx context.Context, in *GetQuestionBankRequest, opts ...grpc.CallOption) (*GetQuestionBankResponse, error) {
out := new(GetQuestionBankResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionBankService/GetQuestionBank", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionBankServiceClient) ListQuestionBank(ctx context.Context, in *ListQuestionBankRequest, opts ...grpc.CallOption) (*ListQuestionBankResponse, error) {
out := new(ListQuestionBankResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionBankService/ListQuestionBank", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionBankServiceClient) CreateQuestionBank(ctx context.Context, in *CreateQuestionBankRequest, opts ...grpc.CallOption) (*CreateQuestionBankResponse, error) {
out := new(CreateQuestionBankResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionBankService/CreateQuestionBank", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionBankServiceClient) UpdateQuestionBank(ctx context.Context, in *UpdateQuestionBankRequest, opts ...grpc.CallOption) (*UpdateQuestionBankResponse, error) {
out := new(UpdateQuestionBankResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionBankService/UpdateQuestionBank", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionBankServiceClient) DeleteQuestionBank(ctx context.Context, in *DeleteQuestionBankRequest, opts ...grpc.CallOption) (*DeleteQuestionBankResponse, error) {
out := new(DeleteQuestionBankResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionBankService/DeleteQuestionBank", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionBankServiceClient) SetQuestionBankManager(ctx context.Context, in *SetQuestionBankManagerRequest, opts ...grpc.CallOption) (*SetQuestionBankManagerResponse, error) {
out := new(SetQuestionBankManagerResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionBankService/SetQuestionBankManager", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *questionBankServiceClient) UnSetQuestionBankManager(ctx context.Context, in *UnSetQuestionBankManagerRequest, opts ...grpc.CallOption) (*UnSetQuestionBankManagerResponse, error) {
out := new(UnSetQuestionBankManagerResponse)
err := c.cc.Invoke(ctx, "/pb.QuestionBankService/UnSetQuestionBankManager", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QuestionBankServiceServer is the server API for QuestionBankService service.
type QuestionBankServiceServer interface {
GetQuestionBank(context.Context, *GetQuestionBankRequest) (*GetQuestionBankResponse, error)
ListQuestionBank(context.Context, *ListQuestionBankRequest) (*ListQuestionBankResponse, error)
CreateQuestionBank(context.Context, *CreateQuestionBankRequest) (*CreateQuestionBankResponse, error)
UpdateQuestionBank(context.Context, *UpdateQuestionBankRequest) (*UpdateQuestionBankResponse, error)
DeleteQuestionBank(context.Context, *DeleteQuestionBankRequest) (*DeleteQuestionBankResponse, error)
SetQuestionBankManager(context.Context, *SetQuestionBankManagerRequest) (*SetQuestionBankManagerResponse, error)
UnSetQuestionBankManager(context.Context, *UnSetQuestionBankManagerRequest) (*UnSetQuestionBankManagerResponse, error)
}
// UnimplementedQuestionBankServiceServer can be embedded to have forward compatible implementations.
type UnimplementedQuestionBankServiceServer struct {
}
func (*UnimplementedQuestionBankServiceServer) GetQuestionBank(ctx context.Context, req *GetQuestionBankRequest) (*GetQuestionBankResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetQuestionBank not implemented")
}
func (*UnimplementedQuestionBankServiceServer) ListQuestionBank(ctx context.Context, req *ListQuestionBankRequest) (*ListQuestionBankResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListQuestionBank not implemented")
}
func (*UnimplementedQuestionBankServiceServer) CreateQuestionBank(ctx context.Context, req *CreateQuestionBankRequest) (*CreateQuestionBankResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateQuestionBank not implemented")
}
func (*UnimplementedQuestionBankServiceServer) UpdateQuestionBank(ctx context.Context, req *UpdateQuestionBankRequest) (*UpdateQuestionBankResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateQuestionBank not implemented")
}
func (*UnimplementedQuestionBankServiceServer) DeleteQuestionBank(ctx context.Context, req *DeleteQuestionBankRequest) (*DeleteQuestionBankResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteQuestionBank not implemented")
}
func (*UnimplementedQuestionBankServiceServer) SetQuestionBankManager(ctx context.Context, req *SetQuestionBankManagerRequest) (*SetQuestionBankManagerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetQuestionBankManager not implemented")
}
func (*UnimplementedQuestionBankServiceServer) UnSetQuestionBankManager(ctx context.Context, req *UnSetQuestionBankManagerRequest) (*UnSetQuestionBankManagerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UnSetQuestionBankManager not implemented")
}
func RegisterQuestionBankServiceServer(s *grpc.Server, srv QuestionBankServiceServer) {
s.RegisterService(&_QuestionBankService_serviceDesc, srv)
}
func _QuestionBankService_GetQuestionBank_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetQuestionBankRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionBankServiceServer).GetQuestionBank(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionBankService/GetQuestionBank",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionBankServiceServer).GetQuestionBank(ctx, req.(*GetQuestionBankRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionBankService_ListQuestionBank_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListQuestionBankRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionBankServiceServer).ListQuestionBank(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionBankService/ListQuestionBank",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionBankServiceServer).ListQuestionBank(ctx, req.(*ListQuestionBankRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionBankService_CreateQuestionBank_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateQuestionBankRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionBankServiceServer).CreateQuestionBank(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionBankService/CreateQuestionBank",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionBankServiceServer).CreateQuestionBank(ctx, req.(*CreateQuestionBankRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionBankService_UpdateQuestionBank_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateQuestionBankRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionBankServiceServer).UpdateQuestionBank(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionBankService/UpdateQuestionBank",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionBankServiceServer).UpdateQuestionBank(ctx, req.(*UpdateQuestionBankRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionBankService_DeleteQuestionBank_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteQuestionBankRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionBankServiceServer).DeleteQuestionBank(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionBankService/DeleteQuestionBank",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionBankServiceServer).DeleteQuestionBank(ctx, req.(*DeleteQuestionBankRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionBankService_SetQuestionBankManager_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetQuestionBankManagerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionBankServiceServer).SetQuestionBankManager(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionBankService/SetQuestionBankManager",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionBankServiceServer).SetQuestionBankManager(ctx, req.(*SetQuestionBankManagerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QuestionBankService_UnSetQuestionBankManager_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnSetQuestionBankManagerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuestionBankServiceServer).UnSetQuestionBankManager(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.QuestionBankService/UnSetQuestionBankManager",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuestionBankServiceServer).UnSetQuestionBankManager(ctx, req.(*UnSetQuestionBankManagerRequest))
}
return interceptor(ctx, in, info, handler)
}
var _QuestionBankService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.QuestionBankService",
HandlerType: (*QuestionBankServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetQuestionBank",
Handler: _QuestionBankService_GetQuestionBank_Handler,
},
{
MethodName: "ListQuestionBank",
Handler: _QuestionBankService_ListQuestionBank_Handler,
},
{
MethodName: "CreateQuestionBank",
Handler: _QuestionBankService_CreateQuestionBank_Handler,
},
{
MethodName: "UpdateQuestionBank",
Handler: _QuestionBankService_UpdateQuestionBank_Handler,
},
{
MethodName: "DeleteQuestionBank",
Handler: _QuestionBankService_DeleteQuestionBank_Handler,
},
{
MethodName: "SetQuestionBankManager",
Handler: _QuestionBankService_SetQuestionBankManager_Handler,
},
{
MethodName: "UnSetQuestionBankManager",
Handler: _QuestionBankService_UnSetQuestionBankManager_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "questionBankService.proto",
}
1
https://gitee.com/WisdomClassroom/core.git
git@gitee.com:WisdomClassroom/core.git
WisdomClassroom
core
core
v0.4.1

搜索帮助