支持查询条件自定义名称

This commit is contained in:
2019-04-24 14:14:39 +08:00
parent 211e59ea3b
commit 0527faf25e
7 changed files with 104 additions and 75 deletions

View File

@@ -196,11 +196,11 @@ public class MetadataService extends BaseService { //arango
}
@RestMapping(name = "filter_update", comment = "查询配置修改")
public JBean filterUpdate(@RestParam(name = "serviceKey") String serviceKey,
public JBean filterUpdate(@RestParam(name = "name") String name,
@RestParam(name = "filters") String filters,
@RestParam(name = "platToken") String token) {
List _filters = gson.fromJson(filters, List.class);
MetaService metaService = MetaKit.getMetaService(serviceKey, token);
MetaService metaService = MetaKit.getMetaService(name, token);
metaService.setFilters(_filters);
metaService.update();