Sfoglia il codice sorgente

修改专家信息

zs 1 anno fa
parent
commit
0b744fd277

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

@@ -16,8 +16,8 @@ export class Expert extends BaseModel {
   phone: string;
   @prop({ required: false, index: true, zh: '所属领域' })
   field: string;
-  @prop({ required: false, index: true, zh: '单位类型' })
-  type: string;
+  @prop({ required: false, index: true, zh: '研究方向' })
+  direction: string;
   @prop({ required: false, index: true, zh: '学历' })
   education: string;
   @prop({ required: false, index: true, zh: '职称' })

+ 7 - 7
src/interface/users/expert.interface.ts

@@ -26,8 +26,8 @@ export class FVO_expert {
   'phone': string = undefined;
   @ApiProperty({ description: '所属领域' })
   'field': string = undefined;
-  @ApiProperty({ description: '单位类型' })
-  'type': string = undefined;
+  @ApiProperty({ description: '研究方向' })
+  'direction': string = undefined;
   @ApiProperty({ description: '学历' })
   'education': string = undefined;
   @ApiProperty({ description: '职称' })
@@ -45,7 +45,7 @@ export class FVO_expert {
 export class QDTO_expert extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = ['user', 'name', 'gender', 'phone', 'field', 'type', 'education', 'title', 'area', 'is_show', 'status'];
+    const props = ['user', 'name', 'gender', 'phone', 'field', 'direction', 'education', 'title', 'area', 'is_show', 'status'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -59,8 +59,8 @@ export class QDTO_expert extends SearchBase {
   'phone': string = undefined;
   @ApiProperty({ description: '所属领域' })
   'field': string = undefined;
-  @ApiProperty({ description: '单位类型' })
-  'type': string = undefined;
+  @ApiProperty({ description: '研究方向' })
+  'direction': string = undefined;
   @ApiProperty({ description: '学历' })
   'education': string = undefined;
   @ApiProperty({ description: '职称' })
@@ -99,9 +99,9 @@ export class CDTO_expert {
   @ApiProperty({ description: '所属领域' })
   @Rule(RuleType['string']().empty(''))
   'field': string = undefined;
-  @ApiProperty({ description: '单位类型' })
+  @ApiProperty({ description: '研究方向' })
   @Rule(RuleType['string']().empty(''))
-  'type': string = undefined;
+  'direction': string = undefined;
   @ApiProperty({ description: '学历' })
   @Rule(RuleType['string']().empty(''))
   'education': string = undefined;