Procházet zdrojové kódy

修改赛事规模视频

zs před 8 měsíci
rodič
revize
718e1f413f

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

@@ -13,6 +13,8 @@ export class Match extends BaseModel {
   type: string;
   @Column({ type: 'character varying', nullable: true, comment: '赛事类型' })
   match_type: string;
+  @Column({ type: 'character varying', nullable: true, comment: '赛事规模' })
+  scale: string;
   @Column({ type: 'character varying', nullable: true, comment: '路由' })
   href: string;
   @Column({ type: 'character varying', nullable: true, comment: '组织单位' })
@@ -35,6 +37,8 @@ export class Match extends BaseModel {
   brief: string;
   @Column({ type: 'jsonb', nullable: true, comment: '封面', default: [] })
   file: Array<any>;
+  @Column({ type: 'jsonb', nullable: true, comment: '视频', default: [] })
+  video: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '赛事状态', default: '0' })
   match_status: string;
   @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })

+ 12 - 0
src/interface/platform/match.interface.ts

@@ -18,6 +18,8 @@ export class FVO_match {
   'type': string = undefined;
   @ApiProperty({ description: '赛事类型' })
   'match_type': string = undefined;
+  @ApiProperty({ description: '赛事规模' })
+  'scale': string = undefined;
   @ApiProperty({ description: '路由' })
   'href': string = undefined;
   @ApiProperty({ description: '组织单位' })
@@ -40,6 +42,8 @@ export class FVO_match {
   'brief': string = undefined;
   @ApiProperty({ description: '封面' })
   'file': Array<any> = undefined;
+  @ApiProperty({ description: '视频' })
+  'video': Array<any> = undefined;
   @ApiProperty({ description: '赛事状态' })
   'match_status': string = undefined;
   @ApiProperty({ description: '是否公开' })
@@ -63,6 +67,8 @@ export class QDTO_match extends SearchBase {
   'type': string = undefined;
   @ApiProperty({ description: '赛事类型' })
   'match_type': string = undefined;
+  @ApiProperty({ description: '赛事规模' })
+  'scale': string = undefined;
   @ApiProperty({ description: '路由' })
   'href': string = undefined;
   @ApiProperty({ description: '开始时间' })
@@ -108,6 +114,9 @@ export class CDTO_match {
   @ApiProperty({ description: '赛事类型' })
   @Rule(RuleType['string']().empty(''))
   'match_type': string = undefined;
+  @ApiProperty({ description: '赛事规模' })
+  @Rule(RuleType['string']().empty(''))
+  'scale': string = undefined;
   @ApiProperty({ description: '路由' })
   @Rule(RuleType['string']().empty(''))
   'href': string = undefined;
@@ -141,6 +150,9 @@ export class CDTO_match {
   @ApiProperty({ description: '封面' })
   @Rule(RuleType['array']().empty(''))
   'file': Array<any> = undefined;
+  @ApiProperty({ description: '视频' })
+  @Rule(RuleType['array']().empty(''))
+  'video': Array<any> = undefined;
   @ApiProperty({ description: '赛事状态' })
   @Rule(RuleType['string']().empty(''))
   'match_status': string = undefined;