|
@@ -14,6 +14,8 @@ export class FVO_video {
|
|
}
|
|
}
|
|
@ApiProperty({ description: '数据id' })
|
|
@ApiProperty({ description: '数据id' })
|
|
_id: string = undefined;
|
|
_id: string = undefined;
|
|
|
|
+ @ApiProperty({ description: '课程id' })
|
|
|
|
+ 'course': string = undefined;
|
|
@ApiProperty({ description: '标题' })
|
|
@ApiProperty({ description: '标题' })
|
|
'title': string = undefined;
|
|
'title': string = undefined;
|
|
@ApiProperty({ description: '简介' })
|
|
@ApiProperty({ description: '简介' })
|
|
@@ -26,6 +28,8 @@ export class FVO_video {
|
|
'logo': Array<any> = undefined;
|
|
'logo': Array<any> = undefined;
|
|
@ApiProperty({ description: '视频' })
|
|
@ApiProperty({ description: '视频' })
|
|
'file': Array<any> = undefined;
|
|
'file': Array<any> = undefined;
|
|
|
|
+ @ApiProperty({ description: '学时' })
|
|
|
|
+ 'hour': string = undefined;
|
|
@ApiProperty({ description: '播放次数' })
|
|
@ApiProperty({ description: '播放次数' })
|
|
'number': number = undefined;
|
|
'number': number = undefined;
|
|
@ApiProperty({ description: '内容' })
|
|
@ApiProperty({ description: '内容' })
|
|
@@ -41,12 +45,18 @@ export class FVO_video {
|
|
export class QDTO_video extends SearchBase {
|
|
export class QDTO_video extends SearchBase {
|
|
constructor() {
|
|
constructor() {
|
|
const like_prop = ['title'];
|
|
const like_prop = ['title'];
|
|
- const props = ['title', 'number', 'type', 'is_use'];
|
|
|
|
|
|
+ const props = ['course', 'type', 'title', 'time', 'number', 'is_use'];
|
|
const mapping = [];
|
|
const mapping = [];
|
|
super({ like_prop, props, mapping });
|
|
super({ like_prop, props, mapping });
|
|
}
|
|
}
|
|
|
|
+ @ApiProperty({ description: '课程id' })
|
|
|
|
+ 'course': string = undefined;
|
|
@ApiProperty({ description: '标题' })
|
|
@ApiProperty({ description: '标题' })
|
|
'title': string = undefined;
|
|
'title': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '类型' })
|
|
|
|
+ 'type': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '发布时间' })
|
|
|
|
+ 'time': string = undefined;
|
|
@ApiProperty({ description: '播放次数' })
|
|
@ApiProperty({ description: '播放次数' })
|
|
'number': number = undefined;
|
|
'number': number = undefined;
|
|
@ApiProperty({ description: '是否使用' })
|
|
@ApiProperty({ description: '是否使用' })
|
|
@@ -61,6 +71,9 @@ export class QVO_video extends FVO_video {
|
|
}
|
|
}
|
|
|
|
|
|
export class CDTO_video {
|
|
export class CDTO_video {
|
|
|
|
+ @ApiProperty({ description: '课程id' })
|
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
|
+ 'course': string = undefined;
|
|
@ApiProperty({ description: '标题' })
|
|
@ApiProperty({ description: '标题' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
'title': string = undefined;
|
|
'title': string = undefined;
|
|
@@ -70,6 +83,9 @@ export class CDTO_video {
|
|
@ApiProperty({ description: '视频来源' })
|
|
@ApiProperty({ description: '视频来源' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
'sourse': string = undefined;
|
|
'sourse': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '发布时间' })
|
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
|
+ 'time': string = undefined;
|
|
@ApiProperty({ description: '类型' })
|
|
@ApiProperty({ description: '类型' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
'type': string = undefined;
|
|
'type': string = undefined;
|
|
@@ -79,15 +95,15 @@ export class CDTO_video {
|
|
@ApiProperty({ description: '视频' })
|
|
@ApiProperty({ description: '视频' })
|
|
@Rule(RuleType['array']().empty(''))
|
|
@Rule(RuleType['array']().empty(''))
|
|
'file': Array<any> = undefined;
|
|
'file': Array<any> = undefined;
|
|
|
|
+ @ApiProperty({ description: '学时' })
|
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
|
+ 'hour': string = undefined;
|
|
@ApiProperty({ description: '播放次数' })
|
|
@ApiProperty({ description: '播放次数' })
|
|
@Rule(RuleType['number']().empty(''))
|
|
@Rule(RuleType['number']().empty(''))
|
|
'number': number = undefined;
|
|
'number': number = undefined;
|
|
@ApiProperty({ description: '内容' })
|
|
@ApiProperty({ description: '内容' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
'content': string = undefined;
|
|
'content': string = undefined;
|
|
- @ApiProperty({ description: '发布时间' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'time': string = undefined;
|
|
|
|
@ApiProperty({ description: '是否使用' })
|
|
@ApiProperty({ description: '是否使用' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
'is_use': string = undefined;
|
|
'is_use': string = undefined;
|