feature/authentication service #9

Merged
GW_MC merged 19 commits from feature/authentication into master 2025-12-19 12:24:49 +08:00
Showing only changes of commit 6a88e401f6 - Show all commits

View File

@@ -1,10 +1,12 @@
use sea_orm::DbErr; use sea_orm::DbErr;
#[derive(Debug)]
pub enum ServiceError { pub enum ServiceError {
NotFound(String), NotFound(String),
DatabaseError(String), DatabaseError(String),
Unauthorized(String), Unauthorized(String),
InternalError(String), InternalError(String),
BadRequest(String),
} }
impl From<Box<dyn std::error::Error + Send + Sync + 'static>> for ServiceError { impl From<Box<dyn std::error::Error + Send + Sync + 'static>> for ServiceError {