您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

70 行
1.4KB

  1. import { Field, InputType } from '@nestjs/graphql';
  2. import { ItunesEpisodeTypeEnum } from 'schemas/enum/itunes-episode-type.enum';
  3. import { EpisodeEnclosureCreateDto } from './episode-enclosure-create.dto';
  4. @InputType()
  5. export class EpisodeCreateDto {
  6. @Field({ nullable: true })
  7. title?: string;
  8. @Field({ nullable: true })
  9. description?: string;
  10. @Field()
  11. url: string;
  12. @Field({ nullable: true })
  13. guid?: string;
  14. @Field(type => [String], { nullable: true })
  15. categories?: string[];
  16. @Field({ nullable: true })
  17. author?: string;
  18. @Field()
  19. date: Date;
  20. @Field({ nullable: true })
  21. lat?: number;
  22. @Field({ nullable: true })
  23. long?: number;
  24. @Field(type => EpisodeEnclosureCreateDto, { nullable: true })
  25. enclosure?: EpisodeEnclosureCreateDto;
  26. @Field({ nullable: true })
  27. content?: string;
  28. @Field({ nullable: true })
  29. itunesAuthor?: string;
  30. @Field({ nullable: true })
  31. itunesExplicit?: boolean;
  32. @Field({ nullable: true })
  33. itunesSubtitle?: string;
  34. @Field({ nullable: true })
  35. itunesSummary?: string;
  36. @Field({ nullable: true })
  37. itunesDuration?: number;
  38. @Field({ nullable: true })
  39. itunesImage?: string;
  40. @Field({ nullable: true })
  41. itunesSeason?: number;
  42. @Field({ nullable: true })
  43. itunesEpisode?: number;
  44. @Field({ nullable: true })
  45. itunesTitle?: string;
  46. @Field(type => ItunesEpisodeTypeEnum, { nullable: true })
  47. itunesEpisodeType?: ItunesEpisodeTypeEnum;
  48. }