ready to move gRPC into a single services folder, time to do the changes now
This commit is contained in:
1
client/src/services/adresar.rs
Normal file
1
client/src/services/adresar.rs
Normal file
@@ -0,0 +1 @@
|
||||
// src/services/adresar.rs
|
||||
0
client/src/services/auth.rs
Normal file
0
client/src/services/auth.rs
Normal file
@@ -1,4 +1,4 @@
|
||||
// src/tui/terminal/grpc_client.rs
|
||||
// src/services/grpc_client.rs
|
||||
|
||||
use tonic::transport::Channel;
|
||||
use common::proto::multieko2::adresar::adresar_client::AdresarClient;
|
||||
@@ -15,6 +15,7 @@ use common::proto::multieko2::auth::{
|
||||
LoginRequest, LoginResponse
|
||||
};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct GrpcClient {
|
||||
adresar_client: AdresarClient<Channel>,
|
||||
table_structure_client: TableStructureServiceClient<Channel>,
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
// services/mod.rs
|
||||
|
||||
pub mod grpc_client;
|
||||
pub mod adresar;
|
||||
pub mod table;
|
||||
pub mod profile;
|
||||
pub mod auth;
|
||||
|
||||
pub use grpc_client::*;
|
||||
pub use adresar::*;
|
||||
pub use table::*;
|
||||
pub use profile::*;
|
||||
pub use auth::*;
|
||||
|
||||
1
client/src/services/profile.rs
Normal file
1
client/src/services/profile.rs
Normal file
@@ -0,0 +1 @@
|
||||
// src/services/profile.rs
|
||||
1
client/src/services/table.rs
Normal file
1
client/src/services/table.rs
Normal file
@@ -0,0 +1 @@
|
||||
// src/services/table.rs
|
||||
Reference in New Issue
Block a user