弱网核销功能

This commit is contained in:
2026-07-12 12:00:55 +08:00
parent de01d36cdb
commit 06b1cb22e0
24 changed files with 1434 additions and 42 deletions
@@ -0,0 +1,40 @@
import { Type } from 'class-transformer';
import { IsIn, IsInt, IsNotEmpty, IsOptional, IsString, MaxLength, Min } from 'class-validator';
export class RedeemFailureReportDto {
@IsString()
@IsNotEmpty()
token: string;
@IsIn(['NETWORK', 'BUSINESS'])
errorClass: 'NETWORK' | 'BUSINESS';
@IsOptional()
@IsString()
@MaxLength(256)
message?: string;
@IsIn(['preview', 'confirm'])
step: 'preview' | 'confirm';
}
export class RedeemPendingSubmitDto {
@IsString()
@IsNotEmpty()
token: string;
@IsString()
@IsNotEmpty()
photoResourceId: string;
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(1)
failCount?: number;
@IsOptional()
@IsString()
@MaxLength(256)
remark?: string;
}