- update: proto files to move common stuff into common proto files
- update: made changes for new proto paths - add: skills to character table - add: load and send skills to client from db - add: chat proto
This commit is contained in:
@@ -15,6 +15,10 @@ use utils::service_discovery::get_service_address;
|
||||
use crate::api::session_service_server::SessionServiceServer;
|
||||
use crate::session_service::SessionServiceImpl;
|
||||
|
||||
pub mod common {
|
||||
tonic::include_proto!("common");
|
||||
}
|
||||
|
||||
pub mod api {
|
||||
tonic::include_proto!("session_service_api");
|
||||
}
|
||||
|
||||
@@ -3,8 +3,9 @@ use tokio::sync::Mutex;
|
||||
use tonic::{Request, Response, Status};
|
||||
use serde::{Serialize, Deserialize};
|
||||
use crate::api::{
|
||||
CreateSessionRequest, SessionResponse, GetSessionRequest, DeleteSessionRequest, Empty,
|
||||
CreateSessionRequest, SessionResponse, GetSessionRequest, DeleteSessionRequest,
|
||||
};
|
||||
use crate::common::{Empty};
|
||||
use crate::api::session_service_server::SessionService;
|
||||
use utils::redis_cache::{Cache, RedisCache};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user