1 Star 0 Fork 0

WisdomClassroom / core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
chapterService.pb.go 19.95 KB
一键复制 编辑 原始数据 按行查看 历史
//******************************************************************************
// 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: chapterService.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_chapterService_proto protoreflect.FileDescriptor
var file_chapterService_proto_rawDesc = []byte{
0x0a, 0x14, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 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, 0x14, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x68, 0x61, 0x70, 0x74,
0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x32, 0xcb, 0x05, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65,
0x72, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65,
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65,
0x74, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x31, 0x2f, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x2f, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61,
0x70, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x55, 0x55, 0x49, 0x44, 0x7d, 0x12, 0x74, 0x0a, 0x0c, 0x4c,
0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x73, 0x12, 0x17, 0x2e, 0x70, 0x62,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68,
0x61, 0x70, 0x74, 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,
0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x70,
0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x55, 0x55, 0x49, 0x44,
0x7d, 0x12, 0x6e, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74,
0x65, 0x72, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68,
0x61, 0x70, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 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, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
0x2f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x3a, 0x01,
0x2a, 0x12, 0x6e, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74,
0x65, 0x72, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68,
0x61, 0x70, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 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, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x3a, 0x01,
0x2a, 0x12, 0x6e, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74,
0x65, 0x72, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68,
0x61, 0x70, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70,
0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 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, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
0x2f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x3a, 0x01,
0x2a, 0x12, 0x8a, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70,
0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e,
0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62,
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x43, 0x6f,
0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63,
0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61,
0x70, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x3a, 0x01, 0x2a, 0x42, 0x06,
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_chapterService_proto_goTypes = []interface{}{
(*GetChapterRequest)(nil), // 0: pb.GetChapterRequest
(*ListChaptersRequest)(nil), // 1: pb.ListChaptersRequest
(*CreateChapterRequest)(nil), // 2: pb.CreateChapterRequest
(*UpdateChapterRequest)(nil), // 3: pb.UpdateChapterRequest
(*DeleteChapterRequest)(nil), // 4: pb.DeleteChapterRequest
(*UpdateChapterContentRequest)(nil), // 5: pb.UpdateChapterContentRequest
(*GetChapterResponse)(nil), // 6: pb.GetChapterResponse
(*ListChaptersResponse)(nil), // 7: pb.ListChaptersResponse
(*CreateChapterResponse)(nil), // 8: pb.CreateChapterResponse
(*UpdateChapterResponse)(nil), // 9: pb.UpdateChapterResponse
(*DeleteChapterResponse)(nil), // 10: pb.DeleteChapterResponse
(*UpdateChapterContentResponse)(nil), // 11: pb.UpdateChapterContentResponse
}
var file_chapterService_proto_depIdxs = []int32{
0, // 0: pb.ChapterService.GetChapter:input_type -> pb.GetChapterRequest
1, // 1: pb.ChapterService.ListChapters:input_type -> pb.ListChaptersRequest
2, // 2: pb.ChapterService.CreateChapter:input_type -> pb.CreateChapterRequest
3, // 3: pb.ChapterService.UpdateChapter:input_type -> pb.UpdateChapterRequest
4, // 4: pb.ChapterService.DeleteChapter:input_type -> pb.DeleteChapterRequest
5, // 5: pb.ChapterService.UpdateChapterContent:input_type -> pb.UpdateChapterContentRequest
6, // 6: pb.ChapterService.GetChapter:output_type -> pb.GetChapterResponse
7, // 7: pb.ChapterService.ListChapters:output_type -> pb.ListChaptersResponse
8, // 8: pb.ChapterService.CreateChapter:output_type -> pb.CreateChapterResponse
9, // 9: pb.ChapterService.UpdateChapter:output_type -> pb.UpdateChapterResponse
10, // 10: pb.ChapterService.DeleteChapter:output_type -> pb.DeleteChapterResponse
11, // 11: pb.ChapterService.UpdateChapterContent:output_type -> pb.UpdateChapterContentResponse
6, // [6:12] is the sub-list for method output_type
0, // [0:6] 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_chapterService_proto_init() }
func file_chapterService_proto_init() {
if File_chapterService_proto != nil {
return
}
file_chapterRequest_proto_init()
file_chapterResponse_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_chapterService_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_chapterService_proto_goTypes,
DependencyIndexes: file_chapterService_proto_depIdxs,
}.Build()
File_chapterService_proto = out.File
file_chapterService_proto_rawDesc = nil
file_chapterService_proto_goTypes = nil
file_chapterService_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
// ChapterServiceClient is the client API for ChapterService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ChapterServiceClient interface {
GetChapter(ctx context.Context, in *GetChapterRequest, opts ...grpc.CallOption) (*GetChapterResponse, error)
ListChapters(ctx context.Context, in *ListChaptersRequest, opts ...grpc.CallOption) (*ListChaptersResponse, error)
CreateChapter(ctx context.Context, in *CreateChapterRequest, opts ...grpc.CallOption) (*CreateChapterResponse, error)
UpdateChapter(ctx context.Context, in *UpdateChapterRequest, opts ...grpc.CallOption) (*UpdateChapterResponse, error)
DeleteChapter(ctx context.Context, in *DeleteChapterRequest, opts ...grpc.CallOption) (*DeleteChapterResponse, error)
UpdateChapterContent(ctx context.Context, in *UpdateChapterContentRequest, opts ...grpc.CallOption) (*UpdateChapterContentResponse, error)
}
type chapterServiceClient struct {
cc grpc.ClientConnInterface
}
func NewChapterServiceClient(cc grpc.ClientConnInterface) ChapterServiceClient {
return &chapterServiceClient{cc}
}
func (c *chapterServiceClient) GetChapter(ctx context.Context, in *GetChapterRequest, opts ...grpc.CallOption) (*GetChapterResponse, error) {
out := new(GetChapterResponse)
err := c.cc.Invoke(ctx, "/pb.ChapterService/GetChapter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *chapterServiceClient) ListChapters(ctx context.Context, in *ListChaptersRequest, opts ...grpc.CallOption) (*ListChaptersResponse, error) {
out := new(ListChaptersResponse)
err := c.cc.Invoke(ctx, "/pb.ChapterService/ListChapters", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *chapterServiceClient) CreateChapter(ctx context.Context, in *CreateChapterRequest, opts ...grpc.CallOption) (*CreateChapterResponse, error) {
out := new(CreateChapterResponse)
err := c.cc.Invoke(ctx, "/pb.ChapterService/CreateChapter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *chapterServiceClient) UpdateChapter(ctx context.Context, in *UpdateChapterRequest, opts ...grpc.CallOption) (*UpdateChapterResponse, error) {
out := new(UpdateChapterResponse)
err := c.cc.Invoke(ctx, "/pb.ChapterService/UpdateChapter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *chapterServiceClient) DeleteChapter(ctx context.Context, in *DeleteChapterRequest, opts ...grpc.CallOption) (*DeleteChapterResponse, error) {
out := new(DeleteChapterResponse)
err := c.cc.Invoke(ctx, "/pb.ChapterService/DeleteChapter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *chapterServiceClient) UpdateChapterContent(ctx context.Context, in *UpdateChapterContentRequest, opts ...grpc.CallOption) (*UpdateChapterContentResponse, error) {
out := new(UpdateChapterContentResponse)
err := c.cc.Invoke(ctx, "/pb.ChapterService/UpdateChapterContent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ChapterServiceServer is the server API for ChapterService service.
type ChapterServiceServer interface {
GetChapter(context.Context, *GetChapterRequest) (*GetChapterResponse, error)
ListChapters(context.Context, *ListChaptersRequest) (*ListChaptersResponse, error)
CreateChapter(context.Context, *CreateChapterRequest) (*CreateChapterResponse, error)
UpdateChapter(context.Context, *UpdateChapterRequest) (*UpdateChapterResponse, error)
DeleteChapter(context.Context, *DeleteChapterRequest) (*DeleteChapterResponse, error)
UpdateChapterContent(context.Context, *UpdateChapterContentRequest) (*UpdateChapterContentResponse, error)
}
// UnimplementedChapterServiceServer can be embedded to have forward compatible implementations.
type UnimplementedChapterServiceServer struct {
}
func (*UnimplementedChapterServiceServer) GetChapter(context.Context, *GetChapterRequest) (*GetChapterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetChapter not implemented")
}
func (*UnimplementedChapterServiceServer) ListChapters(context.Context, *ListChaptersRequest) (*ListChaptersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListChapters not implemented")
}
func (*UnimplementedChapterServiceServer) CreateChapter(context.Context, *CreateChapterRequest) (*CreateChapterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateChapter not implemented")
}
func (*UnimplementedChapterServiceServer) UpdateChapter(context.Context, *UpdateChapterRequest) (*UpdateChapterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateChapter not implemented")
}
func (*UnimplementedChapterServiceServer) DeleteChapter(context.Context, *DeleteChapterRequest) (*DeleteChapterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteChapter not implemented")
}
func (*UnimplementedChapterServiceServer) UpdateChapterContent(context.Context, *UpdateChapterContentRequest) (*UpdateChapterContentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateChapterContent not implemented")
}
func RegisterChapterServiceServer(s *grpc.Server, srv ChapterServiceServer) {
s.RegisterService(&_ChapterService_serviceDesc, srv)
}
func _ChapterService_GetChapter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetChapterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChapterServiceServer).GetChapter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ChapterService/GetChapter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChapterServiceServer).GetChapter(ctx, req.(*GetChapterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChapterService_ListChapters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListChaptersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChapterServiceServer).ListChapters(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ChapterService/ListChapters",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChapterServiceServer).ListChapters(ctx, req.(*ListChaptersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChapterService_CreateChapter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateChapterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChapterServiceServer).CreateChapter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ChapterService/CreateChapter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChapterServiceServer).CreateChapter(ctx, req.(*CreateChapterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChapterService_UpdateChapter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateChapterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChapterServiceServer).UpdateChapter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ChapterService/UpdateChapter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChapterServiceServer).UpdateChapter(ctx, req.(*UpdateChapterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChapterService_DeleteChapter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteChapterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChapterServiceServer).DeleteChapter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ChapterService/DeleteChapter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChapterServiceServer).DeleteChapter(ctx, req.(*DeleteChapterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChapterService_UpdateChapterContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateChapterContentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChapterServiceServer).UpdateChapterContent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ChapterService/UpdateChapterContent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChapterServiceServer).UpdateChapterContent(ctx, req.(*UpdateChapterContentRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ChapterService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.ChapterService",
HandlerType: (*ChapterServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetChapter",
Handler: _ChapterService_GetChapter_Handler,
},
{
MethodName: "ListChapters",
Handler: _ChapterService_ListChapters_Handler,
},
{
MethodName: "CreateChapter",
Handler: _ChapterService_CreateChapter_Handler,
},
{
MethodName: "UpdateChapter",
Handler: _ChapterService_UpdateChapter_Handler,
},
{
MethodName: "DeleteChapter",
Handler: _ChapterService_DeleteChapter_Handler,
},
{
MethodName: "UpdateChapterContent",
Handler: _ChapterService_UpdateChapterContent_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "chapterService.proto",
}
1
https://gitee.com/WisdomClassroom/core.git
git@gitee.com:WisdomClassroom/core.git
WisdomClassroom
core
core
v0.7.6

搜索帮助