// Code generated by protoc-gen-go. DO NOT EDIT. // source: organization_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" v1 "cp-system-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("organization_service.proto", fileDescriptor_e19a463063c4fee0) } var fileDescriptor_e19a463063c4fee0 = []byte{ // 264 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4a, 0x03, 0x31, 0x10, 0x86, 0x15, 0xc4, 0x43, 0xf0, 0x34, 0x28, 0xa5, 0x7b, 0x90, 0xa5, 0x52, 0xbc, 0xd8, 0x94, 0xea, 0x1b, 0xa8, 0x17, 0x41, 0x51, 0x2a, 0x05, 0xf1, 0x60, 0x49, 0xda, 0x61, 0x09, 0xb8, 0x49, 0xcc, 0x4c, 0x57, 0xea, 0xd1, 0x77, 0xf1, 0x3d, 0xc5, 0x66, 0x57, 0x57, 0xdc, 0x6d, 0xbd, 0xce, 0xff, 0xfd, 0xff, 0x97, 0x43, 0x44, 0xe2, 0x42, 0xa6, 0xac, 0x79, 0x53, 0x6c, 0x9c, 0x9d, 0x12, 0x86, 0xc2, 0xcc, 0x50, 0xfa, 0xe0, 0xd8, 0x81, 0xf0, 0x5a, 0x96, 0x97, 0xe4, 0xa0, 0x18, 0x0d, 0xeb, 0x68, 0x44, 0x4e, 0x3f, 0x76, 0xc4, 0xde, 0x6d, 0xed, 0x0c, 0x0f, 0x02, 0xae, 0xac, 0xe1, 0xfa, 0xed, 0x52, 0x43, 0x2a, 0xbd, 0x9e, 0x16, 0x23, 0xf9, 0x37, 0x1a, 0xe3, 0xcb, 0x02, 0x89, 0x93, 0xc3, 0x35, 0x84, 0x7f, 0x5e, 0xf6, 0xb6, 0xe0, 0x49, 0xec, 0x5f, 0x04, 0x54, 0x8c, 0x37, 0xca, 0xaa, 0x0c, 0x73, 0xb4, 0x3c, 0x21, 0x0c, 0xd0, 0x2b, 0x9b, 0x4d, 0x61, 0xb5, 0x9e, 0xae, 0x65, 0xe2, 0x7e, 0x26, 0x3a, 0x3f, 0xc1, 0xfd, 0xc2, 0x63, 0xf8, 0x4a, 0xaf, 0x0d, 0x31, 0xf4, 0xcb, 0x7a, 0x4b, 0x5e, 0x59, 0x8e, 0x36, 0x61, 0x51, 0x94, 0x8b, 0x6e, 0x03, 0x31, 0xf1, 0x73, 0xc5, 0x08, 0xc7, 0xed, 0x1b, 0x91, 0xa8, 0x64, 0xfd, 0xcd, 0x60, 0xd4, 0xbd, 0x6f, 0x8b, 0xb4, 0x01, 0x1a, 0x23, 0x21, 0xdf, 0x29, 0xa2, 0x57, 0x17, 0xe6, 0x20, 0xdb, 0xd7, 0x7e, 0x81, 0x95, 0xfd, 0xe4, 0xdf, 0xfc, 0xea, 0x11, 0xe7, 0xdd, 0xc7, 0xce, 0xcc, 0x0f, 0x68, 0x49, 0x8c, 0xf9, 0x20, 0xff, 0x2e, 0x0d, 0xbd, 0xd6, 0xbb, 0xab, 0x9f, 0x74, 0xf6, 0x19, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x56, 0x14, 0xf6, 0x8a, 0x02, 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 // OrganizationClient is the client API for Organization service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type OrganizationClient interface { // 初始化数据库 InitOrganizationDb(ctx context.Context, in *v1.InitOrganizationDbRequest, opts ...grpc.CallOption) (*v1.InitOrganizationDbReply, error) // 创建机构账号 CreateManagementUser(ctx context.Context, in *v1.CreateManagementUserRequest, opts ...grpc.CallOption) (*v1.CreateManagementUserReply, error) // 系统端获取超级管理员账户列表 ManagementSuperUserList(ctx context.Context, in *v1.ManagementSuperUserListRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserListReply, error) // 系统端更新超级管理员用户信息 ManagementSuperUserUpdate(ctx context.Context, in *v1.ManagementSuperUserUpdateRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserUpdateReply, error) // 系统端重置超级管理员密码 ManagementSuperUserResetPassword(ctx context.Context, in *v1.ManagementSuperUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserResetPasswordReply, error) } type organizationClient struct { cc grpc.ClientConnInterface } func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient { return &organizationClient{cc} } func (c *organizationClient) InitOrganizationDb(ctx context.Context, in *v1.InitOrganizationDbRequest, opts ...grpc.CallOption) (*v1.InitOrganizationDbReply, error) { out := new(v1.InitOrganizationDbReply) err := c.cc.Invoke(ctx, "/pb.service.Organization/InitOrganizationDb", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *organizationClient) CreateManagementUser(ctx context.Context, in *v1.CreateManagementUserRequest, opts ...grpc.CallOption) (*v1.CreateManagementUserReply, error) { out := new(v1.CreateManagementUserReply) err := c.cc.Invoke(ctx, "/pb.service.Organization/CreateManagementUser", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *organizationClient) ManagementSuperUserList(ctx context.Context, in *v1.ManagementSuperUserListRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserListReply, error) { out := new(v1.ManagementSuperUserListReply) err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementSuperUserList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *organizationClient) ManagementSuperUserUpdate(ctx context.Context, in *v1.ManagementSuperUserUpdateRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserUpdateReply, error) { out := new(v1.ManagementSuperUserUpdateReply) err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementSuperUserUpdate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *organizationClient) ManagementSuperUserResetPassword(ctx context.Context, in *v1.ManagementSuperUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserResetPasswordReply, error) { out := new(v1.ManagementSuperUserResetPasswordReply) err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementSuperUserResetPassword", in, out, opts...) if err != nil { return nil, err } return out, nil } // OrganizationServer is the server API for Organization service. type OrganizationServer interface { // 初始化数据库 InitOrganizationDb(context.Context, *v1.InitOrganizationDbRequest) (*v1.InitOrganizationDbReply, error) // 创建机构账号 CreateManagementUser(context.Context, *v1.CreateManagementUserRequest) (*v1.CreateManagementUserReply, error) // 系统端获取超级管理员账户列表 ManagementSuperUserList(context.Context, *v1.ManagementSuperUserListRequest) (*v1.ManagementSuperUserListReply, error) // 系统端更新超级管理员用户信息 ManagementSuperUserUpdate(context.Context, *v1.ManagementSuperUserUpdateRequest) (*v1.ManagementSuperUserUpdateReply, error) // 系统端重置超级管理员密码 ManagementSuperUserResetPassword(context.Context, *v1.ManagementSuperUserResetPasswordRequest) (*v1.ManagementSuperUserResetPasswordReply, error) } // UnimplementedOrganizationServer can be embedded to have forward compatible implementations. type UnimplementedOrganizationServer struct { } func (*UnimplementedOrganizationServer) InitOrganizationDb(ctx context.Context, req *v1.InitOrganizationDbRequest) (*v1.InitOrganizationDbReply, error) { return nil, status.Errorf(codes.Unimplemented, "method InitOrganizationDb not implemented") } func (*UnimplementedOrganizationServer) CreateManagementUser(ctx context.Context, req *v1.CreateManagementUserRequest) (*v1.CreateManagementUserReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateManagementUser not implemented") } func (*UnimplementedOrganizationServer) ManagementSuperUserList(ctx context.Context, req *v1.ManagementSuperUserListRequest) (*v1.ManagementSuperUserListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ManagementSuperUserList not implemented") } func (*UnimplementedOrganizationServer) ManagementSuperUserUpdate(ctx context.Context, req *v1.ManagementSuperUserUpdateRequest) (*v1.ManagementSuperUserUpdateReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ManagementSuperUserUpdate not implemented") } func (*UnimplementedOrganizationServer) ManagementSuperUserResetPassword(ctx context.Context, req *v1.ManagementSuperUserResetPasswordRequest) (*v1.ManagementSuperUserResetPasswordReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ManagementSuperUserResetPassword not implemented") } func RegisterOrganizationServer(s *grpc.Server, srv OrganizationServer) { s.RegisterService(&_Organization_serviceDesc, srv) } func _Organization_InitOrganizationDb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.InitOrganizationDbRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OrganizationServer).InitOrganizationDb(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Organization/InitOrganizationDb", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServer).InitOrganizationDb(ctx, req.(*v1.InitOrganizationDbRequest)) } return interceptor(ctx, in, info, handler) } func _Organization_CreateManagementUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CreateManagementUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OrganizationServer).CreateManagementUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Organization/CreateManagementUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServer).CreateManagementUser(ctx, req.(*v1.CreateManagementUserRequest)) } return interceptor(ctx, in, info, handler) } func _Organization_ManagementSuperUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ManagementSuperUserListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OrganizationServer).ManagementSuperUserList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Organization/ManagementSuperUserList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServer).ManagementSuperUserList(ctx, req.(*v1.ManagementSuperUserListRequest)) } return interceptor(ctx, in, info, handler) } func _Organization_ManagementSuperUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ManagementSuperUserUpdateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OrganizationServer).ManagementSuperUserUpdate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Organization/ManagementSuperUserUpdate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServer).ManagementSuperUserUpdate(ctx, req.(*v1.ManagementSuperUserUpdateRequest)) } return interceptor(ctx, in, info, handler) } func _Organization_ManagementSuperUserResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ManagementSuperUserResetPasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OrganizationServer).ManagementSuperUserResetPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Organization/ManagementSuperUserResetPassword", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServer).ManagementSuperUserResetPassword(ctx, req.(*v1.ManagementSuperUserResetPasswordRequest)) } return interceptor(ctx, in, info, handler) } var _Organization_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Organization", HandlerType: (*OrganizationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InitOrganizationDb", Handler: _Organization_InitOrganizationDb_Handler, }, { MethodName: "CreateManagementUser", Handler: _Organization_CreateManagementUser_Handler, }, { MethodName: "ManagementSuperUserList", Handler: _Organization_ManagementSuperUserList_Handler, }, { MethodName: "ManagementSuperUserUpdate", Handler: _Organization_ManagementSuperUserUpdate_Handler, }, { MethodName: "ManagementSuperUserResetPassword", Handler: _Organization_ManagementSuperUserResetPassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "organization_service.proto", }