1 Star 0 Fork 0

WisdomClassroom / core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
courseService.pb.go 19.28 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: courseService.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_courseService_proto protoreflect.FileDescriptor
var file_courseService_proto_rawDesc = []byte{
0x0a, 0x13, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 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, 0x13, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x85, 0x05, 0x0a, 0x0d,
0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x61, 0x0a,
0x09, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e,
0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12,
0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f,
0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x7b, 0x55, 0x55, 0x49, 0x44, 0x7d,
0x12, 0x55, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x73, 0x12,
0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x4c, 0x69, 0x73, 0x74,
0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x73, 0x12, 0x69, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72,
0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x75, 0x72,
0x73, 0x65, 0x2f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x3a,
0x01, 0x2a, 0x12, 0x69, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72,
0x73, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f,
0x75, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62,
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x69, 0x0a,
0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x12, 0x17, 0x2e,
0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x31, 0x2f, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43,
0x6f, 0x75, 0x72, 0x73, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x79, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x43,
0x6f, 0x75, 0x72, 0x73, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x70,
0x62, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67,
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x53,
0x65, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 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, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f,
0x53, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72,
0x3a, 0x01, 0x2a, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var file_courseService_proto_goTypes = []interface{}{
(*GetCourseRequest)(nil), // 0: pb.GetCourseRequest
(*Empty)(nil), // 1: pb.Empty
(*CreateCourseRequest)(nil), // 2: pb.CreateCourseRequest
(*UpdateCourseRequest)(nil), // 3: pb.UpdateCourseRequest
(*DeleteCourseRequest)(nil), // 4: pb.DeleteCourseRequest
(*SetCourseManagerRequest)(nil), // 5: pb.SetCourseManagerRequest
(*GetCourseResponse)(nil), // 6: pb.GetCourseResponse
(*ListCoursesResponse)(nil), // 7: pb.ListCoursesResponse
(*CreateCourseResponse)(nil), // 8: pb.CreateCourseResponse
(*UpdateCourseResponse)(nil), // 9: pb.UpdateCourseResponse
(*DeleteCourseResponse)(nil), // 10: pb.DeleteCourseResponse
(*SetCourseManagerResponse)(nil), // 11: pb.SetCourseManagerResponse
}
var file_courseService_proto_depIdxs = []int32{
0, // 0: pb.CourseService.GetCourse:input_type -> pb.GetCourseRequest
1, // 1: pb.CourseService.ListCourses:input_type -> pb.Empty
2, // 2: pb.CourseService.CreateCourse:input_type -> pb.CreateCourseRequest
3, // 3: pb.CourseService.UpdateCourse:input_type -> pb.UpdateCourseRequest
4, // 4: pb.CourseService.DeleteCourse:input_type -> pb.DeleteCourseRequest
5, // 5: pb.CourseService.SetCourseManager:input_type -> pb.SetCourseManagerRequest
6, // 6: pb.CourseService.GetCourse:output_type -> pb.GetCourseResponse
7, // 7: pb.CourseService.ListCourses:output_type -> pb.ListCoursesResponse
8, // 8: pb.CourseService.CreateCourse:output_type -> pb.CreateCourseResponse
9, // 9: pb.CourseService.UpdateCourse:output_type -> pb.UpdateCourseResponse
10, // 10: pb.CourseService.DeleteCourse:output_type -> pb.DeleteCourseResponse
11, // 11: pb.CourseService.SetCourseManager:output_type -> pb.SetCourseManagerResponse
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_courseService_proto_init() }
func file_courseService_proto_init() {
if File_courseService_proto != nil {
return
}
file_global_proto_init()
file_courseRequest_proto_init()
file_courseResponse_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_courseService_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_courseService_proto_goTypes,
DependencyIndexes: file_courseService_proto_depIdxs,
}.Build()
File_courseService_proto = out.File
file_courseService_proto_rawDesc = nil
file_courseService_proto_goTypes = nil
file_courseService_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
// CourseServiceClient is the client API for CourseService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CourseServiceClient interface {
// 获取指定课程的信息
GetCourse(ctx context.Context, in *GetCourseRequest, opts ...grpc.CallOption) (*GetCourseResponse, error)
// 列举所有课程
ListCourses(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListCoursesResponse, error)
// 仅管理员可调用
CreateCourse(ctx context.Context, in *CreateCourseRequest, opts ...grpc.CallOption) (*CreateCourseResponse, error)
UpdateCourse(ctx context.Context, in *UpdateCourseRequest, opts ...grpc.CallOption) (*UpdateCourseResponse, error)
DeleteCourse(ctx context.Context, in *DeleteCourseRequest, opts ...grpc.CallOption) (*DeleteCourseResponse, error)
SetCourseManager(ctx context.Context, in *SetCourseManagerRequest, opts ...grpc.CallOption) (*SetCourseManagerResponse, error)
}
type courseServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCourseServiceClient(cc grpc.ClientConnInterface) CourseServiceClient {
return &courseServiceClient{cc}
}
func (c *courseServiceClient) GetCourse(ctx context.Context, in *GetCourseRequest, opts ...grpc.CallOption) (*GetCourseResponse, error) {
out := new(GetCourseResponse)
err := c.cc.Invoke(ctx, "/pb.CourseService/GetCourse", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *courseServiceClient) ListCourses(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListCoursesResponse, error) {
out := new(ListCoursesResponse)
err := c.cc.Invoke(ctx, "/pb.CourseService/ListCourses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *courseServiceClient) CreateCourse(ctx context.Context, in *CreateCourseRequest, opts ...grpc.CallOption) (*CreateCourseResponse, error) {
out := new(CreateCourseResponse)
err := c.cc.Invoke(ctx, "/pb.CourseService/CreateCourse", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *courseServiceClient) UpdateCourse(ctx context.Context, in *UpdateCourseRequest, opts ...grpc.CallOption) (*UpdateCourseResponse, error) {
out := new(UpdateCourseResponse)
err := c.cc.Invoke(ctx, "/pb.CourseService/UpdateCourse", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *courseServiceClient) DeleteCourse(ctx context.Context, in *DeleteCourseRequest, opts ...grpc.CallOption) (*DeleteCourseResponse, error) {
out := new(DeleteCourseResponse)
err := c.cc.Invoke(ctx, "/pb.CourseService/DeleteCourse", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *courseServiceClient) SetCourseManager(ctx context.Context, in *SetCourseManagerRequest, opts ...grpc.CallOption) (*SetCourseManagerResponse, error) {
out := new(SetCourseManagerResponse)
err := c.cc.Invoke(ctx, "/pb.CourseService/SetCourseManager", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CourseServiceServer is the server API for CourseService service.
type CourseServiceServer interface {
// 获取指定课程的信息
GetCourse(context.Context, *GetCourseRequest) (*GetCourseResponse, error)
// 列举所有课程
ListCourses(context.Context, *Empty) (*ListCoursesResponse, error)
// 仅管理员可调用
CreateCourse(context.Context, *CreateCourseRequest) (*CreateCourseResponse, error)
UpdateCourse(context.Context, *UpdateCourseRequest) (*UpdateCourseResponse, error)
DeleteCourse(context.Context, *DeleteCourseRequest) (*DeleteCourseResponse, error)
SetCourseManager(context.Context, *SetCourseManagerRequest) (*SetCourseManagerResponse, error)
}
// UnimplementedCourseServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCourseServiceServer struct {
}
func (*UnimplementedCourseServiceServer) GetCourse(context.Context, *GetCourseRequest) (*GetCourseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCourse not implemented")
}
func (*UnimplementedCourseServiceServer) ListCourses(context.Context, *Empty) (*ListCoursesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCourses not implemented")
}
func (*UnimplementedCourseServiceServer) CreateCourse(context.Context, *CreateCourseRequest) (*CreateCourseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCourse not implemented")
}
func (*UnimplementedCourseServiceServer) UpdateCourse(context.Context, *UpdateCourseRequest) (*UpdateCourseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCourse not implemented")
}
func (*UnimplementedCourseServiceServer) DeleteCourse(context.Context, *DeleteCourseRequest) (*DeleteCourseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteCourse not implemented")
}
func (*UnimplementedCourseServiceServer) SetCourseManager(context.Context, *SetCourseManagerRequest) (*SetCourseManagerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetCourseManager not implemented")
}
func RegisterCourseServiceServer(s *grpc.Server, srv CourseServiceServer) {
s.RegisterService(&_CourseService_serviceDesc, srv)
}
func _CourseService_GetCourse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCourseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CourseServiceServer).GetCourse(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CourseService/GetCourse",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CourseServiceServer).GetCourse(ctx, req.(*GetCourseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CourseService_ListCourses_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.(CourseServiceServer).ListCourses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CourseService/ListCourses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CourseServiceServer).ListCourses(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _CourseService_CreateCourse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateCourseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CourseServiceServer).CreateCourse(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CourseService/CreateCourse",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CourseServiceServer).CreateCourse(ctx, req.(*CreateCourseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CourseService_UpdateCourse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCourseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CourseServiceServer).UpdateCourse(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CourseService/UpdateCourse",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CourseServiceServer).UpdateCourse(ctx, req.(*UpdateCourseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CourseService_DeleteCourse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteCourseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CourseServiceServer).DeleteCourse(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CourseService/DeleteCourse",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CourseServiceServer).DeleteCourse(ctx, req.(*DeleteCourseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CourseService_SetCourseManager_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetCourseManagerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CourseServiceServer).SetCourseManager(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.CourseService/SetCourseManager",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CourseServiceServer).SetCourseManager(ctx, req.(*SetCourseManagerRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CourseService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.CourseService",
HandlerType: (*CourseServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetCourse",
Handler: _CourseService_GetCourse_Handler,
},
{
MethodName: "ListCourses",
Handler: _CourseService_ListCourses_Handler,
},
{
MethodName: "CreateCourse",
Handler: _CourseService_CreateCourse_Handler,
},
{
MethodName: "UpdateCourse",
Handler: _CourseService_UpdateCourse_Handler,
},
{
MethodName: "DeleteCourse",
Handler: _CourseService_DeleteCourse_Handler,
},
{
MethodName: "SetCourseManager",
Handler: _CourseService_SetCourseManager_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "courseService.proto",
}
1
https://gitee.com/WisdomClassroom/core.git
git@gitee.com:WisdomClassroom/core.git
WisdomClassroom
core
core
v0.7.6

搜索帮助