pull/59/head
shao1121353141 2023-09-26 21:34:48 +08:00
parent afd373f8a0
commit ce89e58142
1 changed files with 5 additions and 3 deletions

View File

@ -58,11 +58,13 @@ public class AppController {
*/
@Operation(summary = "获取应用数量")
@GetMapping(value = "/count")
public ApiRestResult<String> getAppCount() {
public ApiRestResult<String> getAppCount(String groupId) {
Long count;
if (StringUtils.isEmpty(groupId)) {
count = appService.getAppCount();
} else {
count = appService.getAppCount(groupId);
}
return ApiRestResult.ok(count.toString());
}