email.dto.ts 863 Bytes
import { ApiProperty } from '@nestjs/swagger'
// import { IsDateString, IsOptional } from 'class-validator';

export class EmailQueryDto {
  @ApiProperty({
    type: String,
    description: '收件人',
    required: true
  })
  to?: string;

  @ApiProperty({
    type: String,
    description: '标题',
    required: true
  })
  subject?: string;
  @ApiProperty({
    type: String,
    description: '内容',
    required: true
  })
  mentorship_page?: string;
  supervisor_daily_page?: string;
  extraction?: string;
  sales_content?: string;
  training_materials?: string;
  scene_market?: string;
  reportData?: string;
  template?: string;
  aiAgentColumns?: string;
  ai_agent?: string;
}
class MentorshipPage {
  count: number;
  peakDay: Array<PeakDay>;
  uniqueAccounts: number;
  queryTime: Object;
}
class PeakDay {
  count: number;
  date: string;
}