zs 1 year ago
parent
commit
9c5b6d13da

+ 2 - 0
src/entity/platform/news.entity.ts

@@ -6,6 +6,8 @@ import { BaseModel } from 'free-midway-component';
 export class News extends BaseModel {
   @prop({ required: false, index: true, zh: '标题' })
   title: string;
+  @prop({ required: false, index: true, zh: '封面' })
+  logo: Array<any>;
   @prop({ required: false, index: false, zh: '发布人' })
   person: string;
   @prop({ required: false, index: false, zh: '发布时间' })

+ 2 - 0
src/entity/platform/sign.entity.ts

@@ -20,6 +20,8 @@ export class Sign extends BaseModel {
   communication: string;
   @prop({ required: false, index: false, zh: '电子邮箱' })
   email: string;
+  @prop({ required: false, index: false, zh: '报名时间' })
+  time: string;
   @prop({ required: false, index: false, zh: '备注' })
   remark: string;
 }

+ 5 - 0
src/interface/platform/news.interface.ts

@@ -16,6 +16,8 @@ export class FVO_news {
   _id: string = undefined;
   @ApiProperty({ description: '标题' })
   'title': string = undefined;
+  @ApiProperty({ description: '封面' })
+  'logo': Array<any> = undefined;
   @ApiProperty({ description: '发布人' })
   'person': string = undefined;
   @ApiProperty({ description: '发布时间' })
@@ -64,6 +66,9 @@ export class CDTO_news {
   @ApiProperty({ description: '标题' })
   @Rule(RuleType['string']().empty(''))
   'title': string = undefined;
+  @ApiProperty({ description: '封面' })
+  @Rule(RuleType['array']().empty(''))
+  'logo': Array<any> = undefined;
   @ApiProperty({ description: '发布人' })
   @Rule(RuleType['string']().empty(''))
   'person': string = undefined;

+ 8 - 1
src/interface/platform/sign.interface.ts

@@ -30,6 +30,8 @@ export class FVO_sign {
   'communication': string = undefined;
   @ApiProperty({ description: '电子邮箱' })
   'email': string = undefined;
+  @ApiProperty({ description: '报名时间' })
+  'time': string = undefined;
   @ApiProperty({ description: '备注' })
   'remark': string = undefined;
 }
@@ -37,7 +39,7 @@ export class FVO_sign {
 export class QDTO_sign extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = ['user', 'match', 'name'];
+    const props = ['user', 'match', 'time', 'name'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -47,6 +49,8 @@ export class QDTO_sign extends SearchBase {
   'match': string = undefined;
   @ApiProperty({ description: '姓名' })
   'name': string = undefined;
+  @ApiProperty({ description: '报名时间' })
+  'time': string = undefined;
 }
 
 export class QVO_sign extends FVO_sign {
@@ -81,6 +85,9 @@ export class CDTO_sign {
   @ApiProperty({ description: '电子邮箱' })
   @Rule(RuleType['string']().empty(''))
   'email': string = undefined;
+  @ApiProperty({ description: '报名时间' })
+  @Rule(RuleType['string']().empty(''))
+  'time': string = undefined;
   @ApiProperty({ description: '备注' })
   @Rule(RuleType['string']().empty(''))
   'remark': string = undefined;