|
21 | 21 | import org.apache.shenyu.admin.aspect.annotation.RestApi; |
22 | 22 | import org.apache.shenyu.admin.mapper.AppAuthMapper; |
23 | 23 | import org.apache.shenyu.admin.mapper.AuthPathMapper; |
| 24 | +import org.apache.shenyu.admin.mapper.NamespaceMapper; |
24 | 25 | import org.apache.shenyu.admin.model.dto.AppAuthDTO; |
25 | 26 | import org.apache.shenyu.admin.model.dto.AuthApplyDTO; |
26 | 27 | import org.apache.shenyu.admin.model.dto.AuthPathWarpDTO; |
@@ -96,17 +97,21 @@ public ShenyuAdminResult updateSk(@RequestParam("appKey") |
96 | 97 | * @param phone specific phone |
97 | 98 | * @param currentPage current page of list |
98 | 99 | * @param pageSize page size of query |
| 100 | + * @param namespaceId namespaceId |
99 | 101 | * @return the shenyu result |
100 | 102 | */ |
101 | 103 | @GetMapping("/findPageByQuery") |
102 | 104 | @RequiresPermissions("system:authen:list") |
103 | 105 | public ShenyuAdminResult findPageByQuery(final String appKey, final String phone, |
104 | 106 | @RequestParam @NotNull(message = "currentPage not null") final Integer currentPage, |
105 | | - @RequestParam @NotNull(message = "pageSize not null") final Integer pageSize) { |
| 107 | + @RequestParam @NotNull(message = "pageSize not null") final Integer pageSize, |
| 108 | + @Valid @Existed(message = "namespaceId is not existed", |
| 109 | + provider = NamespaceMapper.class) final String namespaceId) { |
106 | 110 | AppAuthQuery query = new AppAuthQuery(); |
107 | 111 | query.setPhone(phone); |
108 | 112 | query.setAppKey(appKey); |
109 | 113 | query.setPageParameter(new PageParameter(currentPage, pageSize)); |
| 114 | + query.setNamespaceId(namespaceId); |
110 | 115 | CommonPager<AppAuthVO> commonPager = appAuthService.listByPage(query); |
111 | 116 | return ShenyuAdminResult.success(ShenyuResultMessage.QUERY_SUCCESS, commonPager); |
112 | 117 | } |
|
0 commit comments