zs hai 1 ano
pai
achega
ae14cc3db5

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

@@ -10,6 +10,8 @@ export class Match extends BaseModel {
   name: string;
   @prop({ required: false, index: true, zh: '类型' })
   type: string;
+  @prop({ required: false, index: true, zh: '行业' })
+  industry: string;
   @prop({ required: false, index: true, zh: '类别' })
   form: string;
   @prop({ required: false, index: false, zh: '有效期' })

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

@@ -20,6 +20,8 @@ export class FVO_match {
   'name': string = undefined;
   @ApiProperty({ description: '类型' })
   'type': string = undefined;
+  @ApiProperty({ description: '行业' })
+  'industry': string = undefined;
   @ApiProperty({ description: '类别' })
   'form': string = undefined;
   @ApiProperty({ description: '有效期' })
@@ -43,7 +45,7 @@ export class FVO_match {
 export class QDTO_match extends SearchBase {
   constructor() {
     const like_prop = ['name'];
-    const props = ['user', 'name', 'type', 'status','form', 'match_status', 'is_use'];
+    const props = ['user', 'industry', 'name', 'type', 'status', 'form', 'match_status', 'is_use'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -53,6 +55,8 @@ export class QDTO_match extends SearchBase {
   'name': string = undefined;
   @ApiProperty({ description: '类型' })
   'type': string = undefined;
+  @ApiProperty({ description: '行业' })
+  'industry': string = undefined;
   @ApiProperty({ description: '类别' })
   'form': string = undefined;
   @ApiProperty({ description: '赛事状态' })
@@ -80,6 +84,9 @@ export class CDTO_match {
   @ApiProperty({ description: '类型' })
   @Rule(RuleType['string']().empty(''))
   'type': string = undefined;
+  @ApiProperty({ description: '行业' })
+  @Rule(RuleType['string']().empty(''))
+  'industry': string = undefined;
   @ApiProperty({ description: '类别' })
   @Rule(RuleType['string']().empty(''))
   'form': string = undefined;