@@ -3,8 +3,8 @@ use std::{any::Any, sync::Arc};
33use async_trait:: async_trait;
44
55use crate :: {
6- action:: ActionForms , error:: ShieldError , request:: Request , session :: Session , shield :: Shield ,
7- user:: User ,
6+ action:: ActionForms , error:: ShieldError , request:: Request , response :: Response ,
7+ session :: Session , shield :: Shield , user:: User ,
88} ;
99
1010#[ async_trait]
@@ -24,7 +24,7 @@ pub trait DynShield: Send + Sync {
2424 provider_id : Option < & str > ,
2525 session : Session ,
2626 request : Request ,
27- ) -> Result < ( ) , ShieldError > ;
27+ ) -> Result < Response , ShieldError > ;
2828}
2929
3030#[ async_trait]
@@ -48,7 +48,7 @@ impl<U: User> DynShield for Shield<U> {
4848 provider_id : Option < & str > ,
4949 session : Session ,
5050 request : Request ,
51- ) -> Result < ( ) , ShieldError > {
51+ ) -> Result < Response , ShieldError > {
5252 self . call ( action_id, method_id, provider_id, session, request)
5353 . await
5454 }
@@ -80,7 +80,7 @@ impl ShieldDyn {
8080 provider_id : Option < & str > ,
8181 session : Session ,
8282 request : Request ,
83- ) -> Result < ( ) , ShieldError > {
83+ ) -> Result < Response , ShieldError > {
8484 self . 0
8585 . call ( action_id, method_id, provider_id, session, request)
8686 . await
0 commit comments