Browse Source

添加赛事字段

zs 1 year ago
parent
commit
88bc199df0
2 changed files with 10 additions and 1 deletions
  1. 2 0
      src/entity/platform/match.entity.ts
  2. 8 1
      src/interface/platform/match.interface.ts

+ 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: '类别' })
+  form: string;
   @prop({ required: false, index: false, zh: '有效期' })
   time: Array<any>;
   @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: '类别' })
+  'form': string = undefined;
   @ApiProperty({ description: '有效期' })
   'time': Array<any> = undefined;
   @ApiProperty({ description: '奖金' })
@@ -41,7 +43,7 @@ export class FVO_match {
 export class QDTO_match extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = ['user', 'name', 'type', 'status', 'match_status', 'is_use'];
+    const props = ['user', 'name', 'type', 'status','form', 'match_status', 'is_use'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -51,6 +53,8 @@ export class QDTO_match extends SearchBase {
   'name': string = undefined;
   @ApiProperty({ description: '类型' })
   'type': string = undefined;
+  @ApiProperty({ description: '类别' })
+  'form': string = undefined;
   @ApiProperty({ description: '赛事状态' })
   'match_status': string = undefined;
   @ApiProperty({ description: '是否公开' })
@@ -76,6 +80,9 @@ export class CDTO_match {
   @ApiProperty({ description: '类型' })
   @Rule(RuleType['string']().empty(''))
   'type': string = undefined;
+  @ApiProperty({ description: '类别' })
+  @Rule(RuleType['string']().empty(''))
+  'form': string = undefined;
   @ApiProperty({ description: '有效期' })
   @Rule(RuleType['array']().empty(''))
   'time': Array<any> = undefined;