diff --git a/api/inside/accounts.pb.go b/api/inside/accounts.pb.go index 8a38c0a..4843d73 100644 --- a/api/inside/accounts.pb.go +++ b/api/inside/accounts.pb.go @@ -272,6 +272,7 @@ func (m *GetUsersResponse) GetUsers() []*User { type UserRegistrationRequest struct { TelegramId int32 `protobuf:"varint,1,opt,name=telegramId,proto3" json:"telegramId,omitempty"` + PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -309,6 +310,13 @@ func (m *UserRegistrationRequest) GetTelegramId() int32 { return 0 } +func (m *UserRegistrationRequest) GetPhoneNumber() string { + if m != nil { + return m.PhoneNumber + } + return "" +} + type UserRegistrationResponse struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -348,6 +356,53 @@ func (m *UserRegistrationResponse) GetUserId() string { return "" } +type PhoneVerificationRequest struct { + TelegramId int32 `protobuf:"varint,1,opt,name=telegramId,proto3" json:"telegramId,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PhoneVerificationRequest) Reset() { *m = PhoneVerificationRequest{} } +func (m *PhoneVerificationRequest) String() string { return proto.CompactTextString(m) } +func (*PhoneVerificationRequest) ProtoMessage() {} +func (*PhoneVerificationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e1e7723af4c007b7, []int{8} +} + +func (m *PhoneVerificationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PhoneVerificationRequest.Unmarshal(m, b) +} +func (m *PhoneVerificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PhoneVerificationRequest.Marshal(b, m, deterministic) +} +func (m *PhoneVerificationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhoneVerificationRequest.Merge(m, src) +} +func (m *PhoneVerificationRequest) XXX_Size() int { + return xxx_messageInfo_PhoneVerificationRequest.Size(m) +} +func (m *PhoneVerificationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PhoneVerificationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PhoneVerificationRequest proto.InternalMessageInfo + +func (m *PhoneVerificationRequest) GetTelegramId() int32 { + if m != nil { + return m.TelegramId + } + return 0 +} + +func (m *PhoneVerificationRequest) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + func init() { proto.RegisterType((*GetLoginLinkRequest)(nil), "inside_api.GetLoginLinkRequest") proto.RegisterType((*GetUserRequest)(nil), "inside_api.GetUserRequest") @@ -357,27 +412,30 @@ func init() { proto.RegisterType((*GetUsersResponse)(nil), "inside_api.GetUsersResponse") proto.RegisterType((*UserRegistrationRequest)(nil), "inside_api.UserRegistrationRequest") proto.RegisterType((*UserRegistrationResponse)(nil), "inside_api.UserRegistrationResponse") + proto.RegisterType((*PhoneVerificationRequest)(nil), "inside_api.PhoneVerificationRequest") } func init() { proto.RegisterFile("accounts.proto", fileDescriptor_e1e7723af4c007b7) } var fileDescriptor_e1e7723af4c007b7 = []byte{ - // 257 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xd1, 0x4b, 0xc3, 0x30, - 0x10, 0xc6, 0xe9, 0xba, 0x0d, 0x76, 0xc2, 0xac, 0x15, 0xb4, 0x4f, 0x52, 0x82, 0xc8, 0x9e, 0x8a, - 0x4c, 0x44, 0xf4, 0xc1, 0x37, 0x19, 0xc2, 0x9e, 0x02, 0x3e, 0x4b, 0xdd, 0x8e, 0x12, 0x9c, 0x49, - 0xcd, 0x5d, 0xc0, 0x3f, 0x5f, 0x92, 0x86, 0x59, 0x9c, 0x42, 0x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xe1, 0x9b, 0x6f, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x7d, 0x39, 0x62, 0xf8, 0x01, 0x00, - 0x00, + // 298 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x4b, 0xc3, 0x30, + 0x14, 0xc6, 0xe9, 0xda, 0x0d, 0xfa, 0x06, 0xb3, 0x46, 0xd0, 0x9e, 0xa4, 0x04, 0x91, 0x9d, 0x8a, + 0x4c, 0x44, 0xf0, 0xe0, 0x4d, 0x86, 0x30, 0x86, 0x04, 0xf4, 0xe2, 0x41, 0xba, 0xf6, 0x59, 0x83, + 0x5b, 0x52, 0x93, 0x14, 0xfc, 0xf3, 0x25, 0x69, 0x98, 0xc5, 0x29, 0xcc, 0x5b, 0xfa, 0xde, 0xfb, + 0xbe, 0xef, 0xf7, 0x1e, 0x85, 0x49, 0x51, 0x96, 0xb2, 0x15, 0x46, 0xe7, 0x8d, 0x92, 0x46, 0x12, + 0xe0, 0x42, 0xf3, 0x0a, 0x5f, 0x8a, 0x86, 0xd3, 0x2b, 0x38, 0x9a, 0xa3, 0x59, 0xc8, 0x9a, 0x8b, + 0x05, 0x17, 0xef, 0x0c, 0x3f, 0x5a, 0xd4, 0x86, 0x9c, 0x02, 0x18, 0x5c, 0x63, 0xad, 0x8a, 0xcd, + 0x7d, 0x95, 0x06, 0x59, 0x30, 0x1d, 0xb2, 0x5e, 0x85, 0x5e, 0xc0, 0x64, 0x8e, 0xe6, 0x51, 0xa3, + 0xda, 0x57, 0x71, 0x07, 0x87, 0xbd, 0x14, 0xdd, 0x48, 0xa1, 0x91, 0x24, 0x10, 0xb6, 0x6a, 0xed, + 0xa6, 0x63, 0x66, 0x9f, 0xd6, 0x06, 0x3f, 0x1b, 0xae, 0x0a, 0xc3, 0xa5, 0x48, 0x07, 0x59, 0x30, + 0x0d, 0x59, 0xaf, 0x42, 0x6f, 0x21, 0xb2, 0xa9, 0xe4, 0x18, 0x46, 0xad, 0x46, 0xe5, 0xa3, 0x62, + 0xe6, 0xbf, 0x7e, 0x60, 0x0c, 0x76, 0x30, 0xae, 0xe1, 0x60, 0x0b, 0xee, 0x21, 0xce, 0x20, 0xb2, + 0x62, 0x67, 0x34, 0x9e, 0x25, 0xf9, 0xf7, 0x75, 0x72, 0x37, 0xe7, 0xba, 0xf4, 0x06, 0x12, 0x2f, + 0xd4, 0x5b, 0xe5, 0x39, 0x0c, 0x6d, 0x4f, 0xa7, 0x41, 0x16, 0xfe, 0x2a, 0xed, 0xda, 0xf4, 0x19, + 0x4e, 0xba, 0xc4, 0x9a, 0x6b, 0xd3, 0x2d, 0xb2, 0xe7, 0xd9, 0x48, 0x06, 0xe3, 0xe6, 0x4d, 0x0a, + 0x5c, 0xb6, 0x9b, 0x15, 0x2a, 0xb7, 0x50, 0xcc, 0xfa, 0x25, 0x3a, 0x83, 0x74, 0xd7, 0xdc, 0x03, + 0xfe, 0x71, 0x25, 0xba, 0x84, 0xf4, 0xc1, 0x5a, 0x3c, 0xa1, 0xe2, 0xaf, 0xbc, 0xfc, 0x17, 0x11, + 0x81, 0xa8, 0x94, 0x15, 0x7a, 0x14, 0xf7, 0x5e, 0x8d, 0xdc, 0x8f, 0x75, 0xf9, 0x15, 0x00, 0x00, + 0xff, 0xff, 0x30, 0xbd, 0x0d, 0x0a, 0x6a, 0x02, 0x00, 0x00, } diff --git a/api/inside/accounts.proto b/api/inside/accounts.proto index a396942..2ea5faa 100644 --- a/api/inside/accounts.proto +++ b/api/inside/accounts.proto @@ -30,8 +30,15 @@ message GetUsersResponse { message UserRegistrationRequest { int32 telegramId = 1; + string phoneNumber = 2; } message UserRegistrationResponse { string userId = 1; -} \ No newline at end of file +} + +message PhoneVerificationRequest { + int32 telegramId = 1; + string code = 2; +} + diff --git a/api/inside/contracts.pb.go b/api/inside/contracts.pb.go index 2ce8ee0..9a5cb03 100644 --- a/api/inside/contracts.pb.go +++ b/api/inside/contracts.pb.go @@ -70,38 +70,39 @@ func init() { func init() { proto.RegisterFile("contracts.proto", fileDescriptor_b6d125f880f9ca35) } var fileDescriptor_b6d125f880f9ca35 = []byte{ - // 491 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x6e, 0xd3, 0x30, - 0x14, 0xc6, 0x9b, 0x8b, 0xf1, 0xe7, 0x34, 0x1d, 0xc8, 0xec, 0x62, 0x0b, 0x30, 0x50, 0xf8, 0x23, - 0xae, 0x2a, 0x54, 0x5e, 0x80, 0xc2, 0x58, 0x34, 0x54, 0xa6, 0x91, 0xae, 0xda, 0x05, 0x17, 0xc8, - 0x24, 0x47, 0xc3, 0x2a, 0xd8, 0xc1, 0x3e, 0x65, 0xda, 0x73, 0xf0, 0x8e, 0x3c, 0x05, 0x17, 0x28, - 0x71, 0xdc, 0xda, 0x51, 0x0b, 0xbd, 0x3c, 0xe7, 0xf7, 0xf9, 0xf3, 0xe7, 0xd3, 0xd3, 0xc0, 0x9d, - 0x42, 0x49, 0xd2, 0xbc, 0x20, 0x33, 0xac, 0xb4, 0x22, 0xc5, 0x40, 0x48, 0x23, 0x4a, 0xfc, 0xcc, - 0x2b, 0x91, 0xec, 0x6a, 0x2c, 0x50, 0x54, 0x8e, 0x25, 0xbb, 0xbc, 0x28, 0xd4, 0x42, 0xae, 0x6a, - 0x8d, 0x3f, 0x16, 0x68, 0x96, 0xf5, 0xa0, 0xc4, 0x9f, 0xa2, 0x40, 0x57, 0xc6, 0x1a, 0x2b, 0xa5, - 0xc9, 0x56, 0xe9, 0x33, 0x18, 0xbc, 0xd3, 0x5a, 0xe9, 0x1c, 0x4d, 0xa5, 0xa4, 0x41, 0xb6, 0x07, - 0x3b, 0x58, 0x37, 0xf6, 0xa3, 0xc7, 0xd1, 0x8b, 0xdb, 0xb9, 0x2d, 0x46, 0xbf, 0x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, 0x34, 0x4e, 0x61, 0x3f, 0x43, 0x3a, 0x16, 0xda, 0xd0, 0x4c, 0x16, 0x73, 0x2c, - 0xe6, 0x58, 0xb6, 0x1e, 0x1b, 0x76, 0x20, 0x59, 0x33, 0x90, 0xf6, 0x44, 0xda, 0x63, 0xe7, 0x70, - 0x77, 0x8a, 0xae, 0x9e, 0x12, 0xa7, 0x85, 0x09, 0x03, 0x77, 0xa9, 0x0b, 0x7c, 0xe0, 0x8b, 0x82, - 0xbf, 0x43, 0xe3, 0x7a, 0xe0, 0x52, 0xb6, 0xfa, 0x0b, 0x41, 0x5f, 0x5b, 0xfb, 0xe0, 0xe4, 0xc7, - 0x05, 0xea, 0xeb, 0x37, 0xd7, 0x16, 0xfd, 0x27, 0xeb, 0x7b, 0xe8, 0x4f, 0x91, 0xce, 0x45, 0x31, - 0x47, 0x3a, 0x29, 0xc3, 0x4d, 0xf0, 0xc0, 0x56, 0x09, 0x27, 0x10, 0xd7, 0xdb, 0xc6, 0xaf, 0xec, - 0xa9, 0xf0, 0xdf, 0xe8, 0x93, 0xad, 0xdc, 0xde, 0x02, 0x64, 0x48, 0x47, 0xf6, 0x9b, 0x11, 0xae, - 0xfc, 0xaa, 0xef, 0x9c, 0x98, 0x8f, 0x2d, 0x6b, 0x16, 0x74, 0x02, 0xf1, 0xac, 0x2a, 0x39, 0xa1, - 0xed, 0x85, 0x91, 0x7c, 0xb2, 0x4d, 0xa4, 0x2f, 0x37, 0x9a, 0x6f, 0xd5, 0xab, 0xbf, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x5a, 0x9e, 0xe5, 0xa8, 0x17, 0x05, 0x00, 0x00, + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcd, 0x72, 0xd3, 0x30, + 0x10, 0xc7, 0xe3, 0x43, 0xf9, 0xd8, 0x38, 0x85, 0x11, 0x3d, 0xb4, 0x06,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x13, 0x74, 0xf1, 0xc4, 0x50, 0xb3, + 0xd0, 0xe1, 0x08, 0xda, 0x74, 0x2b, 0x97, 0x53, 0x38, 0x70, 0x2e, 0x9b, 0xfa, 0x33, 0x6e, 0x2e, + 0x1a, 0xf9, 0xa0, 0xf3, 0xe3, 0x02, 0xd5, 0xf2, 0xcd, 0xd2, 0xa2, 0x6b, 0xbc, 0xbe, 0x87, 0xee, + 0x04, 0xcd, 0x94, 0xb3, 0x39, 0x9a, 0x93, 0x22, 0xdc, 0x2d, 0x0f, 0x6c, 0xe5, 0x70, 0x04, 0x71, + 0xb5, 0xbf, 0xf4, 0xd2, 0x76, 0x85, 0xff, 0xb7, 0x4f, 0xb6, 0x52, 0x7b, 0x0b, 0x90, 0xa1, 0x39, + 0xb2, 0xaf, 0x50, 0xf8, 0x13, 0xad, 0xf3, 0x4e, 0x89, 0xf8, 0xd8, 0xb2, 0x7a, 0xe5, 0x47, 0x10, + 0xcf, 0xca, 0x82, 0x1a, 0xb4, 0xb9, 0xd0, 0x92, 0x4f, 0xb6, 0xb1, 0xf4, 0xf5, 0x46, 0xfd, 0xfa, + 0xbd, 0xfa, 0x17, 0x00, 0x00, 0xff, 0xff, 0x32, 0x7e, 0x03, 0x22, 0x69, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -433,6 +434,7 @@ var _ReceiptApi_serviceDesc = grpc.ServiceDesc{ // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type InternalApiClient interface { RegisterUser(ctx context.Context, in *UserRegistrationRequest, opts ...grpc.CallOption) (*UserRegistrationResponse, error) + VerifyPhone(ctx context.Context, in *PhoneVerificationRequest, opts ...grpc.CallOption) (*ErrorResponse, error) GetFirstUnckeckedRequest(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (*ReceiptRequest, error) SetRequestStatus(ctx context.Context, in *SetRequestStatusRequest, opts ...grpc.CallOption) (*ErrorResponse, error) GetFirstRequestWithStatus(ctx context.Context, in *QueryByStatus, opts ...grpc.CallOption) (*ReceiptRequest, error) @@ -459,6 +461,15 @@ func (c *internalApiClient) RegisterUser(ctx context.Context, in *UserRegistrati return out, nil } +func (c *internalApiClient) VerifyPhone(ctx context.Context, in *PhoneVerificationRequest, opts ...grpc.CallOption) (*ErrorResponse, error) { + out := new(ErrorResponse) + err := c.cc.Invoke(ctx, "/inside_api.InternalApi/VerifyPhone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *internalApiClient) GetFirstUnckeckedRequest(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (*ReceiptRequest, error) { out := new(ReceiptRequest) err := c.cc.Invoke(ctx, "/inside_api.InternalApi/GetFirstUnckeckedRequest", in, out, opts...) @@ -548,6 +559,7 @@ func (c *internalApiClient) UpdateDevice(ctx context.Context, in *UpdateDeviceRe // InternalApiServer is the server API for InternalApi service. type InternalApiServer interface { RegisterUser(context.Context, *UserRegistrationRequest) (*UserRegistrationResponse, error) + VerifyPhone(context.Context, *PhoneVerificationRequest) (*ErrorResponse, error) GetFirstUnckeckedRequest(context.Context, *NoParams) (*ReceiptRequest, error) SetRequestStatus(context.Context, *SetRequestStatusRequest) (*ErrorResponse, error) GetFirstRequestWithStatus(context.Context, *QueryByStatus) (*ReceiptRequest, error) @@ -564,6 +576,9 @@ type UnimplementedInternalApiServer struct { func (*UnimplementedInternalApiServer) RegisterUser(ctx context.Context, req *UserRegistrationRequest) (*UserRegistrationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterUser not implemented") } +func (*UnimplementedInternalApiServer) VerifyPhone(ctx context.Context, req *PhoneVerificationRequest) (*ErrorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VerifyPhone not implemented") +} func (*UnimplementedInternalApiServer) GetFirstUnckeckedRequest(ctx context.Context, req *NoParams) (*ReceiptRequest, error) { return nil, status.Errorf(codes.Unimplemented, "method GetFirstUnckeckedRequest not implemented") } @@ -608,6 +623,24 @@ func _InternalApi_RegisterUser_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _InternalApi_VerifyPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PhoneVerificationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InternalApiServer).VerifyPhone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/inside_api.InternalApi/VerifyPhone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InternalApiServer).VerifyPhone(ctx, req.(*PhoneVerificationRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _InternalApi_GetFirstUnckeckedRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NoParams) if err := dec(in); err != nil { @@ -745,6 +778,10 @@ var _InternalApi_serviceDesc = grpc.ServiceDesc{ MethodName: "RegisterUser", Handler: _InternalApi_RegisterUser_Handler, }, + { + MethodName: "VerifyPhone", + Handler: _InternalApi_VerifyPhone_Handler, + }, { MethodName: "GetFirstUnckeckedRequest", Handler: _InternalApi_GetFirstUnckeckedRequest_Handler, diff --git a/api/inside/contracts.proto b/api/inside/contracts.proto index 8de18a2..0b7444a 100644 --- a/api/inside/contracts.proto +++ b/api/inside/contracts.proto @@ -34,6 +34,10 @@ service InternalApi { } + rpc VerifyPhone(PhoneVerificationRequest) returns (ErrorResponse) { + + } + rpc GetFirstUnckeckedRequest (NoParams) returns (ReceiptRequest) { }