This commit is contained in:
2019-03-01 22:04:41 +08:00
parent bd59b4f24c
commit b5506e07e7
14 changed files with 53 additions and 67 deletions

View File

@@ -17,7 +17,7 @@ import java.util.function.Function;
/**
* @author: liangxianyou at 2018/11/18 9:02.
*/
@RestService(automapping = false, comment = "Arango服务")
@RestService(automapping = true, comment = "Arango服务")
public class ArangoService extends BaseService {
protected static final boolean winos = System.getProperty("os.name").contains("Window");
@@ -43,7 +43,6 @@ public class ArangoService extends BaseService {
protected static ArangoDatabase dbDev;
protected static ArangoCollection colVisLog;
/* todo启用本service 打开注释
@Override
public void init(AnyValue config) {
System.out.println("isDev :" + isDev);
@@ -58,7 +57,7 @@ public class ArangoService extends BaseService {
if (!colVisLog.exists()) {
colVisLog.create();
}
}*/
}
@RestMapping(auth = false)
public List<Map> hi() {
@@ -77,7 +76,7 @@ public class ArangoService extends BaseService {
});
}
/*public static long findInt(String aql) {
public static long findInt(String aql) {
return dbDev.query(aql, long.class).first();
}
public static long findInt(String aql, Map para) {
@@ -91,6 +90,6 @@ public class ArangoService extends BaseService {
public static <T> List<T> find(String aql, Map para, Class<T> clazz) {
return dbDev.query(aql, para, clazz).asListRemaining();
}*/
}
}