From 86c1e352cf1fd342637445932ac49f2c3df8a0ba Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 8 Apr 2026 07:40:18 +0000 Subject: [PATCH] chore: auto-generate protobuf files [skip ci] --- gen/account.ts | 18 +++ gen/go/account.pb.go | 243 ++++++++++++++++++++++++++++---------- gen/go/account_grpc.pb.go | 56 +++++++-- 3 files changed, 244 insertions(+), 73 deletions(-) diff --git a/gen/account.ts b/gen/account.ts index e598ec3..a6332a1 100644 --- a/gen/account.ts +++ b/gen/account.ts @@ -87,6 +87,16 @@ export interface ChangeDataResponse { message: string; } +export interface AdminResetPasswordRequest { + userId: string; + newPassword: string; +} + +export interface AdminResetPasswordResponse { + success: boolean; + message: string; +} + export interface SetPinRequest { userId: string; sessionId: string; @@ -138,6 +148,8 @@ export interface AccountServiceClient { changePassword(request: ChangePasswordRequest, metadata?: Metadata): Observable; + adminResetPassword(request: AdminResetPasswordRequest, metadata?: Metadata): Observable; + createUser(request: CreateUserRequest, metadata?: Metadata): Observable; deleteUser(request: DeleteUserRequest, metadata?: Metadata): Observable; @@ -164,6 +176,11 @@ export interface AccountServiceController { metadata?: Metadata, ): Promise | Observable | ChangePasswordResponse; + adminResetPassword( + request: AdminResetPasswordRequest, + metadata?: Metadata, + ): Promise | Observable | AdminResetPasswordResponse; + createUser( request: CreateUserRequest, metadata?: Metadata, @@ -205,6 +222,7 @@ export function AccountServiceControllerMethods() { const grpcMethods: string[] = [ "getAccount", "changePassword", + "adminResetPassword", "createUser", "deleteUser", "changeData", diff --git a/gen/go/account.pb.go b/gen/go/account.pb.go index 966c657..429dbb7 100644 --- a/gen/go/account.pb.go +++ b/gen/go/account.pb.go @@ -749,6 +749,110 @@ func (x *ChangeDataResponse) GetMessage() string { return "" } +type AdminResetPasswordRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AdminResetPasswordRequest) Reset() { + *x = AdminResetPasswordRequest{} + mi := &file_account_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AdminResetPasswordRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminResetPasswordRequest) ProtoMessage() {} + +func (x *AdminResetPasswordRequest) ProtoReflect() protoreflect.Message { + mi := &file_account_proto_msgTypes[10] + 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 AdminResetPasswordRequest.ProtoReflect.Descriptor instead. +func (*AdminResetPasswordRequest) Descriptor() ([]byte, []int) { + return file_account_proto_rawDescGZIP(), []int{10} +} + +func (x *AdminResetPasswordRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *AdminResetPasswordRequest) GetNewPassword() string { + if x != nil { + return x.NewPassword + } + return "" +} + +type AdminResetPasswordResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AdminResetPasswordResponse) Reset() { + *x = AdminResetPasswordResponse{} + mi := &file_account_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AdminResetPasswordResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminResetPasswordResponse) ProtoMessage() {} + +func (x *AdminResetPasswordResponse) ProtoReflect() protoreflect.Message { + mi := &file_account_proto_msgTypes[11] + 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 AdminResetPasswordResponse.ProtoReflect.Descriptor instead. +func (*AdminResetPasswordResponse) Descriptor() ([]byte, []int) { + return file_account_proto_rawDescGZIP(), []int{11} +} + +func (x *AdminResetPasswordResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +func (x *AdminResetPasswordResponse) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + type SetPinRequest struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` @@ -760,7 +864,7 @@ type SetPinRequest struct { func (x *SetPinRequest) Reset() { *x = SetPinRequest{} - mi := &file_account_proto_msgTypes[10] + mi := &file_account_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -772,7 +876,7 @@ func (x *SetPinRequest) String() string { func (*SetPinRequest) ProtoMessage() {} func (x *SetPinRequest) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[10] + mi := &file_account_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -785,7 +889,7 @@ func (x *SetPinRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetPinRequest.ProtoReflect.Descriptor instead. func (*SetPinRequest) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{10} + return file_account_proto_rawDescGZIP(), []int{12} } func (x *SetPinRequest) GetUserId() string { @@ -819,7 +923,7 @@ type SetPinResponse struct { func (x *SetPinResponse) Reset() { *x = SetPinResponse{} - mi := &file_account_proto_msgTypes[11] + mi := &file_account_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -831,7 +935,7 @@ func (x *SetPinResponse) String() string { func (*SetPinResponse) ProtoMessage() {} func (x *SetPinResponse) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[11] + mi := &file_account_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -844,7 +948,7 @@ func (x *SetPinResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetPinResponse.ProtoReflect.Descriptor instead. func (*SetPinResponse) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{11} + return file_account_proto_rawDescGZIP(), []int{13} } func (x *SetPinResponse) GetSuccess() bool { @@ -872,7 +976,7 @@ type UnlockPinRequest struct { func (x *UnlockPinRequest) Reset() { *x = UnlockPinRequest{} - mi := &file_account_proto_msgTypes[12] + mi := &file_account_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -884,7 +988,7 @@ func (x *UnlockPinRequest) String() string { func (*UnlockPinRequest) ProtoMessage() {} func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[12] + mi := &file_account_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -897,7 +1001,7 @@ func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UnlockPinRequest.ProtoReflect.Descriptor instead. func (*UnlockPinRequest) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{12} + return file_account_proto_rawDescGZIP(), []int{14} } func (x *UnlockPinRequest) GetUserId() string { @@ -931,7 +1035,7 @@ type UnlockPinResponse struct { func (x *UnlockPinResponse) Reset() { *x = UnlockPinResponse{} - mi := &file_account_proto_msgTypes[13] + mi := &file_account_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -943,7 +1047,7 @@ func (x *UnlockPinResponse) String() string { func (*UnlockPinResponse) ProtoMessage() {} func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[13] + mi := &file_account_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -956,7 +1060,7 @@ func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UnlockPinResponse.ProtoReflect.Descriptor instead. func (*UnlockPinResponse) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{13} + return file_account_proto_rawDescGZIP(), []int{15} } func (x *UnlockPinResponse) GetSuccess() bool { @@ -983,7 +1087,7 @@ type GetPinStatusRequest struct { func (x *GetPinStatusRequest) Reset() { *x = GetPinStatusRequest{} - mi := &file_account_proto_msgTypes[14] + mi := &file_account_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -995,7 +1099,7 @@ func (x *GetPinStatusRequest) String() string { func (*GetPinStatusRequest) ProtoMessage() {} func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[14] + mi := &file_account_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1008,7 +1112,7 @@ func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPinStatusRequest.ProtoReflect.Descriptor instead. func (*GetPinStatusRequest) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{14} + return file_account_proto_rawDescGZIP(), []int{16} } func (x *GetPinStatusRequest) GetUserId() string { @@ -1036,7 +1140,7 @@ type GetPinStatusResponse struct { func (x *GetPinStatusResponse) Reset() { *x = GetPinStatusResponse{} - mi := &file_account_proto_msgTypes[15] + mi := &file_account_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1048,7 +1152,7 @@ func (x *GetPinStatusResponse) String() string { func (*GetPinStatusResponse) ProtoMessage() {} func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[15] + mi := &file_account_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1061,7 +1165,7 @@ func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPinStatusResponse.ProtoReflect.Descriptor instead. func (*GetPinStatusResponse) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{15} + return file_account_proto_rawDescGZIP(), []int{17} } func (x *GetPinStatusResponse) GetHasPin() bool { @@ -1096,7 +1200,7 @@ type RemovePinRequest struct { func (x *RemovePinRequest) Reset() { *x = RemovePinRequest{} - mi := &file_account_proto_msgTypes[16] + mi := &file_account_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1108,7 +1212,7 @@ func (x *RemovePinRequest) String() string { func (*RemovePinRequest) ProtoMessage() {} func (x *RemovePinRequest) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[16] + mi := &file_account_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1121,7 +1225,7 @@ func (x *RemovePinRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemovePinRequest.ProtoReflect.Descriptor instead. func (*RemovePinRequest) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{16} + return file_account_proto_rawDescGZIP(), []int{18} } func (x *RemovePinRequest) GetPin() string { @@ -1155,7 +1259,7 @@ type RemovePinResponse struct { func (x *RemovePinResponse) Reset() { *x = RemovePinResponse{} - mi := &file_account_proto_msgTypes[17] + mi := &file_account_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1167,7 +1271,7 @@ func (x *RemovePinResponse) String() string { func (*RemovePinResponse) ProtoMessage() {} func (x *RemovePinResponse) ProtoReflect() protoreflect.Message { - mi := &file_account_proto_msgTypes[17] + mi := &file_account_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1180,7 +1284,7 @@ func (x *RemovePinResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemovePinResponse.ProtoReflect.Descriptor instead. func (*RemovePinResponse) Descriptor() ([]byte, []int) { - return file_account_proto_rawDescGZIP(), []int{17} + return file_account_proto_rawDescGZIP(), []int{19} } func (x *RemovePinResponse) GetSuccess() bool { @@ -1277,6 +1381,12 @@ const file_account_proto_rawDesc = "" + "\t_language\"H\n" + "\x12ChangeDataResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\"W\n" + + "\x19AdminResetPasswordRequest\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\x12!\n" + + "\fnew_password\x18\x02 \x01(\tR\vnewPassword\"P\n" + + "\x1aAdminResetPasswordResponse\x12\x18\n" + + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\"Y\n" + "\rSetPinRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" + @@ -1310,11 +1420,12 @@ const file_account_proto_rawDesc = "" + "session_id\x18\x03 \x01(\tR\tsessionId\"G\n" + "\x11RemovePinResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + - "\amessage\x18\x02 \x01(\tR\amessage2\xc5\x05\n" + + "\amessage\x18\x02 \x01(\tR\amessage2\xaa\x06\n" + "\x0eAccountService\x12K\n" + "\n" + "GetAccount\x12\x1d.account.v1.GetAccountRequest\x1a\x1e.account.v1.GetAccountResponse\x12W\n" + - "\x0eChangePassword\x12!.account.v1.ChangePasswordRequest\x1a\".account.v1.ChangePasswordResponse\x12K\n" + + "\x0eChangePassword\x12!.account.v1.ChangePasswordRequest\x1a\".account.v1.ChangePasswordResponse\x12c\n" + + "\x12AdminResetPassword\x12%.account.v1.AdminResetPasswordRequest\x1a&.account.v1.AdminResetPasswordResponse\x12K\n" + "\n" + "CreateUser\x12\x1d.account.v1.CreateUserRequest\x1a\x1e.account.v1.CreateUserResponse\x12K\n" + "\n" + @@ -1338,48 +1449,52 @@ func file_account_proto_rawDescGZIP() []byte { return file_account_proto_rawDescData } -var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_account_proto_goTypes = []any{ - (*GetAccountRequest)(nil), // 0: account.v1.GetAccountRequest - (*GetAccountResponse)(nil), // 1: account.v1.GetAccountResponse - (*ChangePasswordRequest)(nil), // 2: account.v1.ChangePasswordRequest - (*ChangePasswordResponse)(nil), // 3: account.v1.ChangePasswordResponse - (*CreateUserRequest)(nil), // 4: account.v1.CreateUserRequest - (*CreateUserResponse)(nil), // 5: account.v1.CreateUserResponse - (*DeleteUserRequest)(nil), // 6: account.v1.DeleteUserRequest - (*DeleteUserResponse)(nil), // 7: account.v1.DeleteUserResponse - (*ChangeDataRequest)(nil), // 8: account.v1.ChangeDataRequest - (*ChangeDataResponse)(nil), // 9: account.v1.ChangeDataResponse - (*SetPinRequest)(nil), // 10: account.v1.SetPinRequest - (*SetPinResponse)(nil), // 11: account.v1.SetPinResponse - (*UnlockPinRequest)(nil), // 12: account.v1.UnlockPinRequest - (*UnlockPinResponse)(nil), // 13: account.v1.UnlockPinResponse - (*GetPinStatusRequest)(nil), // 14: account.v1.GetPinStatusRequest - (*GetPinStatusResponse)(nil), // 15: account.v1.GetPinStatusResponse - (*RemovePinRequest)(nil), // 16: account.v1.RemovePinRequest - (*RemovePinResponse)(nil), // 17: account.v1.RemovePinResponse + (*GetAccountRequest)(nil), // 0: account.v1.GetAccountRequest + (*GetAccountResponse)(nil), // 1: account.v1.GetAccountResponse + (*ChangePasswordRequest)(nil), // 2: account.v1.ChangePasswordRequest + (*ChangePasswordResponse)(nil), // 3: account.v1.ChangePasswordResponse + (*CreateUserRequest)(nil), // 4: account.v1.CreateUserRequest + (*CreateUserResponse)(nil), // 5: account.v1.CreateUserResponse + (*DeleteUserRequest)(nil), // 6: account.v1.DeleteUserRequest + (*DeleteUserResponse)(nil), // 7: account.v1.DeleteUserResponse + (*ChangeDataRequest)(nil), // 8: account.v1.ChangeDataRequest + (*ChangeDataResponse)(nil), // 9: account.v1.ChangeDataResponse + (*AdminResetPasswordRequest)(nil), // 10: account.v1.AdminResetPasswordRequest + (*AdminResetPasswordResponse)(nil), // 11: account.v1.AdminResetPasswordResponse + (*SetPinRequest)(nil), // 12: account.v1.SetPinRequest + (*SetPinResponse)(nil), // 13: account.v1.SetPinResponse + (*UnlockPinRequest)(nil), // 14: account.v1.UnlockPinRequest + (*UnlockPinResponse)(nil), // 15: account.v1.UnlockPinResponse + (*GetPinStatusRequest)(nil), // 16: account.v1.GetPinStatusRequest + (*GetPinStatusResponse)(nil), // 17: account.v1.GetPinStatusResponse + (*RemovePinRequest)(nil), // 18: account.v1.RemovePinRequest + (*RemovePinResponse)(nil), // 19: account.v1.RemovePinResponse } var file_account_proto_depIdxs = []int32{ 0, // 0: account.v1.AccountService.GetAccount:input_type -> account.v1.GetAccountRequest 2, // 1: account.v1.AccountService.ChangePassword:input_type -> account.v1.ChangePasswordRequest - 4, // 2: account.v1.AccountService.CreateUser:input_type -> account.v1.CreateUserRequest - 6, // 3: account.v1.AccountService.DeleteUser:input_type -> account.v1.DeleteUserRequest - 8, // 4: account.v1.AccountService.ChangeData:input_type -> account.v1.ChangeDataRequest - 10, // 5: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest - 12, // 6: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest - 14, // 7: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest - 16, // 8: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest - 1, // 9: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse - 3, // 10: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse - 5, // 11: account.v1.AccountService.CreateUser:output_type -> account.v1.CreateUserResponse - 7, // 12: account.v1.AccountService.DeleteUser:output_type -> account.v1.DeleteUserResponse - 9, // 13: account.v1.AccountService.ChangeData:output_type -> account.v1.ChangeDataResponse - 11, // 14: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse - 13, // 15: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse - 15, // 16: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse - 17, // 17: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse - 9, // [9:18] is the sub-list for method output_type - 0, // [0:9] is the sub-list for method input_type + 10, // 2: account.v1.AccountService.AdminResetPassword:input_type -> account.v1.AdminResetPasswordRequest + 4, // 3: account.v1.AccountService.CreateUser:input_type -> account.v1.CreateUserRequest + 6, // 4: account.v1.AccountService.DeleteUser:input_type -> account.v1.DeleteUserRequest + 8, // 5: account.v1.AccountService.ChangeData:input_type -> account.v1.ChangeDataRequest + 12, // 6: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest + 14, // 7: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest + 16, // 8: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest + 18, // 9: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest + 1, // 10: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse + 3, // 11: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse + 11, // 12: account.v1.AccountService.AdminResetPassword:output_type -> account.v1.AdminResetPasswordResponse + 5, // 13: account.v1.AccountService.CreateUser:output_type -> account.v1.CreateUserResponse + 7, // 14: account.v1.AccountService.DeleteUser:output_type -> account.v1.DeleteUserResponse + 9, // 15: account.v1.AccountService.ChangeData:output_type -> account.v1.ChangeDataResponse + 13, // 16: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse + 15, // 17: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse + 17, // 18: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse + 19, // 19: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse + 10, // [10:20] is the sub-list for method output_type + 0, // [0:10] 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 @@ -1399,7 +1514,7 @@ func file_account_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)), NumEnums: 0, - NumMessages: 18, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, diff --git a/gen/go/account_grpc.pb.go b/gen/go/account_grpc.pb.go index c73c091..cce1505 100644 --- a/gen/go/account_grpc.pb.go +++ b/gen/go/account_grpc.pb.go @@ -19,15 +19,16 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount" - AccountService_ChangePassword_FullMethodName = "/account.v1.AccountService/ChangePassword" - AccountService_CreateUser_FullMethodName = "/account.v1.AccountService/CreateUser" - AccountService_DeleteUser_FullMethodName = "/account.v1.AccountService/DeleteUser" - AccountService_ChangeData_FullMethodName = "/account.v1.AccountService/ChangeData" - AccountService_SetPin_FullMethodName = "/account.v1.AccountService/SetPin" - AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin" - AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus" - AccountService_RemovePin_FullMethodName = "/account.v1.AccountService/RemovePin" + AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount" + AccountService_ChangePassword_FullMethodName = "/account.v1.AccountService/ChangePassword" + AccountService_AdminResetPassword_FullMethodName = "/account.v1.AccountService/AdminResetPassword" + AccountService_CreateUser_FullMethodName = "/account.v1.AccountService/CreateUser" + AccountService_DeleteUser_FullMethodName = "/account.v1.AccountService/DeleteUser" + AccountService_ChangeData_FullMethodName = "/account.v1.AccountService/ChangeData" + AccountService_SetPin_FullMethodName = "/account.v1.AccountService/SetPin" + AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin" + AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus" + AccountService_RemovePin_FullMethodName = "/account.v1.AccountService/RemovePin" ) // AccountServiceClient is the client API for AccountService service. @@ -36,6 +37,7 @@ const ( type AccountServiceClient interface { GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error) + AdminResetPassword(ctx context.Context, in *AdminResetPasswordRequest, opts ...grpc.CallOption) (*AdminResetPasswordResponse, error) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) ChangeData(ctx context.Context, in *ChangeDataRequest, opts ...grpc.CallOption) (*ChangeDataResponse, error) @@ -73,6 +75,16 @@ func (c *accountServiceClient) ChangePassword(ctx context.Context, in *ChangePas return out, nil } +func (c *accountServiceClient) AdminResetPassword(ctx context.Context, in *AdminResetPasswordRequest, opts ...grpc.CallOption) (*AdminResetPasswordResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AdminResetPasswordResponse) + err := c.cc.Invoke(ctx, AccountService_AdminResetPassword_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *accountServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateUserResponse) @@ -149,6 +161,7 @@ func (c *accountServiceClient) RemovePin(ctx context.Context, in *RemovePinReque type AccountServiceServer interface { GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) + AdminResetPassword(context.Context, *AdminResetPasswordRequest) (*AdminResetPasswordResponse, error) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) ChangeData(context.Context, *ChangeDataRequest) (*ChangeDataResponse, error) @@ -172,6 +185,9 @@ func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccount func (UnimplementedAccountServiceServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangePassword not implemented") } +func (UnimplementedAccountServiceServer) AdminResetPassword(context.Context, *AdminResetPasswordRequest) (*AdminResetPasswordResponse, error) { + return nil, status.Error(codes.Unimplemented, "method AdminResetPassword not implemented") +} func (UnimplementedAccountServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateUser not implemented") } @@ -250,6 +266,24 @@ func _AccountService_ChangePassword_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } +func _AccountService_AdminResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminResetPasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountServiceServer).AdminResetPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AccountService_AdminResetPassword_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountServiceServer).AdminResetPassword(ctx, req.(*AdminResetPasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AccountService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateUserRequest) if err := dec(in); err != nil { @@ -391,6 +425,10 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ChangePassword", Handler: _AccountService_ChangePassword_Handler, }, + { + MethodName: "AdminResetPassword", + Handler: _AccountService_AdminResetPassword_Handler, + }, { MethodName: "CreateUser", Handler: _AccountService_CreateUser_Handler,