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

22 行
477B

  1. import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
  2. import Podcast from 'podcast';
  3. import { Document } from 'mongoose';
  4. export type EpisodeEnclosureDocument = EpisodeEnclosure & Document;
  5. @Schema()
  6. export class EpisodeEnclosure implements Podcast.ItemEnclosure {
  7. @Prop()
  8. url: string;
  9. @Prop()
  10. file?: string;
  11. @Prop()
  12. size?: number;
  13. @Prop()
  14. type?: string;
  15. }
  16. export const EpisodeEnclosureSchema = SchemaFactory.createForClass(
  17. EpisodeEnclosure,
  18. );