paginate app operations and refine runtime settings layout
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-07 15:33:08 +09:00
parent 895e56088c
commit 5be7f0980b
8 changed files with 512 additions and 34 deletions
+38 -8
View File
@@ -8,6 +8,7 @@ import {
CreateAppReleaseDto,
CreateBuildJobDto,
CreateDeploymentJobDto,
DecommissionAppDto,
CreateMigrationJobDto,
CreateRuntimeEnvProfileDto,
CreateRuntimeEnvVariableDto,
@@ -35,6 +36,14 @@ export class AppsController {
return this.appsService.deleteApp(appId);
}
@Post(':appId/decommission')
decommissionApp(
@Param('appId') appId: string,
@Body() body: DecommissionAppDto,
) {
return this.appsService.decommissionApp(appId, body);
}
@Post(':appId/components')
createComponent(
@Param('appId') appId: string,
@@ -62,8 +71,14 @@ export class AppsController {
}
@Get('builds')
listBuildJobs(@Query('appKey') appKey?: string) {
return this.appsService.listBuildJobs(appKey);
listBuildJobs(
@Query('appKey') appKey?: string,
@Query('page') page?: string,
@Query('limit') limit?: string,
@Query('since') since?: string,
@Query('status') status?: string,
) {
return this.appsService.listBuildJobs(appKey, page, limit, since, status);
}
@Post('builds')
@@ -103,8 +118,13 @@ export class AppsController {
}
@Get('releases')
listReleases(@Query('appKey') appKey?: string) {
return this.appsService.listReleases(appKey);
listReleases(
@Query('appKey') appKey?: string,
@Query('page') page?: string,
@Query('limit') limit?: string,
@Query('since') since?: string,
) {
return this.appsService.listReleases(appKey, page, limit, since);
}
@Post('releases')
@@ -113,8 +133,13 @@ export class AppsController {
}
@Get('deployments')
listDeployments(@Query('appKey') appKey?: string) {
return this.appsService.listDeployments(appKey);
listDeployments(
@Query('appKey') appKey?: string,
@Query('page') page?: string,
@Query('limit') limit?: string,
@Query('since') since?: string,
) {
return this.appsService.listDeployments(appKey, page, limit, since);
}
@Post('deployments')
@@ -123,8 +148,13 @@ export class AppsController {
}
@Get('migrations')
listMigrationJobs() {
return this.appsService.listMigrationJobs();
listMigrationJobs(
@Query('appId') appId?: string,
@Query('page') page?: string,
@Query('limit') limit?: string,
@Query('since') since?: string,
) {
return this.appsService.listMigrationJobs(appId, page, limit, since);
}
@Post('migrations')