ready to move gRPC into a single services folder, time to do the changes now

This commit is contained in:
filipriec
2025-03-31 09:39:47 +02:00
parent f66d67c238
commit dd4d9e88c6
6 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1 @@
// src/services/adresar.rs

View File

View File

@@ -1,4 +1,4 @@
// src/tui/terminal/grpc_client.rs // src/services/grpc_client.rs
use tonic::transport::Channel; use tonic::transport::Channel;
use common::proto::multieko2::adresar::adresar_client::AdresarClient; use common::proto::multieko2::adresar::adresar_client::AdresarClient;
@@ -15,6 +15,7 @@ use common::proto::multieko2::auth::{
LoginRequest, LoginResponse LoginRequest, LoginResponse
}; };
#[derive(Clone)]
pub struct GrpcClient { pub struct GrpcClient {
adresar_client: AdresarClient<Channel>, adresar_client: AdresarClient<Channel>,
table_structure_client: TableStructureServiceClient<Channel>, table_structure_client: TableStructureServiceClient<Channel>,

View File

@@ -1,5 +1,13 @@
// services/mod.rs // services/mod.rs
pub mod grpc_client; pub mod grpc_client;
pub mod adresar;
pub mod table;
pub mod profile;
pub mod auth;
pub use grpc_client::*; pub use grpc_client::*;
pub use adresar::*;
pub use table::*;
pub use profile::*;
pub use auth::*;

View File

@@ -0,0 +1 @@
// src/services/profile.rs

View File

@@ -0,0 +1 @@
// src/services/table.rs