Enhance Users Service and DTOs
- Added Default trait to UsersDetailItemDto for easier instantiation. - Refactored UsersServiceTrait to use Pin<Box<dyn Future<...>> for async functions, improving compatibility with async/await. - Updated all service methods to return futures instead of using async_trait. - Improved error handling and logging in upload_file method, ensuring proper handling of multipart data. - Masked sensitive information in Env struct's Debug implementation for better security in logs. - Cleaned up Cargo.toml by removing unnecessary async-trait workspace dependency.
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ hyper = "1.6.0"
|
||||
hyper-util = "0.1.0"
|
||||
minio = "0.1.0"
|
||||
|
||||
async-trait = "0.1.77"
|
||||
|
||||
tokio-test = "0.4.3"
|
||||
mockall = "0.12.1"
|
||||
once_cell = "1.19.0"
|
||||
|
||||
Reference in New Issue
Block a user