From 07e7afad0fe8757a79cf925471beae134d5f5ea4 Mon Sep 17 00:00:00 2001 From: Fankai Liu Date: Thu, 30 Nov 2023 21:10:04 +0800 Subject: [PATCH] fix fixed extract marco --- src/template/src/dtos/user.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,