1 2 3 4 5 6 7 8 9
//! 日期时间服务 use crate::tina::data::{date_time::LocalDateTime, AppResult}; /// 日期时间服务接口 #[async_trait] pub trait IDateTimeService: Send + Sync + 'static { /// 获取当前时间 async fn get_current_date_time(&self) -> AppResult<LocalDateTime>; }