365 lines
15 KiB
Go
365 lines
15 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.26.0
|
|
// protoc v3.14.0
|
|
// source: itcoursee/protocol/tag/rpc.proto
|
|
|
|
package tag
|
|
|
|
import (
|
|
context "context"
|
|
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)
|
|
)
|
|
|
|
var File_itcoursee_protocol_tag_rpc_proto protoreflect.FileDescriptor
|
|
|
|
var file_itcoursee_protocol_tag_rpc_proto_rawDesc = []byte{
|
|
0x0a, 0x20, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x74, 0x61, 0x67, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x12, 0x16, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x1a, 0x20, 0x69, 0x74, 0x63, 0x6f,
|
|
0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x74,
|
|
0x61, 0x67, 0x2f, 0x61, 0x64, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x69, 0x74,
|
|
0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
|
|
0x2f, 0x74, 0x61, 0x67, 0x2f, 0x67, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23,
|
|
0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
|
|
0x6f, 0x6c, 0x2f, 0x74, 0x61, 0x67, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x74, 0x61, 0x67, 0x2f, 0x64, 0x65, 0x6c, 0x65,
|
|
0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x9f, 0x03, 0x0a, 0x03, 0x52, 0x70, 0x63,
|
|
0x12, 0x47, 0x0a, 0x03, 0x41, 0x64, 0x64, 0x12, 0x1e, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72,
|
|
0x73, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67,
|
|
0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72,
|
|
0x73, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67,
|
|
0x2e, 0x41, 0x64, 0x64, 0x52, 0x73, 0x70, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x03, 0x47, 0x65, 0x74,
|
|
0x12, 0x1e, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71,
|
|
0x1a, 0x1e, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x73, 0x70,
|
|
0x22, 0x00, 0x12, 0x62, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x73, 0x42, 0x79, 0x50, 0x61, 0x67, 0x69,
|
|
0x6e, 0x67, 0x12, 0x27, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x73,
|
|
0x42, 0x79, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x27, 0x2e, 0x69, 0x74,
|
|
0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
|
|
0x2e, 0x74, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x73, 0x42, 0x79, 0x50, 0x61, 0x67, 0x69, 0x6e,
|
|
0x67, 0x52, 0x73, 0x70, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
0x12, 0x21, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x2e, 0x55, 0x70, 0x64,
|
|
0x61, 0x74, 0x65, 0x52, 0x73, 0x70, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65,
|
|
0x74, 0x65, 0x12, 0x21, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x2e, 0x44, 0x65, 0x6c, 0x65,
|
|
0x74, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65,
|
|
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x2e, 0x44,
|
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x73, 0x70, 0x22, 0x00, 0x42, 0x3b, 0x0a, 0x11, 0x63, 0x6f,
|
|
0x6d, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x74, 0x61, 0x67, 0x50,
|
|
0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x63,
|
|
0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f,
|
|
0x74, 0x61, 0x67, 0x3b, 0x74, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var file_itcoursee_protocol_tag_rpc_proto_goTypes = []interface{}{
|
|
(*AddReq)(nil), // 0: itcoursee.protocol.tag.AddReq
|
|
(*GetReq)(nil), // 1: itcoursee.protocol.tag.GetReq
|
|
(*GetsByPagingReq)(nil), // 2: itcoursee.protocol.tag.GetsByPagingReq
|
|
(*UpdateReq)(nil), // 3: itcoursee.protocol.tag.UpdateReq
|
|
(*DeleteReq)(nil), // 4: itcoursee.protocol.tag.DeleteReq
|
|
(*AddRsp)(nil), // 5: itcoursee.protocol.tag.AddRsp
|
|
(*GetRsp)(nil), // 6: itcoursee.protocol.tag.GetRsp
|
|
(*GetsByPagingRsp)(nil), // 7: itcoursee.protocol.tag.GetsByPagingRsp
|
|
(*UpdateRsp)(nil), // 8: itcoursee.protocol.tag.UpdateRsp
|
|
(*DeleteRsp)(nil), // 9: itcoursee.protocol.tag.DeleteRsp
|
|
}
|
|
var file_itcoursee_protocol_tag_rpc_proto_depIdxs = []int32{
|
|
0, // 0: itcoursee.protocol.tag.Rpc.Add:input_type -> itcoursee.protocol.tag.AddReq
|
|
1, // 1: itcoursee.protocol.tag.Rpc.Get:input_type -> itcoursee.protocol.tag.GetReq
|
|
2, // 2: itcoursee.protocol.tag.Rpc.GetsByPaging:input_type -> itcoursee.protocol.tag.GetsByPagingReq
|
|
3, // 3: itcoursee.protocol.tag.Rpc.Update:input_type -> itcoursee.protocol.tag.UpdateReq
|
|
4, // 4: itcoursee.protocol.tag.Rpc.Delete:input_type -> itcoursee.protocol.tag.DeleteReq
|
|
5, // 5: itcoursee.protocol.tag.Rpc.Add:output_type -> itcoursee.protocol.tag.AddRsp
|
|
6, // 6: itcoursee.protocol.tag.Rpc.Get:output_type -> itcoursee.protocol.tag.GetRsp
|
|
7, // 7: itcoursee.protocol.tag.Rpc.GetsByPaging:output_type -> itcoursee.protocol.tag.GetsByPagingRsp
|
|
8, // 8: itcoursee.protocol.tag.Rpc.Update:output_type -> itcoursee.protocol.tag.UpdateRsp
|
|
9, // 9: itcoursee.protocol.tag.Rpc.Delete:output_type -> itcoursee.protocol.tag.DeleteRsp
|
|
5, // [5:10] is the sub-list for method output_type
|
|
0, // [0:5] 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_itcoursee_protocol_tag_rpc_proto_init() }
|
|
func file_itcoursee_protocol_tag_rpc_proto_init() {
|
|
if File_itcoursee_protocol_tag_rpc_proto != nil {
|
|
return
|
|
}
|
|
file_itcoursee_protocol_tag_add_proto_init()
|
|
file_itcoursee_protocol_tag_get_proto_init()
|
|
file_itcoursee_protocol_tag_update_proto_init()
|
|
file_itcoursee_protocol_tag_delete_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_itcoursee_protocol_tag_rpc_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_itcoursee_protocol_tag_rpc_proto_goTypes,
|
|
DependencyIndexes: file_itcoursee_protocol_tag_rpc_proto_depIdxs,
|
|
}.Build()
|
|
File_itcoursee_protocol_tag_rpc_proto = out.File
|
|
file_itcoursee_protocol_tag_rpc_proto_rawDesc = nil
|
|
file_itcoursee_protocol_tag_rpc_proto_goTypes = nil
|
|
file_itcoursee_protocol_tag_rpc_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
|
|
|
|
// RpcClient is the client API for Rpc service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type RpcClient interface {
|
|
// 创建一个标签
|
|
Add(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddRsp, error)
|
|
// 获取一个标签
|
|
Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetRsp, error)
|
|
// 分页获取标签
|
|
GetsByPaging(ctx context.Context, in *GetsByPagingReq, opts ...grpc.CallOption) (*GetsByPagingRsp, error)
|
|
// 修改一个标签
|
|
Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*UpdateRsp, error)
|
|
// 删除一个标签
|
|
Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRsp, error)
|
|
}
|
|
|
|
type rpcClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewRpcClient(cc grpc.ClientConnInterface) RpcClient {
|
|
return &rpcClient{cc}
|
|
}
|
|
|
|
func (c *rpcClient) Add(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*AddRsp, error) {
|
|
out := new(AddRsp)
|
|
err := c.cc.Invoke(ctx, "/itcoursee.protocol.tag.Rpc/Add", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *rpcClient) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetRsp, error) {
|
|
out := new(GetRsp)
|
|
err := c.cc.Invoke(ctx, "/itcoursee.protocol.tag.Rpc/Get", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *rpcClient) GetsByPaging(ctx context.Context, in *GetsByPagingReq, opts ...grpc.CallOption) (*GetsByPagingRsp, error) {
|
|
out := new(GetsByPagingRsp)
|
|
err := c.cc.Invoke(ctx, "/itcoursee.protocol.tag.Rpc/GetsByPaging", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *rpcClient) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*UpdateRsp, error) {
|
|
out := new(UpdateRsp)
|
|
err := c.cc.Invoke(ctx, "/itcoursee.protocol.tag.Rpc/Update", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *rpcClient) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRsp, error) {
|
|
out := new(DeleteRsp)
|
|
err := c.cc.Invoke(ctx, "/itcoursee.protocol.tag.Rpc/Delete", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// RpcServer is the server API for Rpc service.
|
|
type RpcServer interface {
|
|
// 创建一个标签
|
|
Add(context.Context, *AddReq) (*AddRsp, error)
|
|
// 获取一个标签
|
|
Get(context.Context, *GetReq) (*GetRsp, error)
|
|
// 分页获取标签
|
|
GetsByPaging(context.Context, *GetsByPagingReq) (*GetsByPagingRsp, error)
|
|
// 修改一个标签
|
|
Update(context.Context, *UpdateReq) (*UpdateRsp, error)
|
|
// 删除一个标签
|
|
Delete(context.Context, *DeleteReq) (*DeleteRsp, error)
|
|
}
|
|
|
|
// UnimplementedRpcServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedRpcServer struct {
|
|
}
|
|
|
|
func (*UnimplementedRpcServer) Add(context.Context, *AddReq) (*AddRsp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Add not implemented")
|
|
}
|
|
func (*UnimplementedRpcServer) Get(context.Context, *GetReq) (*GetRsp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
|
}
|
|
func (*UnimplementedRpcServer) GetsByPaging(context.Context, *GetsByPagingReq) (*GetsByPagingRsp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetsByPaging not implemented")
|
|
}
|
|
func (*UnimplementedRpcServer) Update(context.Context, *UpdateReq) (*UpdateRsp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
|
}
|
|
func (*UnimplementedRpcServer) Delete(context.Context, *DeleteReq) (*DeleteRsp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
}
|
|
|
|
func RegisterRpcServer(s *grpc.Server, srv RpcServer) {
|
|
s.RegisterService(&_Rpc_serviceDesc, srv)
|
|
}
|
|
|
|
func _Rpc_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AddReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RpcServer).Add(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/itcoursee.protocol.tag.Rpc/Add",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RpcServer).Add(ctx, req.(*AddReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rpc_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RpcServer).Get(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/itcoursee.protocol.tag.Rpc/Get",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RpcServer).Get(ctx, req.(*GetReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rpc_GetsByPaging_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetsByPagingReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RpcServer).GetsByPaging(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/itcoursee.protocol.tag.Rpc/GetsByPaging",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RpcServer).GetsByPaging(ctx, req.(*GetsByPagingReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rpc_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RpcServer).Update(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/itcoursee.protocol.tag.Rpc/Update",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RpcServer).Update(ctx, req.(*UpdateReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rpc_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DeleteReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RpcServer).Delete(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/itcoursee.protocol.tag.Rpc/Delete",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RpcServer).Delete(ctx, req.(*DeleteReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Rpc_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "itcoursee.protocol.tag.Rpc",
|
|
HandlerType: (*RpcServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Add",
|
|
Handler: _Rpc_Add_Handler,
|
|
},
|
|
{
|
|
MethodName: "Get",
|
|
Handler: _Rpc_Get_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetsByPaging",
|
|
Handler: _Rpc_GetsByPaging_Handler,
|
|
},
|
|
{
|
|
MethodName: "Update",
|
|
Handler: _Rpc_Update_Handler,
|
|
},
|
|
{
|
|
MethodName: "Delete",
|
|
Handler: _Rpc_Delete_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "itcoursee/protocol/tag/rpc.proto",
|
|
}
|