From 876dc56050add8b26e3daeaedbd9881a63ffa41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=90=E5=AE=B6?= Date: Wed, 10 Apr 2024 11:13:39 +0800 Subject: [PATCH] move models to dto --- api/src/controller/game_account.rs | 2 +- domain/src/{models => dto}/game_account.rs | 0 domain/src/{models => dto}/mod.rs | 0 domain/src/lib.rs | 2 +- service/src/game_account.rs | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename domain/src/{models => dto}/game_account.rs (100%) rename domain/src/{models => dto}/mod.rs (100%) 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};