mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-08 17:03:39 +08:00
add no-paging
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user