add no-paging

This commit is contained in:
zhou-hao
2017-11-29 13:48:07 +08:00
parent c7ebaff336
commit fc2f8a9efa

View File

@@ -76,6 +76,14 @@ public interface QueryController<E, PK, Q extends Entity> {
return ok(getService().selectPager(param));
}
@Authorize(action = Permission.ACTION_QUERY)
@GetMapping("/no-paging")
@AccessLogger("{dynamic_query}")
@ApiOperation(value = "不分页动态查询数据", responseReference = "get")
default ResponseMessage<List<E>> listNoPaging(Q param) {
return ok(getService().select(param));
}
@Authorize(action = Permission.ACTION_QUERY)
@GetMapping("/count")
@AccessLogger("{dynamic_query}")