// Code generated by protoc-gen-go. DO NOT EDIT. // source: system_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" v1 "cp-organization-management/pb/v1" fmt "fmt" proto "github.com/golang/protobuf/proto" 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("system_service.proto", fileDescriptor_5d35c01297e407e4) } var fileDescriptor_5d35c01297e407e4 = []byte{ // 310 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x5d, 0x4b, 0xc3, 0x30, 0x14, 0x86, 0xbd, 0xd9, 0x2e, 0xce, 0x85, 0x1f, 0x99, 0x0c, 0x19, 0xd3, 0xe9, 0xf0, 0x76, 0x1d, 0xd5, 0x3f, 0xa0, 0xce, 0x3b, 0x0b, 0xca, 0x64, 0x20, 0x7a, 0x31, 0xd2, 0xf5, 0xd0, 0x15, 0xd6, 0x24, 0x26, 0x59, 0xa5, 0xfe, 0x6a, 0x7f, 0x82, 0xd0, 0x34, 0xb3, 0x9f, 0xf3, 0xb2, 0xef, 0xf3, 0x9e, 0xa7, 0x87, 0x90, 0xc0, 0xa9, 0x4a, 0x95, 0xc6, 0x78, 0xa9, 0x50, 0x26, 0xd1, 0x0a, 0x1d, 0x21, 0xb9, 0xe6, 0x04, 0x84, 0xef, 0xe4, 0xc9, 0xe0, 0x28, 0x71, 0xa7, 0xa6, 0x64, 0xe0, 0xcd, 0x4f, 0x07, 0xba, 0xaf, 0x59, 0x40, 0xee, 0x00, 0x66, 0x12, 0xa9, 0xc6, 0x85, 0x42, 0x49, 0xce, 0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, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0xc5, 0xf2, 0x76, 0x4f, 0x03, 0x00, 0x00, } // 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 // SystemClient is the client API for System service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SystemClient interface { // 创建系统用户 CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserReply, error) // 系统用户登录 Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) // 修改密码 ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) // 创建机构 CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationReply, error) // 删除机构 DeleteOrganization(ctx context.Context, in *v1.DeleteOrganizationRequest, opts ...grpc.CallOption) (*v1.DeleteOrganizationReply, error) // 修改机构 UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationReply, error) // 机构列表 OrganizationList(ctx context.Context, in *v1.OrganizationListRequest, opts ...grpc.CallOption) (*v1.OrganizationListReply, error) // 创建机构超级管理员账号 CreateOrganizationUser(ctx context.Context, in *v1.CreateOrganizationUserRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationUserReply, error) // 机构key认证,机构端调用 OrganizationKeyAuth(ctx context.Context, in *v1.OrganizationKeyAuthRequest, opts ...grpc.CallOption) (*v1.OrganizationKeyAuthReply, error) } type systemClient struct { cc grpc.ClientConnInterface } func NewSystemClient(cc grpc.ClientConnInterface) SystemClient { return &systemClient{cc} } func (c *systemClient) CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserReply, error) { out := new(v1.CreateUserReply) err := c.cc.Invoke(ctx, "/pb.service.System/CreateUser", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) { out := new(v1.LoginReply) err := c.cc.Invoke(ctx, "/pb.service.System/Login", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) { out := new(v1.ChangePasswordReply) err := c.cc.Invoke(ctx, "/pb.service.System/ChangePassword", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationReply, error) { out := new(v1.CreateOrganizationReply) err := c.cc.Invoke(ctx, "/pb.service.System/CreateOrganization", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) DeleteOrganization(ctx context.Context, in *v1.DeleteOrganizationRequest, opts ...grpc.CallOption) (*v1.DeleteOrganizationReply, error) { out := new(v1.DeleteOrganizationReply) err := c.cc.Invoke(ctx, "/pb.service.System/DeleteOrganization", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationReply, error) { out := new(v1.UpdateOrganizationReply) err := c.cc.Invoke(ctx, "/pb.service.System/UpdateOrganization", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) OrganizationList(ctx context.Context, in *v1.OrganizationListRequest, opts ...grpc.CallOption) (*v1.OrganizationListReply, error) { out := new(v1.OrganizationListReply) err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) CreateOrganizationUser(ctx context.Context, in *v1.CreateOrganizationUserRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationUserReply, error) { out := new(v1.CreateOrganizationUserReply) err := c.cc.Invoke(ctx, "/pb.service.System/CreateOrganizationUser", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) OrganizationKeyAuth(ctx context.Context, in *v1.OrganizationKeyAuthRequest, opts ...grpc.CallOption) (*v1.OrganizationKeyAuthReply, error) { out := new(v1.OrganizationKeyAuthReply) err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationKeyAuth", in, out, opts...) if err != nil { return nil, err } return out, nil } // SystemServer is the server API for System service. type SystemServer interface { // 创建系统用户 CreateUser(context.Context, *v1.CreateUserRequest) (*v1.CreateUserReply, error) // 系统用户登录 Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error) // 修改密码 ChangePassword(context.Context, *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) // 创建机构 CreateOrganization(context.Context, *v1.CreateOrganizationRequest) (*v1.CreateOrganizationReply, error) // 删除机构 DeleteOrganization(context.Context, *v1.DeleteOrganizationRequest) (*v1.DeleteOrganizationReply, error) // 修改机构 UpdateOrganization(context.Context, *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationReply, error) // 机构列表 OrganizationList(context.Context, *v1.OrganizationListRequest) (*v1.OrganizationListReply, error) // 创建机构超级管理员账号 CreateOrganizationUser(context.Context, *v1.CreateOrganizationUserRequest) (*v1.CreateOrganizationUserReply, error) // 机构key认证,机构端调用 OrganizationKeyAuth(context.Context, *v1.OrganizationKeyAuthRequest) (*v1.OrganizationKeyAuthReply, error) } // UnimplementedSystemServer can be embedded to have forward compatible implementations. type UnimplementedSystemServer struct { } func (*UnimplementedSystemServer) CreateUser(ctx context.Context, req *v1.CreateUserRequest) (*v1.CreateUserReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented") } func (*UnimplementedSystemServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") } func (*UnimplementedSystemServer) ChangePassword(ctx context.Context, req *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented") } func (*UnimplementedSystemServer) CreateOrganization(ctx context.Context, req *v1.CreateOrganizationRequest) (*v1.CreateOrganizationReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateOrganization not implemented") } func (*UnimplementedSystemServer) DeleteOrganization(ctx context.Context, req *v1.DeleteOrganizationRequest) (*v1.DeleteOrganizationReply, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteOrganization not implemented") } func (*UnimplementedSystemServer) UpdateOrganization(ctx context.Context, req *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationReply, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateOrganization not implemented") } func (*UnimplementedSystemServer) OrganizationList(ctx context.Context, req *v1.OrganizationListRequest) (*v1.OrganizationListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OrganizationList not implemented") } func (*UnimplementedSystemServer) CreateOrganizationUser(ctx context.Context, req *v1.CreateOrganizationUserRequest) (*v1.CreateOrganizationUserReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateOrganizationUser not implemented") } func (*UnimplementedSystemServer) OrganizationKeyAuth(ctx context.Context, req *v1.OrganizationKeyAuthRequest) (*v1.OrganizationKeyAuthReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OrganizationKeyAuth not implemented") } func RegisterSystemServer(s *grpc.Server, srv SystemServer) { s.RegisterService(&_System_serviceDesc, srv) } func _System_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CreateUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).CreateUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/CreateUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).CreateUser(ctx, req.(*v1.CreateUserRequest)) } return interceptor(ctx, in, info, handler) } func _System_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.LoginRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).Login(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/Login", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).Login(ctx, req.(*v1.LoginRequest)) } return interceptor(ctx, in, info, handler) } func _System_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ChangePasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).ChangePassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/ChangePassword", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).ChangePassword(ctx, req.(*v1.ChangePasswordRequest)) } return interceptor(ctx, in, info, handler) } func _System_CreateOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CreateOrganizationRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).CreateOrganization(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/CreateOrganization", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).CreateOrganization(ctx, req.(*v1.CreateOrganizationRequest)) } return interceptor(ctx, in, info, handler) } func _System_DeleteOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.DeleteOrganizationRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).DeleteOrganization(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/DeleteOrganization", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).DeleteOrganization(ctx, req.(*v1.DeleteOrganizationRequest)) } return interceptor(ctx, in, info, handler) } func _System_UpdateOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.UpdateOrganizationRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).UpdateOrganization(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/UpdateOrganization", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).UpdateOrganization(ctx, req.(*v1.UpdateOrganizationRequest)) } return interceptor(ctx, in, info, handler) } func _System_OrganizationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OrganizationListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).OrganizationList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/OrganizationList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).OrganizationList(ctx, req.(*v1.OrganizationListRequest)) } return interceptor(ctx, in, info, handler) } func _System_CreateOrganizationUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CreateOrganizationUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).CreateOrganizationUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/CreateOrganizationUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).CreateOrganizationUser(ctx, req.(*v1.CreateOrganizationUserRequest)) } return interceptor(ctx, in, info, handler) } func _System_OrganizationKeyAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OrganizationKeyAuthRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).OrganizationKeyAuth(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/OrganizationKeyAuth", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).OrganizationKeyAuth(ctx, req.(*v1.OrganizationKeyAuthRequest)) } return interceptor(ctx, in, info, handler) } var _System_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.System", HandlerType: (*SystemServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _System_CreateUser_Handler, }, { MethodName: "Login", Handler: _System_Login_Handler, }, { MethodName: "ChangePassword", Handler: _System_ChangePassword_Handler, }, { MethodName: "CreateOrganization", Handler: _System_CreateOrganization_Handler, }, { MethodName: "DeleteOrganization", Handler: _System_DeleteOrganization_Handler, }, { MethodName: "UpdateOrganization", Handler: _System_UpdateOrganization_Handler, }, { MethodName: "OrganizationList", Handler: _System_OrganizationList_Handler, }, { MethodName: "CreateOrganizationUser", Handler: _System_CreateOrganizationUser_Handler, }, { MethodName: "OrganizationKeyAuth", Handler: _System_OrganizationKeyAuth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "system_service.proto", }