BLOG-78 refactor: rename db mapper
All checks were successful
Frontend CI / build (push) Successful in 1m5s

This commit is contained in:
SquidSpirit 2025-07-26 09:12:41 +08:00
parent f400bcf486
commit 7b431e3fc8
7 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
pub mod color_mapper; pub mod color_db_mapper;
pub mod label_mapper; pub mod label_db_mapper;
pub mod post_db_mapper;
pub mod post_db_service; pub mod post_db_service;
pub mod post_info_mapper; pub mod post_info_db_mapper;
pub mod post_mapper;
pub mod post_repository_impl; pub mod post_repository_impl;

View File

@ -1,4 +1,4 @@
use crate::{adapter::gateway::color_mapper::ColorMapper, domain::entity::label::Label}; use crate::{adapter::gateway::color_db_mapper::ColorMapper, domain::entity::label::Label};
pub struct LabelMapper { pub struct LabelMapper {
pub id: i32, pub id: i32,

View File

@ -1,4 +1,4 @@
use crate::{adapter::gateway::post_info_mapper::PostInfoMapper, domain::entity::post::Post}; use crate::{adapter::gateway::post_info_db_mapper::PostInfoMapper, domain::entity::post::Post};
pub struct PostMapper { pub struct PostMapper {
pub id: i32, pub id: i32,

View File

@ -1,7 +1,7 @@
use async_trait::async_trait; use async_trait::async_trait;
use crate::{ use crate::{
adapter::gateway::{post_info_mapper::PostInfoMapper, post_mapper::PostMapper}, adapter::gateway::{post_info_db_mapper::PostInfoMapper, post_db_mapper::PostMapper},
application::error::post_error::PostError, application::error::post_error::PostError,
}; };

View File

@ -1,6 +1,6 @@
use chrono::{DateTime, NaiveDateTime, Utc}; use chrono::{DateTime, NaiveDateTime, Utc};
use crate::{adapter::gateway::label_mapper::LabelMapper, domain::entity::post_info::PostInfo}; use crate::{adapter::gateway::label_db_mapper::LabelMapper, domain::entity::post_info::PostInfo};
pub struct PostInfoMapper { pub struct PostInfoMapper {
pub id: i32, pub id: i32,

View File

@ -5,8 +5,8 @@ use sqlx::{Pool, Postgres};
use crate::{ use crate::{
adapter::gateway::{ adapter::gateway::{
color_mapper::ColorMapper, label_mapper::LabelMapper, post_db_service::PostDbService, color_db_mapper::ColorMapper, label_db_mapper::LabelMapper, post_db_service::PostDbService,
post_info_mapper::PostInfoMapper, post_mapper::PostMapper, post_info_db_mapper::PostInfoMapper, post_db_mapper::PostMapper,
}, },
application::error::post_error::PostError, application::error::post_error::PostError,
}; };