chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-03 15:06:51 +00:00
parent 7137cd3649
commit b748c4e182
6 changed files with 720 additions and 228 deletions

View File

@@ -41,7 +41,6 @@ export interface ChangePasswordRequest {
oldPassword: string;
newPassword: string;
code?: string | undefined;
pin?: string | undefined;
}
export interface ChangePasswordResponse {
@@ -49,12 +48,60 @@ export interface ChangePasswordResponse {
message: string;
}
export interface SetPinRequest {
userId: string;
pin: string;
}
export interface SetPinResponse {
success: boolean;
message: string;
}
export interface UnlockPinRequest {
accessToken: string;
pin: string;
}
export interface UnlockPinResponse {
success: boolean;
message: string;
}
export interface GetPinStatusRequest {
userId: string;
}
export interface GetPinStatusResponse {
hasPin: boolean;
isLocked: boolean;
lockUntil: string;
}
export interface RemovePinRequest {
pin: string;
userId: string;
}
export interface RemovePinResponse {
success: boolean;
message: string;
}
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
export interface AccountServiceClient {
getAccount(request: GetAccountRequest, metadata?: Metadata): Observable<GetAccountResponse>;
changePassword(request: ChangePasswordRequest, metadata?: Metadata): Observable<ChangePasswordResponse>;
setPin(request: SetPinRequest, metadata?: Metadata): Observable<SetPinResponse>;
unlockPin(request: UnlockPinRequest, metadata?: Metadata): Observable<UnlockPinResponse>;
getPinStatus(request: GetPinStatusRequest, metadata?: Metadata): Observable<GetPinStatusResponse>;
removePin(request: RemovePinRequest, metadata?: Metadata): Observable<RemovePinResponse>;
}
export interface AccountServiceController {
@@ -67,11 +114,31 @@ export interface AccountServiceController {
request: ChangePasswordRequest,
metadata?: Metadata,
): Promise<ChangePasswordResponse> | Observable<ChangePasswordResponse> | ChangePasswordResponse;
setPin(
request: SetPinRequest,
metadata?: Metadata,
): Promise<SetPinResponse> | Observable<SetPinResponse> | SetPinResponse;
unlockPin(
request: UnlockPinRequest,
metadata?: Metadata,
): Promise<UnlockPinResponse> | Observable<UnlockPinResponse> | UnlockPinResponse;
getPinStatus(
request: GetPinStatusRequest,
metadata?: Metadata,
): Promise<GetPinStatusResponse> | Observable<GetPinStatusResponse> | GetPinStatusResponse;
removePin(
request: RemovePinRequest,
metadata?: Metadata,
): Promise<RemovePinResponse> | Observable<RemovePinResponse> | RemovePinResponse;
}
export function AccountServiceControllerMethods() {
return function (constructor: Function) {
const grpcMethods: string[] = ["getAccount", "changePassword"];
const grpcMethods: string[] = ["getAccount", "changePassword", "setPin", "unlockPin", "getPinStatus", "removePin"];
for (const method of grpcMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
GrpcMethod("AccountService", method)(constructor.prototype[method], method, descriptor);

View File

@@ -68,16 +68,6 @@ export interface GetAccountRoleLevelResponse {
roleLevel: number;
}
export interface UnlockPinRequest {
accessToken: string;
pinCode: string;
}
export interface UnlockPinResponse {
success: boolean;
message: string;
}
export const AUTH_V1_PACKAGE_NAME = "auth.v1";
export interface AuthServiceClient {
@@ -95,8 +85,6 @@ export interface AuthServiceClient {
logout(request: LogoutRequest, metadata?: Metadata): Observable<LogoutResponse>;
logoutAll(request: LogoutRequest, metadata?: Metadata): Observable<LogoutResponse>;
unlockPin(request: UnlockPinRequest, metadata?: Metadata): Observable<UnlockPinResponse>;
}
export interface AuthServiceController {
@@ -126,24 +114,11 @@ export interface AuthServiceController {
request: LogoutRequest,
metadata?: Metadata,
): Promise<LogoutResponse> | Observable<LogoutResponse> | LogoutResponse;
unlockPin(
request: UnlockPinRequest,
metadata?: Metadata,
): Promise<UnlockPinResponse> | Observable<UnlockPinResponse> | UnlockPinResponse;
}
export function AuthServiceControllerMethods() {
return function (constructor: Function) {
const grpcMethods: string[] = [
"login",
"refresh",
"verifyToken",
"getAccountRoleLevel",
"logout",
"logoutAll",
"unlockPin",
];
const grpcMethods: string[] = ["login", "refresh", "verifyToken", "getAccountRoleLevel", "logout", "logoutAll"];
for (const method of grpcMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);

View File

@@ -251,7 +251,6 @@ type ChangePasswordRequest struct {
OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"`
Pin *string `protobuf:"bytes,5,opt,name=pin,proto3,oneof" json:"pin,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -314,13 +313,6 @@ func (x *ChangePasswordRequest) GetCode() string {
return ""
}
func (x *ChangePasswordRequest) GetPin() string {
if x != nil && x.Pin != nil {
return *x.Pin
}
return ""
}
type ChangePasswordResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
@@ -373,6 +365,422 @@ func (x *ChangePasswordResponse) GetMessage() string {
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"`
Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetPinRequest) Reset() {
*x = SetPinRequest{}
mi := &file_account_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetPinRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetPinRequest) ProtoMessage() {}
func (x *SetPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[4]
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 SetPinRequest.ProtoReflect.Descriptor instead.
func (*SetPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{4}
}
func (x *SetPinRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *SetPinRequest) GetPin() string {
if x != nil {
return x.Pin
}
return ""
}
type SetPinResponse 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 *SetPinResponse) Reset() {
*x = SetPinResponse{}
mi := &file_account_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetPinResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetPinResponse) ProtoMessage() {}
func (x *SetPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[5]
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 SetPinResponse.ProtoReflect.Descriptor instead.
func (*SetPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{5}
}
func (x *SetPinResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *SetPinResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type UnlockPinRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockPinRequest) Reset() {
*x = UnlockPinRequest{}
mi := &file_account_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockPinRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockPinRequest) ProtoMessage() {}
func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_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 UnlockPinRequest.ProtoReflect.Descriptor instead.
func (*UnlockPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{6}
}
func (x *UnlockPinRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *UnlockPinRequest) GetPin() string {
if x != nil {
return x.Pin
}
return ""
}
type UnlockPinResponse 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 *UnlockPinResponse) Reset() {
*x = UnlockPinResponse{}
mi := &file_account_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockPinResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockPinResponse) ProtoMessage() {}
func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_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 UnlockPinResponse.ProtoReflect.Descriptor instead.
func (*UnlockPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{7}
}
func (x *UnlockPinResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *UnlockPinResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type GetPinStatusRequest 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 *GetPinStatusRequest) Reset() {
*x = GetPinStatusRequest{}
mi := &file_account_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPinStatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPinStatusRequest) ProtoMessage() {}
func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[8]
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 GetPinStatusRequest.ProtoReflect.Descriptor instead.
func (*GetPinStatusRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{8}
}
func (x *GetPinStatusRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type GetPinStatusResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
HasPin bool `protobuf:"varint,1,opt,name=has_pin,json=hasPin,proto3" json:"has_pin,omitempty"`
IsLocked bool `protobuf:"varint,2,opt,name=is_locked,json=isLocked,proto3" json:"is_locked,omitempty"`
LockUntil string `protobuf:"bytes,3,opt,name=lock_until,json=lockUntil,proto3" json:"lock_until,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPinStatusResponse) Reset() {
*x = GetPinStatusResponse{}
mi := &file_account_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPinStatusResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPinStatusResponse) ProtoMessage() {}
func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[9]
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 GetPinStatusResponse.ProtoReflect.Descriptor instead.
func (*GetPinStatusResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{9}
}
func (x *GetPinStatusResponse) GetHasPin() bool {
if x != nil {
return x.HasPin
}
return false
}
func (x *GetPinStatusResponse) GetIsLocked() bool {
if x != nil {
return x.IsLocked
}
return false
}
func (x *GetPinStatusResponse) GetLockUntil() string {
if x != nil {
return x.LockUntil
}
return ""
}
type RemovePinRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemovePinRequest) Reset() {
*x = RemovePinRequest{}
mi := &file_account_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemovePinRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemovePinRequest) ProtoMessage() {}
func (x *RemovePinRequest) 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 RemovePinRequest.ProtoReflect.Descriptor instead.
func (*RemovePinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{10}
}
func (x *RemovePinRequest) GetPin() string {
if x != nil {
return x.Pin
}
return ""
}
func (x *RemovePinRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type RemovePinResponse 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 *RemovePinResponse) Reset() {
*x = RemovePinResponse{}
mi := &file_account_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemovePinResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemovePinResponse) ProtoMessage() {}
func (x *RemovePinResponse) 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 RemovePinResponse.ProtoReflect.Descriptor instead.
func (*RemovePinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{11}
}
func (x *RemovePinResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *RemovePinResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
var File_account_proto protoreflect.FileDescriptor
const file_account_proto_rawDesc = "" +
@@ -404,22 +812,49 @@ const file_account_proto_rawDesc = "" +
"\blanguage\x18\x10 \x01(\tR\blanguage\x12$\n" +
"\x0etwo_fa_enabled\x18\x11 \x01(\bR\ftwoFaEnabled\x12\x17\n" +
"\ahas_pin\x18\x12 \x01(\bR\x06hasPinB\x0e\n" +
"\f_employee_id\"\xb7\x01\n" +
"\f_employee_id\"\x98\x01\n" +
"\x15ChangePasswordRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12!\n" +
"\fold_password\x18\x02 \x01(\tR\voldPassword\x12!\n" +
"\fnew_password\x18\x03 \x01(\tR\vnewPassword\x12\x17\n" +
"\x04code\x18\x04 \x01(\tH\x00R\x04code\x88\x01\x01\x12\x15\n" +
"\x03pin\x18\x05 \x01(\tH\x01R\x03pin\x88\x01\x01B\a\n" +
"\x05_codeB\x06\n" +
"\x04_pin\"L\n" +
"\x04code\x18\x04 \x01(\tH\x00R\x04code\x88\x01\x01B\a\n" +
"\x05_code\"L\n" +
"\x16ChangePasswordResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xb6\x01\n" +
"\amessage\x18\x02 \x01(\tR\amessage\":\n" +
"\rSetPinRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x10\n" +
"\x03pin\x18\x02 \x01(\tR\x03pin\"D\n" +
"\x0eSetPinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"G\n" +
"\x10UnlockPinRequest\x12!\n" +
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x10\n" +
"\x03pin\x18\x02 \x01(\tR\x03pin\"G\n" +
"\x11UnlockPinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\".\n" +
"\x13GetPinStatusRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\"k\n" +
"\x14GetPinStatusResponse\x12\x17\n" +
"\ahas_pin\x18\x01 \x01(\bR\x06hasPin\x12\x1b\n" +
"\tis_locked\x18\x02 \x01(\bR\bisLocked\x12\x1d\n" +
"\n" +
"lock_until\x18\x03 \x01(\tR\tlockUntil\"=\n" +
"\x10RemovePinRequest\x12\x10\n" +
"\x03pin\x18\x01 \x01(\tR\x03pin\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\"G\n" +
"\x11RemovePinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xde\x03\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.ChangePasswordResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
"\x0eChangePassword\x12!.account.v1.ChangePasswordRequest\x1a\".account.v1.ChangePasswordResponse\x12?\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" +
"\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"
var (
file_account_proto_rawDescOnce sync.Once
@@ -433,20 +868,36 @@ func file_account_proto_rawDescGZIP() []byte {
return file_account_proto_rawDescData
}
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
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
(*SetPinRequest)(nil), // 4: account.v1.SetPinRequest
(*SetPinResponse)(nil), // 5: account.v1.SetPinResponse
(*UnlockPinRequest)(nil), // 6: account.v1.UnlockPinRequest
(*UnlockPinResponse)(nil), // 7: account.v1.UnlockPinResponse
(*GetPinStatusRequest)(nil), // 8: account.v1.GetPinStatusRequest
(*GetPinStatusResponse)(nil), // 9: account.v1.GetPinStatusResponse
(*RemovePinRequest)(nil), // 10: account.v1.RemovePinRequest
(*RemovePinResponse)(nil), // 11: 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
1, // 2: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
3, // 3: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
2, // [2:4] is the sub-list for method output_type
0, // [0:2] is the sub-list for method input_type
4, // 2: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest
6, // 3: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest
8, // 4: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest
10, // 5: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest
1, // 6: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
3, // 7: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
5, // 8: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse
7, // 9: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse
9, // 10: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse
11, // 11: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse
6, // [6:12] is the sub-list for method output_type
0, // [0:6] 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
@@ -465,7 +916,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: 4,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},

View File

@@ -21,6 +21,10 @@ const _ = grpc.SupportPackageIsVersion9
const (
AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount"
AccountService_ChangePassword_FullMethodName = "/account.v1.AccountService/ChangePassword"
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.
@@ -29,6 +33,10 @@ 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)
SetPin(ctx context.Context, in *SetPinRequest, opts ...grpc.CallOption) (*SetPinResponse, error)
UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error)
GetPinStatus(ctx context.Context, in *GetPinStatusRequest, opts ...grpc.CallOption) (*GetPinStatusResponse, error)
RemovePin(ctx context.Context, in *RemovePinRequest, opts ...grpc.CallOption) (*RemovePinResponse, error)
}
type accountServiceClient struct {
@@ -59,12 +67,56 @@ func (c *accountServiceClient) ChangePassword(ctx context.Context, in *ChangePas
return out, nil
}
func (c *accountServiceClient) SetPin(ctx context.Context, in *SetPinRequest, opts ...grpc.CallOption) (*SetPinResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(SetPinResponse)
err := c.cc.Invoke(ctx, AccountService_SetPin_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(UnlockPinResponse)
err := c.cc.Invoke(ctx, AccountService_UnlockPin_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) GetPinStatus(ctx context.Context, in *GetPinStatusRequest, opts ...grpc.CallOption) (*GetPinStatusResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetPinStatusResponse)
err := c.cc.Invoke(ctx, AccountService_GetPinStatus_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) RemovePin(ctx context.Context, in *RemovePinRequest, opts ...grpc.CallOption) (*RemovePinResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RemovePinResponse)
err := c.cc.Invoke(ctx, AccountService_RemovePin_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// AccountServiceServer is the server API for AccountService service.
// All implementations must embed UnimplementedAccountServiceServer
// for forward compatibility.
type AccountServiceServer interface {
GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
SetPin(context.Context, *SetPinRequest) (*SetPinResponse, error)
UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error)
GetPinStatus(context.Context, *GetPinStatusRequest) (*GetPinStatusResponse, error)
RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error)
mustEmbedUnimplementedAccountServiceServer()
}
@@ -81,6 +133,18 @@ 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) SetPin(context.Context, *SetPinRequest) (*SetPinResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SetPin not implemented")
}
func (UnimplementedAccountServiceServer) UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error) {
return nil, status.Error(codes.Unimplemented, "method UnlockPin not implemented")
}
func (UnimplementedAccountServiceServer) GetPinStatus(context.Context, *GetPinStatusRequest) (*GetPinStatusResponse, error) {
return nil, status.Error(codes.Unimplemented, "method GetPinStatus not implemented")
}
func (UnimplementedAccountServiceServer) RemovePin(context.Context, *RemovePinRequest) (*RemovePinResponse, error) {
return nil, status.Error(codes.Unimplemented, "method RemovePin not implemented")
}
func (UnimplementedAccountServiceServer) mustEmbedUnimplementedAccountServiceServer() {}
func (UnimplementedAccountServiceServer) testEmbeddedByValue() {}
@@ -138,6 +202,78 @@ func _AccountService_ChangePassword_Handler(srv interface{}, ctx context.Context
return interceptor(ctx, in, info, handler)
}
func _AccountService_SetPin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetPinRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).SetPin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_SetPin_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).SetPin(ctx, req.(*SetPinRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_UnlockPin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnlockPinRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).UnlockPin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_UnlockPin_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).UnlockPin(ctx, req.(*UnlockPinRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_GetPinStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPinStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).GetPinStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_GetPinStatus_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).GetPinStatus(ctx, req.(*GetPinStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_RemovePin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RemovePinRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).RemovePin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_RemovePin_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).RemovePin(ctx, req.(*RemovePinRequest))
}
return interceptor(ctx, in, info, handler)
}
// AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -153,6 +289,22 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{
MethodName: "ChangePassword",
Handler: _AccountService_ChangePassword_Handler,
},
{
MethodName: "SetPin",
Handler: _AccountService_SetPin_Handler,
},
{
MethodName: "UnlockPin",
Handler: _AccountService_UnlockPin_Handler,
},
{
MethodName: "GetPinStatus",
Handler: _AccountService_GetPinStatus_Handler,
},
{
MethodName: "RemovePin",
Handler: _AccountService_RemovePin_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "account.proto",

View File

@@ -597,110 +597,6 @@ func (x *GetAccountRoleLevelResponse) GetRoleLevel() int32 {
return 0
}
type UnlockPinRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
PinCode string `protobuf:"bytes,2,opt,name=pin_code,json=pinCode,proto3" json:"pin_code,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockPinRequest) Reset() {
*x = UnlockPinRequest{}
mi := &file_auth_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockPinRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockPinRequest) ProtoMessage() {}
func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_auth_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 UnlockPinRequest.ProtoReflect.Descriptor instead.
func (*UnlockPinRequest) Descriptor() ([]byte, []int) {
return file_auth_proto_rawDescGZIP(), []int{10}
}
func (x *UnlockPinRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *UnlockPinRequest) GetPinCode() string {
if x != nil {
return x.PinCode
}
return ""
}
type UnlockPinResponse 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 *UnlockPinResponse) Reset() {
*x = UnlockPinResponse{}
mi := &file_auth_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockPinResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockPinResponse) ProtoMessage() {}
func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_auth_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 UnlockPinResponse.ProtoReflect.Descriptor instead.
func (*UnlockPinResponse) Descriptor() ([]byte, []int) {
return file_auth_proto_rawDescGZIP(), []int{11}
}
func (x *UnlockPinResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *UnlockPinResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
var File_auth_proto protoreflect.FileDescriptor
const file_auth_proto_rawDesc = "" +
@@ -759,21 +655,14 @@ const file_auth_proto_rawDesc = "" +
"\x1bGetAccountRoleLevelResponse\x12\x14\n" +
"\x05found\x18\x01 \x01(\bR\x05found\x12\x1d\n" +
"\n" +
"role_level\x18\x02 \x01(\x05R\troleLevel\"P\n" +
"\x10UnlockPinRequest\x12!\n" +
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x19\n" +
"\bpin_code\x18\x02 \x01(\tR\apinCode\"G\n" +
"\x11UnlockPinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xec\x03\n" +
"role_level\x18\x02 \x01(\x05R\troleLevel2\xa8\x03\n" +
"\vAuthService\x126\n" +
"\x05Login\x12\x15.auth.v1.LoginRequest\x1a\x16.auth.v1.LoginResponse\x12<\n" +
"\aRefresh\x12\x17.auth.v1.RefreshRequest\x1a\x18.auth.v1.RefreshResponse\x12H\n" +
"\vVerifyToken\x12\x1b.auth.v1.VerifyTokenRequest\x1a\x1c.auth.v1.VerifyTokenResponse\x12`\n" +
"\x13GetAccountRoleLevel\x12#.auth.v1.GetAccountRoleLevelRequest\x1a$.auth.v1.GetAccountRoleLevelResponse\x129\n" +
"\x06Logout\x12\x16.auth.v1.LogoutRequest\x1a\x17.auth.v1.LogoutResponse\x12<\n" +
"\tLogoutAll\x12\x16.auth.v1.LogoutRequest\x1a\x17.auth.v1.LogoutResponse\x12B\n" +
"\tUnlockPin\x12\x19.auth.v1.UnlockPinRequest\x1a\x1a.auth.v1.UnlockPinResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
"\tLogoutAll\x12\x16.auth.v1.LogoutRequest\x1a\x17.auth.v1.LogoutResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
var (
file_auth_proto_rawDescOnce sync.Once
@@ -787,7 +676,7 @@ func file_auth_proto_rawDescGZIP() []byte {
return file_auth_proto_rawDescData
}
var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_auth_proto_goTypes = []any{
(*LoginRequest)(nil), // 0: auth.v1.LoginRequest
(*LoginResponse)(nil), // 1: auth.v1.LoginResponse
@@ -799,8 +688,6 @@ var file_auth_proto_goTypes = []any{
(*VerifyTokenResponse)(nil), // 7: auth.v1.VerifyTokenResponse
(*GetAccountRoleLevelRequest)(nil), // 8: auth.v1.GetAccountRoleLevelRequest
(*GetAccountRoleLevelResponse)(nil), // 9: auth.v1.GetAccountRoleLevelResponse
(*UnlockPinRequest)(nil), // 10: auth.v1.UnlockPinRequest
(*UnlockPinResponse)(nil), // 11: auth.v1.UnlockPinResponse
}
var file_auth_proto_depIdxs = []int32{
0, // 0: auth.v1.AuthService.Login:input_type -> auth.v1.LoginRequest
@@ -809,16 +696,14 @@ var file_auth_proto_depIdxs = []int32{
8, // 3: auth.v1.AuthService.GetAccountRoleLevel:input_type -> auth.v1.GetAccountRoleLevelRequest
4, // 4: auth.v1.AuthService.Logout:input_type -> auth.v1.LogoutRequest
4, // 5: auth.v1.AuthService.LogoutAll:input_type -> auth.v1.LogoutRequest
10, // 6: auth.v1.AuthService.UnlockPin:input_type -> auth.v1.UnlockPinRequest
1, // 7: auth.v1.AuthService.Login:output_type -> auth.v1.LoginResponse
3, // 8: auth.v1.AuthService.Refresh:output_type -> auth.v1.RefreshResponse
7, // 9: auth.v1.AuthService.VerifyToken:output_type -> auth.v1.VerifyTokenResponse
9, // 10: auth.v1.AuthService.GetAccountRoleLevel:output_type -> auth.v1.GetAccountRoleLevelResponse
5, // 11: auth.v1.AuthService.Logout:output_type -> auth.v1.LogoutResponse
5, // 12: auth.v1.AuthService.LogoutAll:output_type -> auth.v1.LogoutResponse
11, // 13: auth.v1.AuthService.UnlockPin:output_type -> auth.v1.UnlockPinResponse
7, // [7:14] is the sub-list for method output_type
0, // [0:7] is the sub-list for method input_type
1, // 6: auth.v1.AuthService.Login:output_type -> auth.v1.LoginResponse
3, // 7: auth.v1.AuthService.Refresh:output_type -> auth.v1.RefreshResponse
7, // 8: auth.v1.AuthService.VerifyToken:output_type -> auth.v1.VerifyTokenResponse
9, // 9: auth.v1.AuthService.GetAccountRoleLevel:output_type -> auth.v1.GetAccountRoleLevelResponse
5, // 10: auth.v1.AuthService.Logout:output_type -> auth.v1.LogoutResponse
5, // 11: auth.v1.AuthService.LogoutAll:output_type -> auth.v1.LogoutResponse
6, // [6:12] is the sub-list for method output_type
0, // [0:6] 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
@@ -837,7 +722,7 @@ func file_auth_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_auth_proto_rawDesc), len(file_auth_proto_rawDesc)),
NumEnums: 0,
NumMessages: 12,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},

View File

@@ -25,7 +25,6 @@ const (
AuthService_GetAccountRoleLevel_FullMethodName = "/auth.v1.AuthService/GetAccountRoleLevel"
AuthService_Logout_FullMethodName = "/auth.v1.AuthService/Logout"
AuthService_LogoutAll_FullMethodName = "/auth.v1.AuthService/LogoutAll"
AuthService_UnlockPin_FullMethodName = "/auth.v1.AuthService/UnlockPin"
)
// AuthServiceClient is the client API for AuthService service.
@@ -38,7 +37,6 @@ type AuthServiceClient interface {
GetAccountRoleLevel(ctx context.Context, in *GetAccountRoleLevelRequest, opts ...grpc.CallOption) (*GetAccountRoleLevelResponse, error)
Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
LogoutAll(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error)
}
type authServiceClient struct {
@@ -109,16 +107,6 @@ func (c *authServiceClient) LogoutAll(ctx context.Context, in *LogoutRequest, op
return out, nil
}
func (c *authServiceClient) UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(UnlockPinResponse)
err := c.cc.Invoke(ctx, AuthService_UnlockPin_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// AuthServiceServer is the server API for AuthService service.
// All implementations must embed UnimplementedAuthServiceServer
// for forward compatibility.
@@ -129,7 +117,6 @@ type AuthServiceServer interface {
GetAccountRoleLevel(context.Context, *GetAccountRoleLevelRequest) (*GetAccountRoleLevelResponse, error)
Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
LogoutAll(context.Context, *LogoutRequest) (*LogoutResponse, error)
UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error)
mustEmbedUnimplementedAuthServiceServer()
}
@@ -158,9 +145,6 @@ func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*
func (UnimplementedAuthServiceServer) LogoutAll(context.Context, *LogoutRequest) (*LogoutResponse, error) {
return nil, status.Error(codes.Unimplemented, "method LogoutAll not implemented")
}
func (UnimplementedAuthServiceServer) UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error) {
return nil, status.Error(codes.Unimplemented, "method UnlockPin not implemented")
}
func (UnimplementedAuthServiceServer) mustEmbedUnimplementedAuthServiceServer() {}
func (UnimplementedAuthServiceServer) testEmbeddedByValue() {}
@@ -290,24 +274,6 @@ func _AuthService_LogoutAll_Handler(srv interface{}, ctx context.Context, dec fu
return interceptor(ctx, in, info, handler)
}
func _AuthService_UnlockPin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnlockPinRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServiceServer).UnlockPin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AuthService_UnlockPin_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServiceServer).UnlockPin(ctx, req.(*UnlockPinRequest))
}
return interceptor(ctx, in, info, handler)
}
// AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -339,10 +305,6 @@ var AuthService_ServiceDesc = grpc.ServiceDesc{
MethodName: "LogoutAll",
Handler: _AuthService_LogoutAll_Handler,
},
{
MethodName: "UnlockPin",
Handler: _AuthService_UnlockPin_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "auth.proto",