zs 1 éve
szülő
commit
46cfb94531

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

@@ -20,6 +20,8 @@ export class Project extends BaseModel {
   field: string;
   @prop({ required: false, index: true, zh: '合作类型' })
   cooperate: string;
+  @prop({ required: false, index: true, zh: '项目地区' })
+  area: Array<any>;
   @prop({ required: false, index: false, zh: '简介' })
   brief: string;
   @prop({ required: false, index: false, zh: '是否公开' })

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

@@ -30,6 +30,8 @@ export class FVO_project {
   'field': string = undefined;
   @ApiProperty({ description: '合作类型' })
   'cooperate': string = undefined;
+  @ApiProperty({ description: '需求地区' })
+  'area': Array<any> = undefined;
   @ApiProperty({ description: '简介' })
   'brief': string = undefined;
   @ApiProperty({ description: '是否公开' })
@@ -59,6 +61,7 @@ export class QDTO_project extends SearchBase {
   'skill': string = undefined;
   @ApiProperty({ description: '领域' })
   'field': string = undefined;
+
   @ApiProperty({ description: '合作类型' })
   'cooperate': string = undefined;
   @ApiProperty({ description: '状态' })
@@ -96,6 +99,9 @@ export class CDTO_project {
   @ApiProperty({ description: '领域' })
   @Rule(RuleType['string']().empty(''))
   'field': string = undefined;
+  @ApiProperty({ description: '成果地区' })
+  @Rule(RuleType['array']().empty(''))
+  'area': Array<any> = undefined;
   @ApiProperty({ description: '合作类型' })
   @Rule(RuleType['string']().empty(''))
   'cooperate': string = undefined;