// Code generated by protoc-gen-go. DO NOT EDIT. // source: system_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" v1 "cp-organization-management-gateway/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{ // 387 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xef, 0x4a, 0xeb, 0x30, 0x18, 0xc6, 0xcf, 0x97, 0x33, 0x0e, 0x2f, 0xc7, 0x7f, 0x71, 0x8c, 0x39, 0xa7, 0x8c, 0xa1, 0x88, 0xc8, 0x3a, 0xa6, 0x37, 0xa0, 0x4e, 0x04, 0xa1, 0xa0, 0x4c, 0x06, 0xe2, 0x07, 0x47, 0xba, 0xbe, 0xd4, 0xc2, 0xd6, 0xd6, 0x26, 0x6e, 0xd4, 0x1b, 0xf6, 0x36, 0x84, 0x64, 0xa9, 0x6d, 0x9a, 0x4c, 0x3f, 0xee, 0x79, 0x9e, 0xfc, 0xde, 0x3f, 0x4b, 0x0a, 0x75, 0x96, 0x31, 0x8e, 0xf3, 0x09, 0xc3, 0x74, 0x11, 0x4e, 0xd1, 0x49, 0xd2, 0x98, 0xc7, 0x04, 0x12, 0xcf, 0x59, 0x29, 0xad, 0xad, 0xc5, 0xa0, 0x2f, 0x43, 0xd2, 0x3c, 0xff, 0xfc, 0x07, 0xb5, 0x47, 0x21, 0x90, 0x4b, 0x80, 0x61, 0x8a, 0x94, 0xe3, 0x98, 0x61, 0x4a, 0x9a, 0x4e, 0xe2, 0x4d, 0x16, 0x03, 0xe7, 0x5b, 0x1a, 0xe1, 0xdb, 0x3b, 0x32, 0xde, 0x6a, 0x18, 0x9c, 0x64, 0x96, 0x75, 0xff, 0x90, 0x01, 0xfc, 0x75, 0xe3, 0x20, 0x8c, 0xc8, 0xee, 0x2a, 0x22, 0x7e, 0xa9, 0x73, 0x3b, 0x65, 0x51, 0x1e, 0x71, 0x61, 0x73, 0xf8, 0x4a, 0xa3, 0x00, 0x1f, 0x28, 0x63, 0xcb, 0x38, 0xf5, 0x49, 0x5b, 0xe1, 0x4b, 0xb2, 0x82, 0xb4, 0x2c, 0xae, 0xa4, 0x3d, 0x01, 0x91, 0x5d, 0xdd, 0xa7, 0x01, 0x8d, 0xc2, 0x0f, 0xca, 0xc3, 0x38, 0x22, 0x9d, 0x52, 0xc3, 0x45, 0x4b, 0x51, 0x0f, 0xd7, 0x24, 0x72, 0xf2, 0x0d, 0xce, 0xd0, 0x42, 0xae, 0x5a, 0x3a, 0xd9, 0x94, 0xc8, 0xc9, 0xe3, 0xc4, 0xb7, 0xf5, 0x5c, 0xb5, 0x74, 0xb2, 0x29, 0x21, 0xc9, 0x23, 0xd8, 0x2e, 0xca, 0x6e, 0xc8, 0x38, 0x51, 0xa7, 0x74, 0x43, 0x51, 0xdb, 0x56, 0x5f, 0x32, 0x7d, 0x68, 0x54, 0x97, 0x24, 0x2e, 0xcc, 0x91, 0x75, 0x87, 0xc5, 0xcb, 0xd3, 0xfd, 0x21, 0x25, 0xab, 0xbc, 0x40, 0x5d, 0xb7, 0x44, 0xf7, 0x5d, 0x43, 0x77, 0xca, 0x54, 0x15, 0x3a, 0x6b, 0x33, 0xf9, 0x14, 0xba, 0x2d, 0xd7, 0x98, 0x4f, 0x61, 0xb6, 0xf5, 0x29, 0x6c, 0x29, 0x59, 0x25, 0x83, 0x83, 0xea, 0x80, 0x0c, 0x79, 0x7e, 0xd5, 0xcf, 0x2c, 0x98, 0x52, 0x4a, 0xd5, 0x3c, 0xfd, 0x5d, 0x58, 0x96, 0xbe, 0x85, 0xff, 0xf2, 0x55, 0xbb, 0x71, 0x70, 0xe5, 0xfb, 0x44, 0x3d, 0x9b, 0xa2, 0xa8, 0xc0, 0x4d, 0xa3, 0x27, 0x39, 0x77, 0xb0, 0x91, 0xcb, 0xe2, 0x1f, 0xd8, 0xd7, 0xc3, 0xc5, 0xd5, 0xef, 0x99, 0x4d, 0x81, 0xba, 0x3e, 0x79, 0x3e, 0x9e, 0x26, 0xbd, 0xb8, 0xd0, 0x7d, 0x6f, 0x4e, 0x23, 0x1a, 0xe0, 0x1c, 0x23, 0xde, 0x0b, 0x28, 0xc7, 0x25, 0xcd, 0xfa, 0x89, 0xe7, 0xd5, 0xc4, 0x97, 0xe9, 0xe2, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xb0, 0xca, 0xfe, 0xce, 0x04, 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) // 获取机构超级管理员账号 OrganizationUserList(ctx context.Context, in *v1.OrganizationUserListRequest, opts ...grpc.CallOption) (*v1.OrganizationUserListReply, error) // 修改机构超级管理员账号 OrganizationUserUpdate(ctx context.Context, in *v1.OrganizationUserUpdateRequest, opts ...grpc.CallOption) (*v1.OrganizationUserUpdateReply, error) // 重置机构超级管理员账号密码 OrganizationUserResetPassword(ctx context.Context, in *v1.OrganizationUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.OrganizationUserResetPasswordReply, error) // 添加系统操作日志 SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) // 系统操作日志列表 SystemLogList(ctx context.Context, in *v1.SystemLogListRequest, opts ...grpc.CallOption) (*v1.SystemLogListReply, 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) OrganizationUserList(ctx context.Context, in *v1.OrganizationUserListRequest, opts ...grpc.CallOption) (*v1.OrganizationUserListReply, error) { out := new(v1.OrganizationUserListReply) err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationUserList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) OrganizationUserUpdate(ctx context.Context, in *v1.OrganizationUserUpdateRequest, opts ...grpc.CallOption) (*v1.OrganizationUserUpdateReply, error) { out := new(v1.OrganizationUserUpdateReply) err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationUserUpdate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) OrganizationUserResetPassword(ctx context.Context, in *v1.OrganizationUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.OrganizationUserResetPasswordReply, error) { out := new(v1.OrganizationUserResetPasswordReply) err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationUserResetPassword", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) { out := new(v1.SystemLogAddReply) err := c.cc.Invoke(ctx, "/pb.service.System/SystemLogAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) SystemLogList(ctx context.Context, in *v1.SystemLogListRequest, opts ...grpc.CallOption) (*v1.SystemLogListReply, error) { out := new(v1.SystemLogListReply) err := c.cc.Invoke(ctx, "/pb.service.System/SystemLogList", 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) // 获取机构超级管理员账号 OrganizationUserList(context.Context, *v1.OrganizationUserListRequest) (*v1.OrganizationUserListReply, error) // 修改机构超级管理员账号 OrganizationUserUpdate(context.Context, *v1.OrganizationUserUpdateRequest) (*v1.OrganizationUserUpdateReply, error) // 重置机构超级管理员账号密码 OrganizationUserResetPassword(context.Context, *v1.OrganizationUserResetPasswordRequest) (*v1.OrganizationUserResetPasswordReply, error) // 添加系统操作日志 SystemLogAdd(context.Context, *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) // 系统操作日志列表 SystemLogList(context.Context, *v1.SystemLogListRequest) (*v1.SystemLogListReply, 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) OrganizationUserList(ctx context.Context, req *v1.OrganizationUserListRequest) (*v1.OrganizationUserListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OrganizationUserList not implemented") } func (*UnimplementedSystemServer) OrganizationUserUpdate(ctx context.Context, req *v1.OrganizationUserUpdateRequest) (*v1.OrganizationUserUpdateReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OrganizationUserUpdate not implemented") } func (*UnimplementedSystemServer) OrganizationUserResetPassword(ctx context.Context, req *v1.OrganizationUserResetPasswordRequest) (*v1.OrganizationUserResetPasswordReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OrganizationUserResetPassword not implemented") } func (*UnimplementedSystemServer) SystemLogAdd(ctx context.Context, req *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemLogAdd not implemented") } func (*UnimplementedSystemServer) SystemLogList(ctx context.Context, req *v1.SystemLogListRequest) (*v1.SystemLogListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemLogList 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_OrganizationUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OrganizationUserListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).OrganizationUserList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/OrganizationUserList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).OrganizationUserList(ctx, req.(*v1.OrganizationUserListRequest)) } return interceptor(ctx, in, info, handler) } func _System_OrganizationUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OrganizationUserUpdateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).OrganizationUserUpdate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/OrganizationUserUpdate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).OrganizationUserUpdate(ctx, req.(*v1.OrganizationUserUpdateRequest)) } return interceptor(ctx, in, info, handler) } func _System_OrganizationUserResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OrganizationUserResetPasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).OrganizationUserResetPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/OrganizationUserResetPassword", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).OrganizationUserResetPassword(ctx, req.(*v1.OrganizationUserResetPasswordRequest)) } return interceptor(ctx, in, info, handler) } func _System_SystemLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemLogAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).SystemLogAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/SystemLogAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).SystemLogAdd(ctx, req.(*v1.SystemLogAddRequest)) } return interceptor(ctx, in, info, handler) } func _System_SystemLogList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemLogListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).SystemLogList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/SystemLogList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).SystemLogList(ctx, req.(*v1.SystemLogListRequest)) } 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: "OrganizationUserList", Handler: _System_OrganizationUserList_Handler, }, { MethodName: "OrganizationUserUpdate", Handler: _System_OrganizationUserUpdate_Handler, }, { MethodName: "OrganizationUserResetPassword", Handler: _System_OrganizationUserResetPassword_Handler, }, { MethodName: "SystemLogAdd", Handler: _System_SystemLogAdd_Handler, }, { MethodName: "SystemLogList", Handler: _System_SystemLogList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "system_service.proto", }