浏览代码

赛事时间修改

zs 10 月之前
父节点
当前提交
5e6fbf279f
共有 2 个文件被更改,包括 18 次插入7 次删除
  1. 4 2
      src/entity/platform/match.entity.ts
  2. 14 5
      src/interface/platform/match.interface.ts

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

@@ -17,8 +17,10 @@ export class Match extends BaseModel {
   industry: string;
   @Column({ type: 'character varying', nullable: true, comment: '类别' })
   form: string;
-  @Column({ type: 'jsonb', nullable: true, comment: '有效期' })
-  time: Array<any>;
+  @Column({ type: 'character varying', nullable: true, comment: '开始时间' })
+  start_time: string;
+  @Column({ type: 'character varying', nullable: true, comment: '结束时间' })
+  end_time: string;
   @Column({ type: 'character varying', nullable: true, comment: '奖金' })
   money: string;
   @Column({ type: 'jsonb', nullable: true, comment: '赛事规则', default: {} })

+ 14 - 5
src/interface/platform/match.interface.ts

@@ -22,8 +22,10 @@ export class FVO_match {
   'industry': string = undefined;
   @ApiProperty({ description: '类别' })
   'form': string = undefined;
-  @ApiProperty({ description: '有效期' })
-  'time': Array<any> = undefined;
+  @ApiProperty({ description: '开始时间' })
+  'start_time': string = undefined;
+  @ApiProperty({ description: '结束时间' })
+  'end_time': string = undefined;
   @ApiProperty({ description: '奖金' })
   'money': string = undefined;
   @ApiProperty({ description: '赛事规则' })
@@ -49,6 +51,10 @@ export class QDTO_match extends SearchBase {
   'name': string = undefined;
   @ApiProperty({ description: '类型' })
   'type': string = undefined;
+  @ApiProperty({ description: '开始时间' })
+  'start_time': string = undefined;
+  @ApiProperty({ description: '结束时间' })
+  'end_time': string = undefined;
   @ApiProperty({ description: '所属产业' })
   'industry': string = undefined;
   @ApiProperty({ description: '类别' })
@@ -90,9 +96,12 @@ export class CDTO_match {
   @ApiProperty({ description: '类别' })
   @Rule(RuleType['string']().empty(''))
   'form': string = undefined;
-  @ApiProperty({ description: '有效期' })
-  @Rule(RuleType['array']().empty(''))
-  'time': Array<any> = undefined;
+  @ApiProperty({ description: '开始时间' })
+  @Rule(RuleType['string']().empty(''))
+  'start_time': string = undefined;
+  @ApiProperty({ description: '结束时间' })
+  @Rule(RuleType['string']().empty(''))
+  'end_time': string = undefined;
   @ApiProperty({ description: '奖金' })
   @Rule(RuleType['string']().empty(''))
   'money': string = undefined;