chore: auto-generate protobuf files [skip ci]
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,11 @@ const (
|
||||
UsersService_UpdateProfile_FullMethodName = "/users.v1.UsersService/UpdateProfile"
|
||||
UsersService_CreateProfile_FullMethodName = "/users.v1.UsersService/CreateProfile"
|
||||
UsersService_SoftDeleteProfile_FullMethodName = "/users.v1.UsersService/SoftDeleteProfile"
|
||||
UsersService_BlockUser_FullMethodName = "/users.v1.UsersService/BlockUser"
|
||||
UsersService_UnblockUser_FullMethodName = "/users.v1.UsersService/UnblockUser"
|
||||
UsersService_GetBlockedUsers_FullMethodName = "/users.v1.UsersService/GetBlockedUsers"
|
||||
UsersService_AddContact_FullMethodName = "/users.v1.UsersService/AddContact"
|
||||
UsersService_GetContacts_FullMethodName = "/users.v1.UsersService/GetContacts"
|
||||
)
|
||||
|
||||
// UsersServiceClient is the client API for UsersService service.
|
||||
@@ -34,6 +39,12 @@ type UsersServiceClient interface {
|
||||
// Для системного использования (вызывается из Auth/Admin)
|
||||
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error)
|
||||
SoftDeleteProfile(ctx context.Context, in *SoftDeleteProfileRequest, opts ...grpc.CallOption) (*SoftDeleteProfileResponse, error)
|
||||
// --- НОВЫЕ МЕТОДЫ МЕССЕНДЖЕРА ---
|
||||
BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error)
|
||||
UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error)
|
||||
GetBlockedUsers(ctx context.Context, in *GetBlockedUsersRequest, opts ...grpc.CallOption) (*GetBlockedUsersResponse, error)
|
||||
AddContact(ctx context.Context, in *AddContactRequest, opts ...grpc.CallOption) (*AddContactResponse, error)
|
||||
GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*GetContactsResponse, error)
|
||||
}
|
||||
|
||||
type usersServiceClient struct {
|
||||
@@ -84,6 +95,56 @@ func (c *usersServiceClient) SoftDeleteProfile(ctx context.Context, in *SoftDele
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(BlockUserResponse)
|
||||
err := c.cc.Invoke(ctx, UsersService_BlockUser_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UnblockUserResponse)
|
||||
err := c.cc.Invoke(ctx, UsersService_UnblockUser_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) GetBlockedUsers(ctx context.Context, in *GetBlockedUsersRequest, opts ...grpc.CallOption) (*GetBlockedUsersResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetBlockedUsersResponse)
|
||||
err := c.cc.Invoke(ctx, UsersService_GetBlockedUsers_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) AddContact(ctx context.Context, in *AddContactRequest, opts ...grpc.CallOption) (*AddContactResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AddContactResponse)
|
||||
err := c.cc.Invoke(ctx, UsersService_AddContact_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*GetContactsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetContactsResponse)
|
||||
err := c.cc.Invoke(ctx, UsersService_GetContacts_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// UsersServiceServer is the server API for UsersService service.
|
||||
// All implementations must embed UnimplementedUsersServiceServer
|
||||
// for forward compatibility.
|
||||
@@ -93,6 +154,12 @@ type UsersServiceServer interface {
|
||||
// Для системного использования (вызывается из Auth/Admin)
|
||||
CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
|
||||
SoftDeleteProfile(context.Context, *SoftDeleteProfileRequest) (*SoftDeleteProfileResponse, error)
|
||||
// --- НОВЫЕ МЕТОДЫ МЕССЕНДЖЕРА ---
|
||||
BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error)
|
||||
UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error)
|
||||
GetBlockedUsers(context.Context, *GetBlockedUsersRequest) (*GetBlockedUsersResponse, error)
|
||||
AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error)
|
||||
GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error)
|
||||
mustEmbedUnimplementedUsersServiceServer()
|
||||
}
|
||||
|
||||
@@ -115,6 +182,21 @@ func (UnimplementedUsersServiceServer) CreateProfile(context.Context, *CreatePro
|
||||
func (UnimplementedUsersServiceServer) SoftDeleteProfile(context.Context, *SoftDeleteProfileRequest) (*SoftDeleteProfileResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SoftDeleteProfile not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method BlockUser not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UnblockUser not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) GetBlockedUsers(context.Context, *GetBlockedUsersRequest) (*GetBlockedUsersResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetBlockedUsers not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddContact not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetContacts not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) mustEmbedUnimplementedUsersServiceServer() {}
|
||||
func (UnimplementedUsersServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -208,6 +290,96 @@ func _UsersService_SoftDeleteProfile_Handler(srv interface{}, ctx context.Contex
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_BlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BlockUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).BlockUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: UsersService_BlockUser_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).BlockUser(ctx, req.(*BlockUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_UnblockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UnblockUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).UnblockUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: UsersService_UnblockUser_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).UnblockUser(ctx, req.(*UnblockUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_GetBlockedUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetBlockedUsersRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).GetBlockedUsers(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: UsersService_GetBlockedUsers_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).GetBlockedUsers(ctx, req.(*GetBlockedUsersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_AddContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddContactRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).AddContact(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: UsersService_AddContact_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).AddContact(ctx, req.(*AddContactRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_GetContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetContactsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).GetContacts(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: UsersService_GetContacts_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).GetContacts(ctx, req.(*GetContactsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// UsersService_ServiceDesc is the grpc.ServiceDesc for UsersService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -231,6 +403,26 @@ var UsersService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "SoftDeleteProfile",
|
||||
Handler: _UsersService_SoftDeleteProfile_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "BlockUser",
|
||||
Handler: _UsersService_BlockUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UnblockUser",
|
||||
Handler: _UsersService_UnblockUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetBlockedUsers",
|
||||
Handler: _UsersService_GetBlockedUsers_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddContact",
|
||||
Handler: _UsersService_AddContact_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetContacts",
|
||||
Handler: _UsersService_GetContacts_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "users/users.proto",
|
||||
|
||||
Reference in New Issue
Block a user