@@ -9,7 +9,7 @@ import org.ssssssss.magicapi.modules.BoundSql;
public interface SQLInterceptor {
/**
- * 1.1.1 新增,
+ * 1.1.1 新增
*/
default void preHandle(BoundSql boundSql, RequestEntity requestEntity) {
preHandle(boundSql);
@@ -20,6 +20,8 @@ public interface SQLInterceptor {
* @see SQLInterceptor#preHandle(BoundSql, RequestEntity)
@Deprecated
- void preHandle(BoundSql boundSql);
+ default void preHandle(BoundSql boundSql){
+
+ }
}
@@ -16,7 +16,7 @@ public interface MagicAPIService extends MagicModule {
* @param path 请求路径
* @param context 请求上下文,主要给脚本中使用
- public Object execute(String method, String path, Map<String, Object> context);
+ Object execute(String method, String path, Map<String, Object> context);
* 执行MagicAPI中的接口,带code和message信息