Browse Source

修改问题

zs 9 months ago
parent
commit
8ea91bf733

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

@@ -35,6 +35,8 @@ export class Project extends BaseModel {
   source: string;
   @Column({ type: 'character varying', nullable: true, comment: '产业分类' })
   industry: string;
+  @Column({ type: 'jsonb', nullable: true, comment: '附件', default: [] })
+  file: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
   is_use: string;
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })

+ 5 - 0
src/interface/platform/project.interface.ts

@@ -40,6 +40,8 @@ export class FVO_project {
   'industry': string = undefined;
   @ApiProperty({ description: '简介' })
   'brief': string = undefined;
+  @ApiProperty({ description: '附件' })
+  'file': Array<any> = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_use': string = undefined;
   @ApiProperty({ description: '状态' })
@@ -137,6 +139,9 @@ export class CDTO_project {
   @ApiProperty({ description: '所属产业' })
   @Rule(RuleType['string']().empty(''))
   'industry': string = undefined;
+  @ApiProperty({ description: '附件' })
+  @Rule(RuleType['array']().empty(''))
+  'file': Array<any> = undefined;
   @ApiProperty({ description: '是否公开' })
   @Rule(RuleType['string']().empty(''))
   'is_use': string = undefined;