Просмотр исходного кода

feat(ad-click): update IPv4 hint description and example in AdClickRequestDto

Dave 1 месяц назад
Родитель
Сommit
d74b42cc7a
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      apps/box-stats-api/src/feature/stats-events/ads-stats.controller.ts

+ 2 - 1
apps/box-stats-api/src/feature/stats-events/ads-stats.controller.ts

@@ -40,7 +40,7 @@ export class AdClickRequestDto {
   adsId!: string; // ✅ required
   adsId!: string; // ✅ required
 
 
   @ApiPropertyOptional({
   @ApiPropertyOptional({
-    description: 'Optional IPv4 hint (empty string/null accepted).',
+    description: 'IPv4 地址(可选,格式需正确)',
     example: '1.2.3.4',
     example: '1.2.3.4',
   })
   })
   @Transform(({ value }) => {
   @Transform(({ value }) => {
@@ -80,6 +80,7 @@ export class AdsStatsController {
           uid: 'xxxxxx',
           uid: 'xxxxxx',
           channelId: 'AAA',
           channelId: 'AAA',
           adsId: '64b7c2f967ce4d6799c047d1',
           adsId: '64b7c2f967ce4d6799c047d1',
+          ipv4: '1.1.1.1', // 可选
         },
         },
       },
       },
     },
     },