弱网核销功能
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user