zs пре 1 година
родитељ
комит
f453fca1fb

+ 10 - 4
src/entity/core/video.entity.ts

@@ -13,11 +13,17 @@ export class Video extends BaseModel {
   @prop({ required: false, index: false, zh: '类型' })
   type: string;
   @prop({ required: false, index: false, zh: '封面' })
+  logo: Array<any>;
+  @prop({ required: false, index: false, zh: '视频' })
   file: Array<any>;
   @prop({ required: false, index: true, zh: '播放次数' })
   number: number;
-  @prop({ required: false, index: false, zh: '概述' })
-  summary: string;
-  @prop({ required: false, index: true, zh: '是否公开' })
-  is_show: string;
+  @prop({ required: false, index: false, zh: '内容' })
+  content: string;
+  @prop({ required: false, index: false, zh: '发布时间' })
+  time: string;
+  @prop({ required: false, index: true, zh: '是否使用', default: '0' })
+  is_use: string;
+  @prop({ required: false, index: false, zh: '状态', default: '0' })
+  status: string;
 }

+ 28 - 13
src/interface/core/video.interface.ts

@@ -17,25 +17,31 @@ export class FVO_video {
   @ApiProperty({ description: '标题' })
   'title': string = undefined;
   @ApiProperty({ description: '简介' })
-  'brief ': string = undefined;
+  'brief': string = undefined;
   @ApiProperty({ description: '视频来源' })
   'sourse': string = undefined;
   @ApiProperty({ description: '类型' })
   'type': string = undefined;
   @ApiProperty({ description: '封面' })
+  'logo': Array<any> = undefined;
+  @ApiProperty({ description: '视频' })
   'file': Array<any> = undefined;
   @ApiProperty({ description: '播放次数' })
   'number': number = undefined;
-  @ApiProperty({ description: '概述' })
-  'summary': string = undefined;
-  @ApiProperty({ description: '是否公开' })
-  'is_show': string = undefined;
+  @ApiProperty({ description: '内容' })
+  'content': string = undefined;
+  @ApiProperty({ description: '发布时间' })
+  'time': string = undefined;
+  @ApiProperty({ description: '是否使用' })
+  'is_use': string = undefined;
+  @ApiProperty({ description: '状态' })
+  'status': string = undefined;
 }
 
 export class QDTO_video extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = ['title', 'number', 'is_show'];
+    const props = ['title', 'number', 'is_use'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -43,8 +49,8 @@ export class QDTO_video extends SearchBase {
   'title': string = undefined;
   @ApiProperty({ description: '播放次数' })
   'number': number = undefined;
-  @ApiProperty({ description: '是否公开' })
-  'is_show': string = undefined;
+  @ApiProperty({ description: '是否使用' })
+  'is_use': string = undefined;
 }
 
 export class QVO_video extends FVO_video {
@@ -60,7 +66,7 @@ export class CDTO_video {
   'title': string = undefined;
   @ApiProperty({ description: '简介' })
   @Rule(RuleType['string']().empty(''))
-  'brief ': string = undefined;
+  'brief': string = undefined;
   @ApiProperty({ description: '视频来源' })
   @Rule(RuleType['string']().empty(''))
   'sourse': string = undefined;
@@ -69,16 +75,25 @@ export class CDTO_video {
   'type': string = undefined;
   @ApiProperty({ description: '封面' })
   @Rule(RuleType['array']().empty(''))
+  'logo': Array<any> = undefined;
+  @ApiProperty({ description: '视频' })
+  @Rule(RuleType['array']().empty(''))
   'file': Array<any> = undefined;
   @ApiProperty({ description: '播放次数' })
   @Rule(RuleType['number']().empty(''))
   'number': number = undefined;
-  @ApiProperty({ description: '概述' })
+  @ApiProperty({ description: '内容' })
+  @Rule(RuleType['string']().empty(''))
+  'content': string = undefined;
+  @ApiProperty({ description: '发布时间' })
+  @Rule(RuleType['string']().empty(''))
+  'time': string = undefined;
+  @ApiProperty({ description: '是否使用' })
   @Rule(RuleType['string']().empty(''))
-  'summary': string = undefined;
-  @ApiProperty({ description: '是否公开' })
+  'is_use': string = undefined;
+  @ApiProperty({ description: '状态' })
   @Rule(RuleType['string']().empty(''))
-  'is_show': string = undefined;
+  'status': string = undefined;
 }
 
 export class CVO_video extends FVO_video {

+ 19 - 15
src/interface/system/config.interface.ts

@@ -22,11 +22,14 @@ export class FVO_config {
   'phone': string = undefined;
   @ApiProperty({ description: '首页轮播图' })
   'file': Array<any> = undefined;
+  @ApiProperty({ description: '用户协议' })
+  'agreement': string = undefined;
+  @ApiProperty({ description: '简介' })
+  'brief': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_show': string = undefined;
 }
 
-
 export class QDTO_config extends SearchBase {
   constructor() {
     const like_prop = [];
@@ -36,7 +39,6 @@ export class QDTO_config extends SearchBase {
   }
 }
 
-
 export class QVO_config extends FVO_config {
   constructor(data: object) {
     super(data);
@@ -44,26 +46,30 @@ export class QVO_config extends FVO_config {
   }
 }
 
-
 export class CDTO_config {
   @ApiProperty({ description: '名称' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'name': string = undefined;
   @ApiProperty({ description: '网址logo' })
-@Rule(RuleType['array']().empty(''))
+  @Rule(RuleType['array']().empty(''))
   'logo': Array<any> = undefined;
   @ApiProperty({ description: '联系电话' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'phone': string = undefined;
   @ApiProperty({ description: '首页轮播图' })
-@Rule(RuleType['array']().empty(''))
+  @Rule(RuleType['array']().empty(''))
   'file': Array<any> = undefined;
+  @ApiProperty({ description: '用户协议' })
+  @Rule(RuleType['string']().empty(''))
+  'agreement': string = undefined;
+  @ApiProperty({ description: '简介' })
+  @Rule(RuleType['string']().empty(''))
+  'brief': string = undefined;
   @ApiProperty({ description: '是否公开' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'is_show': string = undefined;
 }
 
-
 export class CVO_config extends FVO_config {
   constructor(data: object) {
     super(data);
@@ -71,17 +77,15 @@ export class CVO_config extends FVO_config {
   }
 }
 
-
 export class UDTO_config extends CDTO_config {
-    @ApiProperty({ description: '数据id' })
-    @Rule(RuleType['string']().empty(''))
-    _id: string = undefined;
+  @ApiProperty({ description: '数据id' })
+  @Rule(RuleType['string']().empty(''))
+  _id: string = undefined;
 }
 
-
 export class UVAO_config extends FVO_config {
   constructor(data: object) {
     super(data);
     dealVO(this, data);
   }
-}
+}