zs 1 éve
szülő
commit
5d47e57056

+ 2 - 0
src/entity/users/expert.entity.ts

@@ -24,6 +24,8 @@ export class Expert extends BaseModel {
   field: string;
   @prop({ required: false, index: true, zh: '研究方向' })
   direction: string;
+  @prop({ required: false, index: true, zh: '工作单位' })
+  work: string;
   @prop({ required: false, index: true, zh: '学历' })
   education: string;
   @prop({ required: false, index: true, zh: '职称' })

+ 5 - 0
src/interface/users/expert.interface.ts

@@ -36,6 +36,8 @@ export class FVO_expert {
   'direction': string = undefined;
   @ApiProperty({ description: '学历' })
   'education': string = undefined;
+  @ApiProperty({ description: '工作单位' })
+  'work': string = undefined;
   @ApiProperty({ description: '职称' })
   'title': string = undefined;
   @ApiProperty({ description: '简介' })
@@ -120,6 +122,9 @@ export class CDTO_expert {
   @ApiProperty({ description: '学历' })
   @Rule(RuleType['string']().empty(''))
   'education': string = undefined;
+  @ApiProperty({ description: '工作单位' })
+  @Rule(RuleType['string']().empty(''))
+  'work': string = undefined;
   @ApiProperty({ description: '职称' })
   @Rule(RuleType['string']().empty(''))
   'title': string = undefined;