Browse Source

修改比赛字段

zs 10 months ago
parent
commit
43e00d8d30

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

@@ -11,6 +11,10 @@ export class Match extends BaseModel {
   name: string;
   @Column({ type: 'character varying', nullable: true, comment: '类型' })
   type: string;
+  @Column({ type: 'character varying', nullable: true, comment: '赛事类型' })
+  match_type: string;
+  @Column({ type: 'character varying', nullable: true, comment: '路由' })
+  href: string;
   @Column({ type: 'character varying', nullable: true, comment: '组织单位' })
   work: string;
   @Column({ type: 'character varying', nullable: true, comment: '地点' })

+ 0 - 1
src/entity/users/company.entity.ts

@@ -46,7 +46,6 @@ export class Company extends BaseModel {
   companyStatus: string;
   @Column({ type: 'character varying', default: '0', comment: '状态' })
   status: string;
-
   @Column({ type: 'character varying', nullable: true, comment: '产品' })
   products: string;
 }

+ 2 - 1
src/interface/platform/demand.interface.ts

@@ -1,6 +1,7 @@
 import { Rule, RuleType } from '@midwayjs/validate';
 import { ApiProperty } from '@midwayjs/swagger';
 import { dealVO } from '../../frame/VOBase';
+import { SearchBase } from '../../frame/SearchBase';
 export class FVO_demand {
   constructor(data: object) {
     dealVO(this, data);
@@ -57,7 +58,7 @@ export class FVO_demand {
   'is_use': string = undefined;
 }
 
-export class QDTO_demand {
+export class QDTO_demand extends SearchBase {
   @ApiProperty({ description: '用户id' })
   'user': number = undefined;
   @ApiProperty({ description: '标签' })

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

@@ -16,6 +16,10 @@ export class FVO_match {
   'name': string = undefined;
   @ApiProperty({ description: '类型' })
   'type': string = undefined;
+  @ApiProperty({ description: '赛事类型' })
+  'match_type': string = undefined;
+  @ApiProperty({ description: '路由' })
+  'href': string = undefined;
   @ApiProperty({ description: '组织单位' })
   'work': string = undefined;
   @ApiProperty({ description: '所属产业' })
@@ -53,6 +57,10 @@ export class QDTO_match extends SearchBase {
   'name': string = undefined;
   @ApiProperty({ description: '类型' })
   'type': string = undefined;
+  @ApiProperty({ description: '赛事类型' })
+  'match_type': string = undefined;
+  @ApiProperty({ description: '路由' })
+  'href': string = undefined;
   @ApiProperty({ description: '开始时间' })
   'start_time': string = undefined;
   @ApiProperty({ description: '结束时间' })
@@ -89,6 +97,12 @@ export class CDTO_match {
   @ApiProperty({ description: '类型' })
   @Rule(RuleType['string']().empty(''))
   'type': string = undefined;
+  @ApiProperty({ description: '赛事类型' })
+  @Rule(RuleType['string']().empty(''))
+  'match_type': string = undefined;
+  @ApiProperty({ description: '路由' })
+  @Rule(RuleType['string']().empty(''))
+  'href': string = undefined;
   @ApiProperty({ description: '组织单位' })
   @Rule(RuleType['string']().empty(''))
   'work': string = undefined;