代码优化

This commit is contained in:
mxd
2021-05-15 13:22:02 +08:00
parent 24b61849e1
commit c29f0a00a7
2 changed files with 5 additions and 3 deletions

View File

@@ -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){
}
}

View File

@@ -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信息