diff --git a/src/repo/message.rs b/src/repo/message.rs index ea4a4ff..5ab6614 100644 --- a/src/repo/message.rs +++ b/src/repo/message.rs @@ -1,6 +1,6 @@ use chrono::Utc; use sea_orm::{ - ActiveModelTrait, ColumnTrait, Condition, ConnectionTrait, DatabaseTransaction, EntityTrait, + ActiveModelTrait, ColumnTrait, ConnectionTrait, DatabaseTransaction, EntityTrait, QueryFilter, Set, }; use uuid::Uuid; diff --git a/src/service/user.rs b/src/service/user.rs index 43c91d2..b9d61ed 100644 --- a/src/service/user.rs +++ b/src/service/user.rs @@ -5,14 +5,14 @@ use tracing::info; use uuid::Uuid; use crate::constant::VERIFY_CODE_LEN; -use crate::entity; + use crate::entity::message::MessageKind; use crate::repo; // use crate::service::redis::*; // use crate::service::session; // use crate::service::token; -use crate::dto::{request::*, response::*}; -use crate::error::{invalid_input_error, AppError, AppResult}; +use crate::dto::{request::*}; +use crate::error::{AppError, AppResult}; use crate::server::state::AppState; use crate::util;