diff --git a/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts b/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts index 2998050e..82a89026 100644 --- a/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts +++ b/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts @@ -41,10 +41,12 @@ export class PrePlantingConfigController { ) {} @Get('config') - @ApiOperation({ summary: '获取预种计划开关状态' }) + @ApiOperation({ summary: '获取预种计划开关状态(含协议文本)' }) @ApiResponse({ status: HttpStatus.OK, description: '开关状态' }) async getConfig() { - return this.configService.getConfig(); + const config = await this.configService.getConfig(); + const agreementText = await this.configService.getAgreement(); + return { ...config, agreementText }; } @Post('config')