diff --git a/api/src/controller/game_account.rs b/api/src/controller/game_account.rs index 9b3568f..eb65521 100644 --- a/api/src/controller/game_account.rs +++ b/api/src/controller/game_account.rs @@ -1,5 +1,5 @@ use axum::Json; -use domain::models::game_account::GameAccountCreate; +use domain::dto::game_account::GameAccountCreate; use library::resp::response::{ResErr, ResOK, ResResult}; use validator::Validate; diff --git a/domain/src/models/game_account.rs b/domain/src/dto/game_account.rs similarity index 100% rename from domain/src/models/game_account.rs rename to domain/src/dto/game_account.rs diff --git a/domain/src/models/mod.rs b/domain/src/dto/mod.rs similarity index 100% rename from domain/src/models/mod.rs rename to domain/src/dto/mod.rs diff --git a/domain/src/lib.rs b/domain/src/lib.rs index 4bf59a0..e39cf7c 100644 --- a/domain/src/lib.rs +++ b/domain/src/lib.rs @@ -1,2 +1,2 @@ pub mod entities; -pub mod models; \ No newline at end of file +pub mod dto; \ No newline at end of file diff --git a/service/src/game_account.rs b/service/src/game_account.rs index e85df49..c049f15 100644 --- a/service/src/game_account.rs +++ b/service/src/game_account.rs @@ -1,6 +1,6 @@ use domain::entities::game_account; use domain::entities::prelude::GameAccount; -use domain::models::game_account::GameAccountCreate; +use domain::dto::game_account::GameAccountCreate; use library::db; use library::resp::response::ResErr::{ErrPerm, ErrSystem}; use library::resp::response::{ResOK, ResResult};