chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-10 07:49:04 +00:00
parent bcc66ce4c0
commit 91a58e2d1d
3 changed files with 730 additions and 18 deletions

View File

@@ -162,6 +162,50 @@ export interface RemovePinResponse {
message: string; message: string;
} }
export interface BlockUserRequest {
/** Кого блокируем */
userId: string;
/** Кто блокирует */
adminId: string;
reason?: string | undefined;
}
export interface BlockUserResponse {
success: boolean;
message: string;
}
export interface UnblockUserRequest {
userId: string;
adminId: string;
}
export interface UnblockUserResponse {
success: boolean;
message: string;
}
export interface BlockIpRequest {
ipAddress: string;
adminId: string;
reason?: string | undefined;
}
export interface BlockIpResponse {
success: boolean;
message: string;
}
export interface UnblockIpRequest {
ipAddress: string;
adminId: string;
}
export interface UnblockIpResponse {
success: boolean;
message: string;
}
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1"; export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
export interface AccountServiceClient { export interface AccountServiceClient {
@@ -188,6 +232,14 @@ export interface AccountServiceClient {
getPinStatus(request: GetPinStatusRequest, metadata?: Metadata): Observable<GetPinStatusResponse>; getPinStatus(request: GetPinStatusRequest, metadata?: Metadata): Observable<GetPinStatusResponse>;
removePin(request: RemovePinRequest, metadata?: Metadata): Observable<RemovePinResponse>; removePin(request: RemovePinRequest, metadata?: Metadata): Observable<RemovePinResponse>;
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<BlockUserResponse>;
unblockUser(request: UnblockUserRequest, metadata?: Metadata): Observable<UnblockUserResponse>;
blockIp(request: BlockIpRequest, metadata?: Metadata): Observable<BlockIpResponse>;
unblockIp(request: UnblockIpRequest, metadata?: Metadata): Observable<UnblockIpResponse>;
} }
export interface AccountServiceController { export interface AccountServiceController {
@@ -250,6 +302,26 @@ export interface AccountServiceController {
request: RemovePinRequest, request: RemovePinRequest,
metadata?: Metadata, metadata?: Metadata,
): Promise<RemovePinResponse> | Observable<RemovePinResponse> | RemovePinResponse; ): Promise<RemovePinResponse> | Observable<RemovePinResponse> | RemovePinResponse;
blockUser(
request: BlockUserRequest,
metadata?: Metadata,
): Promise<BlockUserResponse> | Observable<BlockUserResponse> | BlockUserResponse;
unblockUser(
request: UnblockUserRequest,
metadata?: Metadata,
): Promise<UnblockUserResponse> | Observable<UnblockUserResponse> | UnblockUserResponse;
blockIp(
request: BlockIpRequest,
metadata?: Metadata,
): Promise<BlockIpResponse> | Observable<BlockIpResponse> | BlockIpResponse;
unblockIp(
request: UnblockIpRequest,
metadata?: Metadata,
): Promise<UnblockIpResponse> | Observable<UnblockIpResponse> | UnblockIpResponse;
} }
export function AccountServiceControllerMethods() { export function AccountServiceControllerMethods() {
@@ -267,6 +339,10 @@ export function AccountServiceControllerMethods() {
"unlockPin", "unlockPin",
"getPinStatus", "getPinStatus",
"removePin", "removePin",
"blockUser",
"unblockUser",
"blockIp",
"unblockIp",
]; ];
for (const method of grpcMethods) { for (const method of grpcMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);

View File

@@ -1509,6 +1509,438 @@ func (x *RemovePinResponse) GetMessage() string {
return "" return ""
} }
type BlockUserRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Кого блокируем
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"` // Кто блокирует
Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BlockUserRequest) Reset() {
*x = BlockUserRequest{}
mi := &file_account_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BlockUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlockUserRequest) ProtoMessage() {}
func (x *BlockUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[24]
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 BlockUserRequest.ProtoReflect.Descriptor instead.
func (*BlockUserRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{24}
}
func (x *BlockUserRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *BlockUserRequest) GetAdminId() string {
if x != nil {
return x.AdminId
}
return ""
}
func (x *BlockUserRequest) GetReason() string {
if x != nil && x.Reason != nil {
return *x.Reason
}
return ""
}
type BlockUserResponse 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 *BlockUserResponse) Reset() {
*x = BlockUserResponse{}
mi := &file_account_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BlockUserResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlockUserResponse) ProtoMessage() {}
func (x *BlockUserResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[25]
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 BlockUserResponse.ProtoReflect.Descriptor instead.
func (*BlockUserResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{25}
}
func (x *BlockUserResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *BlockUserResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type UnblockUserRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnblockUserRequest) Reset() {
*x = UnblockUserRequest{}
mi := &file_account_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnblockUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnblockUserRequest) ProtoMessage() {}
func (x *UnblockUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[26]
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 UnblockUserRequest.ProtoReflect.Descriptor instead.
func (*UnblockUserRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{26}
}
func (x *UnblockUserRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *UnblockUserRequest) GetAdminId() string {
if x != nil {
return x.AdminId
}
return ""
}
type UnblockUserResponse 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 *UnblockUserResponse) Reset() {
*x = UnblockUserResponse{}
mi := &file_account_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnblockUserResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnblockUserResponse) ProtoMessage() {}
func (x *UnblockUserResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[27]
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 UnblockUserResponse.ProtoReflect.Descriptor instead.
func (*UnblockUserResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{27}
}
func (x *UnblockUserResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *UnblockUserResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type BlockIpRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BlockIpRequest) Reset() {
*x = BlockIpRequest{}
mi := &file_account_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BlockIpRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlockIpRequest) ProtoMessage() {}
func (x *BlockIpRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[28]
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 BlockIpRequest.ProtoReflect.Descriptor instead.
func (*BlockIpRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{28}
}
func (x *BlockIpRequest) GetIpAddress() string {
if x != nil {
return x.IpAddress
}
return ""
}
func (x *BlockIpRequest) GetAdminId() string {
if x != nil {
return x.AdminId
}
return ""
}
func (x *BlockIpRequest) GetReason() string {
if x != nil && x.Reason != nil {
return *x.Reason
}
return ""
}
type BlockIpResponse 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 *BlockIpResponse) Reset() {
*x = BlockIpResponse{}
mi := &file_account_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BlockIpResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlockIpResponse) ProtoMessage() {}
func (x *BlockIpResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[29]
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 BlockIpResponse.ProtoReflect.Descriptor instead.
func (*BlockIpResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{29}
}
func (x *BlockIpResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *BlockIpResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type UnblockIpRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnblockIpRequest) Reset() {
*x = UnblockIpRequest{}
mi := &file_account_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnblockIpRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnblockIpRequest) ProtoMessage() {}
func (x *UnblockIpRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[30]
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 UnblockIpRequest.ProtoReflect.Descriptor instead.
func (*UnblockIpRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{30}
}
func (x *UnblockIpRequest) GetIpAddress() string {
if x != nil {
return x.IpAddress
}
return ""
}
func (x *UnblockIpRequest) GetAdminId() string {
if x != nil {
return x.AdminId
}
return ""
}
type UnblockIpResponse 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 *UnblockIpResponse) Reset() {
*x = UnblockIpResponse{}
mi := &file_account_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnblockIpResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnblockIpResponse) ProtoMessage() {}
func (x *UnblockIpResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[31]
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 UnblockIpResponse.ProtoReflect.Descriptor instead.
func (*UnblockIpResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{31}
}
func (x *UnblockIpResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *UnblockIpResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
var File_account_proto protoreflect.FileDescriptor var File_account_proto protoreflect.FileDescriptor
const file_account_proto_rawDesc = "" + const file_account_proto_rawDesc = "" +
@@ -1640,7 +2072,37 @@ const file_account_proto_rawDesc = "" +
"session_id\x18\x03 \x01(\tR\tsessionId\"G\n" + "session_id\x18\x03 \x01(\tR\tsessionId\"G\n" +
"\x11RemovePinResponse\x12\x18\n" + "\x11RemovePinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xc4\a\n" + "\amessage\x18\x02 \x01(\tR\amessage\"n\n" +
"\x10BlockUserRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x19\n" +
"\badmin_id\x18\x02 \x01(\tR\aadminId\x12\x1b\n" +
"\x06reason\x18\x03 \x01(\tH\x00R\x06reason\x88\x01\x01B\t\n" +
"\a_reason\"G\n" +
"\x11BlockUserResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"H\n" +
"\x12UnblockUserRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x19\n" +
"\badmin_id\x18\x02 \x01(\tR\aadminId\"I\n" +
"\x13UnblockUserResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"r\n" +
"\x0eBlockIpRequest\x12\x1d\n" +
"\n" +
"ip_address\x18\x01 \x01(\tR\tipAddress\x12\x19\n" +
"\badmin_id\x18\x02 \x01(\tR\aadminId\x12\x1b\n" +
"\x06reason\x18\x03 \x01(\tH\x00R\x06reason\x88\x01\x01B\t\n" +
"\a_reason\"E\n" +
"\x0fBlockIpResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"L\n" +
"\x10UnblockIpRequest\x12\x1d\n" +
"\n" +
"ip_address\x18\x01 \x01(\tR\tipAddress\x12\x19\n" +
"\badmin_id\x18\x02 \x01(\tR\aadminId\"G\n" +
"\x11UnblockIpResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xec\t\n" +
"\x0eAccountService\x12K\n" + "\x0eAccountService\x12K\n" +
"\n" + "\n" +
"GetAccount\x12\x1d.account.v1.GetAccountRequest\x1a\x1e.account.v1.GetAccountResponse\x12W\n" + "GetAccount\x12\x1d.account.v1.GetAccountRequest\x1a\x1e.account.v1.GetAccountResponse\x12W\n" +
@@ -1659,7 +2121,11 @@ const file_account_proto_rawDesc = "" +
"\x06SetPin\x12\x19.account.v1.SetPinRequest\x1a\x1a.account.v1.SetPinResponse\x12H\n" + "\x06SetPin\x12\x19.account.v1.SetPinRequest\x1a\x1a.account.v1.SetPinResponse\x12H\n" +
"\tUnlockPin\x12\x1c.account.v1.UnlockPinRequest\x1a\x1d.account.v1.UnlockPinResponse\x12Q\n" + "\tUnlockPin\x12\x1c.account.v1.UnlockPinRequest\x1a\x1d.account.v1.UnlockPinResponse\x12Q\n" +
"\fGetPinStatus\x12\x1f.account.v1.GetPinStatusRequest\x1a .account.v1.GetPinStatusResponse\x12H\n" + "\fGetPinStatus\x12\x1f.account.v1.GetPinStatusRequest\x1a .account.v1.GetPinStatusResponse\x12H\n" +
"\tRemovePin\x12\x1c.account.v1.RemovePinRequest\x1a\x1d.account.v1.RemovePinResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3" "\tRemovePin\x12\x1c.account.v1.RemovePinRequest\x1a\x1d.account.v1.RemovePinResponse\x12H\n" +
"\tBlockUser\x12\x1c.account.v1.BlockUserRequest\x1a\x1d.account.v1.BlockUserResponse\x12N\n" +
"\vUnblockUser\x12\x1e.account.v1.UnblockUserRequest\x1a\x1f.account.v1.UnblockUserResponse\x12B\n" +
"\aBlockIp\x12\x1a.account.v1.BlockIpRequest\x1a\x1b.account.v1.BlockIpResponse\x12H\n" +
"\tUnblockIp\x12\x1c.account.v1.UnblockIpRequest\x1a\x1d.account.v1.UnblockIpResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
var ( var (
file_account_proto_rawDescOnce sync.Once file_account_proto_rawDescOnce sync.Once
@@ -1673,7 +2139,7 @@ func file_account_proto_rawDescGZIP() []byte {
return file_account_proto_rawDescData return file_account_proto_rawDescData
} }
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 32)
var file_account_proto_goTypes = []any{ var file_account_proto_goTypes = []any{
(*GetAccountRequest)(nil), // 0: account.v1.GetAccountRequest (*GetAccountRequest)(nil), // 0: account.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: account.v1.GetAccountResponse (*GetAccountResponse)(nil), // 1: account.v1.GetAccountResponse
@@ -1699,6 +2165,14 @@ var file_account_proto_goTypes = []any{
(*GetPinStatusResponse)(nil), // 21: account.v1.GetPinStatusResponse (*GetPinStatusResponse)(nil), // 21: account.v1.GetPinStatusResponse
(*RemovePinRequest)(nil), // 22: account.v1.RemovePinRequest (*RemovePinRequest)(nil), // 22: account.v1.RemovePinRequest
(*RemovePinResponse)(nil), // 23: account.v1.RemovePinResponse (*RemovePinResponse)(nil), // 23: account.v1.RemovePinResponse
(*BlockUserRequest)(nil), // 24: account.v1.BlockUserRequest
(*BlockUserResponse)(nil), // 25: account.v1.BlockUserResponse
(*UnblockUserRequest)(nil), // 26: account.v1.UnblockUserRequest
(*UnblockUserResponse)(nil), // 27: account.v1.UnblockUserResponse
(*BlockIpRequest)(nil), // 28: account.v1.BlockIpRequest
(*BlockIpResponse)(nil), // 29: account.v1.BlockIpResponse
(*UnblockIpRequest)(nil), // 30: account.v1.UnblockIpRequest
(*UnblockIpResponse)(nil), // 31: account.v1.UnblockIpResponse
} }
var file_account_proto_depIdxs = []int32{ var file_account_proto_depIdxs = []int32{
0, // 0: account.v1.AccountService.GetAccount:input_type -> account.v1.GetAccountRequest 0, // 0: account.v1.AccountService.GetAccount:input_type -> account.v1.GetAccountRequest
@@ -1713,20 +2187,28 @@ var file_account_proto_depIdxs = []int32{
18, // 9: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest 18, // 9: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest
20, // 10: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest 20, // 10: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest
22, // 11: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest 22, // 11: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest
1, // 12: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse 24, // 12: account.v1.AccountService.BlockUser:input_type -> account.v1.BlockUserRequest
3, // 13: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse 26, // 13: account.v1.AccountService.UnblockUser:input_type -> account.v1.UnblockUserRequest
15, // 14: account.v1.AccountService.AdminResetPassword:output_type -> account.v1.AdminResetPasswordResponse 28, // 14: account.v1.AccountService.BlockIp:input_type -> account.v1.BlockIpRequest
5, // 15: account.v1.AccountService.CreateUser:output_type -> account.v1.CreateUserResponse 30, // 15: account.v1.AccountService.UnblockIp:input_type -> account.v1.UnblockIpRequest
7, // 16: account.v1.AccountService.DeleteUser:output_type -> account.v1.DeleteUserResponse 1, // 16: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
9, // 17: account.v1.AccountService.ChangeData:output_type -> account.v1.ChangeDataResponse 3, // 17: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
11, // 18: account.v1.AccountService.AssignRole:output_type -> account.v1.AssignRoleResponse 15, // 18: account.v1.AccountService.AdminResetPassword:output_type -> account.v1.AdminResetPasswordResponse
13, // 19: account.v1.AccountService.RevokeRole:output_type -> account.v1.RevokeRoleResponse 5, // 19: account.v1.AccountService.CreateUser:output_type -> account.v1.CreateUserResponse
17, // 20: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse 7, // 20: account.v1.AccountService.DeleteUser:output_type -> account.v1.DeleteUserResponse
19, // 21: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse 9, // 21: account.v1.AccountService.ChangeData:output_type -> account.v1.ChangeDataResponse
21, // 22: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse 11, // 22: account.v1.AccountService.AssignRole:output_type -> account.v1.AssignRoleResponse
23, // 23: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse 13, // 23: account.v1.AccountService.RevokeRole:output_type -> account.v1.RevokeRoleResponse
12, // [12:24] is the sub-list for method output_type 17, // 24: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse
0, // [0:12] is the sub-list for method input_type 19, // 25: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse
21, // 26: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse
23, // 27: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse
25, // 28: account.v1.AccountService.BlockUser:output_type -> account.v1.BlockUserResponse
27, // 29: account.v1.AccountService.UnblockUser:output_type -> account.v1.UnblockUserResponse
29, // 30: account.v1.AccountService.BlockIp:output_type -> account.v1.BlockIpResponse
31, // 31: account.v1.AccountService.UnblockIp:output_type -> account.v1.UnblockIpResponse
16, // [16:32] is the sub-list for method output_type
0, // [0:16] 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 type_name
0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
@@ -1740,13 +2222,15 @@ func file_account_proto_init() {
file_account_proto_msgTypes[1].OneofWrappers = []any{} file_account_proto_msgTypes[1].OneofWrappers = []any{}
file_account_proto_msgTypes[2].OneofWrappers = []any{} file_account_proto_msgTypes[2].OneofWrappers = []any{}
file_account_proto_msgTypes[8].OneofWrappers = []any{} file_account_proto_msgTypes[8].OneofWrappers = []any{}
file_account_proto_msgTypes[24].OneofWrappers = []any{}
file_account_proto_msgTypes[28].OneofWrappers = []any{}
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)),
NumEnums: 0, NumEnums: 0,
NumMessages: 24, NumMessages: 32,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },

View File

@@ -31,6 +31,10 @@ const (
AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin" AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin"
AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus" AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus"
AccountService_RemovePin_FullMethodName = "/account.v1.AccountService/RemovePin" AccountService_RemovePin_FullMethodName = "/account.v1.AccountService/RemovePin"
AccountService_BlockUser_FullMethodName = "/account.v1.AccountService/BlockUser"
AccountService_UnblockUser_FullMethodName = "/account.v1.AccountService/UnblockUser"
AccountService_BlockIp_FullMethodName = "/account.v1.AccountService/BlockIp"
AccountService_UnblockIp_FullMethodName = "/account.v1.AccountService/UnblockIp"
) )
// AccountServiceClient is the client API for AccountService service. // AccountServiceClient is the client API for AccountService service.
@@ -49,6 +53,10 @@ type AccountServiceClient interface {
UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error) UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error)
GetPinStatus(ctx context.Context, in *GetPinStatusRequest, opts ...grpc.CallOption) (*GetPinStatusResponse, error) GetPinStatus(ctx context.Context, in *GetPinStatusRequest, opts ...grpc.CallOption) (*GetPinStatusResponse, error)
RemovePin(ctx context.Context, in *RemovePinRequest, opts ...grpc.CallOption) (*RemovePinResponse, error) RemovePin(ctx context.Context, in *RemovePinRequest, opts ...grpc.CallOption) (*RemovePinResponse, error)
BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error)
UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error)
BlockIp(ctx context.Context, in *BlockIpRequest, opts ...grpc.CallOption) (*BlockIpResponse, error)
UnblockIp(ctx context.Context, in *UnblockIpRequest, opts ...grpc.CallOption) (*UnblockIpResponse, error)
} }
type accountServiceClient struct { type accountServiceClient struct {
@@ -179,6 +187,46 @@ func (c *accountServiceClient) RemovePin(ctx context.Context, in *RemovePinReque
return out, nil return out, nil
} }
func (c *accountServiceClient) 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, AccountService_BlockUser_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) 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, AccountService_UnblockUser_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) BlockIp(ctx context.Context, in *BlockIpRequest, opts ...grpc.CallOption) (*BlockIpResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(BlockIpResponse)
err := c.cc.Invoke(ctx, AccountService_BlockIp_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) UnblockIp(ctx context.Context, in *UnblockIpRequest, opts ...grpc.CallOption) (*UnblockIpResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(UnblockIpResponse)
err := c.cc.Invoke(ctx, AccountService_UnblockIp_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// AccountServiceServer is the server API for AccountService service. // AccountServiceServer is the server API for AccountService service.
// All implementations must embed UnimplementedAccountServiceServer // All implementations must embed UnimplementedAccountServiceServer
// for forward compatibility. // for forward compatibility.
@@ -195,6 +243,10 @@ type AccountServiceServer interface {
UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error) UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error)
GetPinStatus(context.Context, *GetPinStatusRequest) (*GetPinStatusResponse, error) GetPinStatus(context.Context, *GetPinStatusRequest) (*GetPinStatusResponse, error)
RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error) RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error)
BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error)
UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error)
BlockIp(context.Context, *BlockIpRequest) (*BlockIpResponse, error)
UnblockIp(context.Context, *UnblockIpRequest) (*UnblockIpResponse, error)
mustEmbedUnimplementedAccountServiceServer() mustEmbedUnimplementedAccountServiceServer()
} }
@@ -241,6 +293,18 @@ func (UnimplementedAccountServiceServer) GetPinStatus(context.Context, *GetPinSt
func (UnimplementedAccountServiceServer) RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error) { func (UnimplementedAccountServiceServer) RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error) {
return nil, status.Error(codes.Unimplemented, "method RemovePin not implemented") return nil, status.Error(codes.Unimplemented, "method RemovePin not implemented")
} }
func (UnimplementedAccountServiceServer) BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error) {
return nil, status.Error(codes.Unimplemented, "method BlockUser not implemented")
}
func (UnimplementedAccountServiceServer) UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error) {
return nil, status.Error(codes.Unimplemented, "method UnblockUser not implemented")
}
func (UnimplementedAccountServiceServer) BlockIp(context.Context, *BlockIpRequest) (*BlockIpResponse, error) {
return nil, status.Error(codes.Unimplemented, "method BlockIp not implemented")
}
func (UnimplementedAccountServiceServer) UnblockIp(context.Context, *UnblockIpRequest) (*UnblockIpResponse, error) {
return nil, status.Error(codes.Unimplemented, "method UnblockIp not implemented")
}
func (UnimplementedAccountServiceServer) mustEmbedUnimplementedAccountServiceServer() {} func (UnimplementedAccountServiceServer) mustEmbedUnimplementedAccountServiceServer() {}
func (UnimplementedAccountServiceServer) testEmbeddedByValue() {} func (UnimplementedAccountServiceServer) testEmbeddedByValue() {}
@@ -478,6 +542,78 @@ func _AccountService_RemovePin_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _AccountService_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.(AccountServiceServer).BlockUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_BlockUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).BlockUser(ctx, req.(*BlockUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_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.(AccountServiceServer).UnblockUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_UnblockUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).UnblockUser(ctx, req.(*UnblockUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_BlockIp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockIpRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).BlockIp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_BlockIp_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).BlockIp(ctx, req.(*BlockIpRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_UnblockIp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnblockIpRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).UnblockIp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_UnblockIp_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).UnblockIp(ctx, req.(*UnblockIpRequest))
}
return interceptor(ctx, in, info, handler)
}
// AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. // AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service.
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
@@ -533,6 +669,22 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{
MethodName: "RemovePin", MethodName: "RemovePin",
Handler: _AccountService_RemovePin_Handler, Handler: _AccountService_RemovePin_Handler,
}, },
{
MethodName: "BlockUser",
Handler: _AccountService_BlockUser_Handler,
},
{
MethodName: "UnblockUser",
Handler: _AccountService_UnblockUser_Handler,
},
{
MethodName: "BlockIp",
Handler: _AccountService_BlockIp_Handler,
},
{
MethodName: "UnblockIp",
Handler: _AccountService_UnblockIp_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "account.proto", Metadata: "account.proto",