Эх сурвалжийг харах

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

Dave 1 сар өмнө
parent
commit
d74b42cc7a

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

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