浏览代码

修改问题

zs 9 月之前
父节点
当前提交
8ea91bf733
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 2 0
      src/entity/platform/project.entity.ts
  2. 5 0
      src/interface/platform/project.interface.ts

+ 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;