diff --git a/src/template/src/dtos/user.hbs b/src/template/src/dtos/user.hbs index cbed8c7..dde16c7 100644 --- a/src/template/src/dtos/user.hbs +++ b/src/template/src/dtos/user.hbs @@ -16,7 +16,7 @@ pub struct UserLoginRequest { } #[derive(Debug, Deserialize,Extractible,ToSchema, Default)] -#[salvo(extract(default_source(from = "body", format = "json")))] +#[salvo(extract(default_source(from = "body", parse = "json")))] pub struct UserUpdateRequest { #[salvo(extract(source(from = "param")))] pub id: String,