feat: add model
This commit is contained in:
parent
c5f6a24b3a
commit
42a75ba800
6 changed files with 117 additions and 1 deletions
|
|
@ -6,8 +6,10 @@ pub type Result<T> = core::result::Result<T, Error>;
|
|||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
LoginFail,
|
||||
PropertyDeleteFailIdNotFound { id: u64 },
|
||||
}
|
||||
|
||||
/// FIXME: return different status codes for different errors
|
||||
impl IntoResponse for Error {
|
||||
fn into_response(self) -> Response {
|
||||
println!("->> {:<12} - {self:?}", "INTO_RESPONSE");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue