chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-11 17:05:04 +00:00
parent 8146b671dd
commit bd2ccecd5d
6 changed files with 313 additions and 53 deletions

View File

@@ -470,6 +470,94 @@ func (x *CreateProfileResponse) GetSuccess() bool {
return false
}
type SoftDeleteProfileRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SoftDeleteProfileRequest) Reset() {
*x = SoftDeleteProfileRequest{}
mi := &file_users_users_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SoftDeleteProfileRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SoftDeleteProfileRequest) ProtoMessage() {}
func (x *SoftDeleteProfileRequest) ProtoReflect() protoreflect.Message {
mi := &file_users_users_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SoftDeleteProfileRequest.ProtoReflect.Descriptor instead.
func (*SoftDeleteProfileRequest) Descriptor() ([]byte, []int) {
return file_users_users_proto_rawDescGZIP(), []int{6}
}
func (x *SoftDeleteProfileRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type SoftDeleteProfileResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SoftDeleteProfileResponse) Reset() {
*x = SoftDeleteProfileResponse{}
mi := &file_users_users_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SoftDeleteProfileResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SoftDeleteProfileResponse) ProtoMessage() {}
func (x *SoftDeleteProfileResponse) ProtoReflect() protoreflect.Message {
mi := &file_users_users_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SoftDeleteProfileResponse.ProtoReflect.Descriptor instead.
func (*SoftDeleteProfileResponse) Descriptor() ([]byte, []int) {
return file_users_users_proto_rawDescGZIP(), []int{7}
}
func (x *SoftDeleteProfileResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
var File_users_users_proto protoreflect.FileDescriptor
const file_users_users_proto_rawDesc = "" +
@@ -537,12 +625,17 @@ const file_users_users_proto_rawDesc = "" +
"\x06_phoneB\r\n" +
"\v_avatar_url\"1\n" +
"\x15CreateProfileResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess2\xfb\x01\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\"3\n" +
"\x18SoftDeleteProfileRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\"5\n" +
"\x19SoftDeleteProfileResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess2\xd9\x02\n" +
"\fUsersService\x12G\n" +
"\n" +
"GetProfile\x12\x1b.users.v1.GetProfileRequest\x1a\x1c.users.v1.GetProfileResponse\x12P\n" +
"\rUpdateProfile\x12\x1e.users.v1.UpdateProfileRequest\x1a\x1f.users.v1.UpdateProfileResponse\x12P\n" +
"\rCreateProfile\x12\x1e.users.v1.CreateProfileRequest\x1a\x1f.users.v1.CreateProfileResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
"\rCreateProfile\x12\x1e.users.v1.CreateProfileRequest\x1a\x1f.users.v1.CreateProfileResponse\x12\\\n" +
"\x11SoftDeleteProfile\x12\".users.v1.SoftDeleteProfileRequest\x1a#.users.v1.SoftDeleteProfileResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
var (
file_users_users_proto_rawDescOnce sync.Once
@@ -556,24 +649,28 @@ func file_users_users_proto_rawDescGZIP() []byte {
return file_users_users_proto_rawDescData
}
var file_users_users_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_users_users_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_users_users_proto_goTypes = []any{
(*GetProfileRequest)(nil), // 0: users.v1.GetProfileRequest
(*GetProfileResponse)(nil), // 1: users.v1.GetProfileResponse
(*UpdateProfileRequest)(nil), // 2: users.v1.UpdateProfileRequest
(*UpdateProfileResponse)(nil), // 3: users.v1.UpdateProfileResponse
(*CreateProfileRequest)(nil), // 4: users.v1.CreateProfileRequest
(*CreateProfileResponse)(nil), // 5: users.v1.CreateProfileResponse
(*GetProfileRequest)(nil), // 0: users.v1.GetProfileRequest
(*GetProfileResponse)(nil), // 1: users.v1.GetProfileResponse
(*UpdateProfileRequest)(nil), // 2: users.v1.UpdateProfileRequest
(*UpdateProfileResponse)(nil), // 3: users.v1.UpdateProfileResponse
(*CreateProfileRequest)(nil), // 4: users.v1.CreateProfileRequest
(*CreateProfileResponse)(nil), // 5: users.v1.CreateProfileResponse
(*SoftDeleteProfileRequest)(nil), // 6: users.v1.SoftDeleteProfileRequest
(*SoftDeleteProfileResponse)(nil), // 7: users.v1.SoftDeleteProfileResponse
}
var file_users_users_proto_depIdxs = []int32{
0, // 0: users.v1.UsersService.GetProfile:input_type -> users.v1.GetProfileRequest
2, // 1: users.v1.UsersService.UpdateProfile:input_type -> users.v1.UpdateProfileRequest
4, // 2: users.v1.UsersService.CreateProfile:input_type -> users.v1.CreateProfileRequest
1, // 3: users.v1.UsersService.GetProfile:output_type -> users.v1.GetProfileResponse
3, // 4: users.v1.UsersService.UpdateProfile:output_type -> users.v1.UpdateProfileResponse
5, // 5: users.v1.UsersService.CreateProfile:output_type -> users.v1.CreateProfileResponse
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
6, // 3: users.v1.UsersService.SoftDeleteProfile:input_type -> users.v1.SoftDeleteProfileRequest
1, // 4: users.v1.UsersService.GetProfile:output_type -> users.v1.GetProfileResponse
3, // 5: users.v1.UsersService.UpdateProfile:output_type -> users.v1.UpdateProfileResponse
5, // 6: users.v1.UsersService.CreateProfile:output_type -> users.v1.CreateProfileResponse
7, // 7: users.v1.UsersService.SoftDeleteProfile:output_type -> users.v1.SoftDeleteProfileResponse
4, // [4:8] is the sub-list for method output_type
0, // [0:4] 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
@@ -593,7 +690,7 @@ func file_users_users_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_users_users_proto_rawDesc), len(file_users_users_proto_rawDesc)),
NumEnums: 0,
NumMessages: 6,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},

View File

@@ -19,9 +19,10 @@ import (
const _ = grpc.SupportPackageIsVersion9
const (
UsersService_GetProfile_FullMethodName = "/users.v1.UsersService/GetProfile"
UsersService_UpdateProfile_FullMethodName = "/users.v1.UsersService/UpdateProfile"
UsersService_CreateProfile_FullMethodName = "/users.v1.UsersService/CreateProfile"
UsersService_GetProfile_FullMethodName = "/users.v1.UsersService/GetProfile"
UsersService_UpdateProfile_FullMethodName = "/users.v1.UsersService/UpdateProfile"
UsersService_CreateProfile_FullMethodName = "/users.v1.UsersService/CreateProfile"
UsersService_SoftDeleteProfile_FullMethodName = "/users.v1.UsersService/SoftDeleteProfile"
)
// UsersServiceClient is the client API for UsersService service.
@@ -32,6 +33,7 @@ type UsersServiceClient interface {
UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error)
// Для системного использования (вызывается из Auth/Admin)
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error)
SoftDeleteProfile(ctx context.Context, in *SoftDeleteProfileRequest, opts ...grpc.CallOption) (*SoftDeleteProfileResponse, error)
}
type usersServiceClient struct {
@@ -72,6 +74,16 @@ func (c *usersServiceClient) CreateProfile(ctx context.Context, in *CreateProfil
return out, nil
}
func (c *usersServiceClient) SoftDeleteProfile(ctx context.Context, in *SoftDeleteProfileRequest, opts ...grpc.CallOption) (*SoftDeleteProfileResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(SoftDeleteProfileResponse)
err := c.cc.Invoke(ctx, UsersService_SoftDeleteProfile_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.
@@ -80,6 +92,7 @@ type UsersServiceServer interface {
UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
// Для системного использования (вызывается из Auth/Admin)
CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
SoftDeleteProfile(context.Context, *SoftDeleteProfileRequest) (*SoftDeleteProfileResponse, error)
mustEmbedUnimplementedUsersServiceServer()
}
@@ -99,6 +112,9 @@ func (UnimplementedUsersServiceServer) UpdateProfile(context.Context, *UpdatePro
func (UnimplementedUsersServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error) {
return nil, status.Error(codes.Unimplemented, "method CreateProfile not implemented")
}
func (UnimplementedUsersServiceServer) SoftDeleteProfile(context.Context, *SoftDeleteProfileRequest) (*SoftDeleteProfileResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SoftDeleteProfile not implemented")
}
func (UnimplementedUsersServiceServer) mustEmbedUnimplementedUsersServiceServer() {}
func (UnimplementedUsersServiceServer) testEmbeddedByValue() {}
@@ -174,6 +190,24 @@ func _UsersService_CreateProfile_Handler(srv interface{}, ctx context.Context, d
return interceptor(ctx, in, info, handler)
}
func _UsersService_SoftDeleteProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SoftDeleteProfileRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UsersServiceServer).SoftDeleteProfile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: UsersService_SoftDeleteProfile_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UsersServiceServer).SoftDeleteProfile(ctx, req.(*SoftDeleteProfileRequest))
}
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)
@@ -193,6 +227,10 @@ var UsersService_ServiceDesc = grpc.ServiceDesc{
MethodName: "CreateProfile",
Handler: _UsersService_CreateProfile_Handler,
},
{
MethodName: "SoftDeleteProfile",
Handler: _UsersService_SoftDeleteProfile_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "users/users.proto",