feat(chat): 增加数据库SQL访问接口
This commit is contained in:
@@ -8,6 +8,7 @@ import com.lanyuanxiaoyao.service.configuration.entity.PageResponse;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.info.*;
|
||||
import java.util.Map;
|
||||
import org.eclipse.collections.api.list.ImmutableList;
|
||||
import org.eclipse.collections.api.map.ImmutableMap;
|
||||
|
||||
/**
|
||||
* Info 接口
|
||||
@@ -193,4 +194,7 @@ public interface InfoService {
|
||||
|
||||
@Get("/info/clean_table_version")
|
||||
Integer cleanTableVersion();
|
||||
|
||||
@Post(value = "/jdbc", contentType = "plain/text")
|
||||
ImmutableList<ImmutableMap<String, String>> jdbc(@Body String sql);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user