zs 1 gadu atpakaļ
vecāks
revīzija
58187f282e

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

@@ -8,6 +8,8 @@ export class Expert extends BaseModel {
   user: string;
   @prop({ required: false, index: true, zh: '专家姓名' })
   name: string;
+  @prop({ required: false, index: false, zh: '头像' })
+  icon: Array<any>;
   @prop({ required: false, index: true, zh: '性别' })
   gender: string;
   @prop({ required: false, index: false, zh: '出生年月' })

+ 8 - 1
src/interface/users/company.interface.ts

@@ -48,6 +48,8 @@ export class FVO_company {
   'brief': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_show': string = undefined;
+  @ApiProperty({ description: '公司状态' })
+  'companyStatus': string = undefined;
   @ApiProperty({ description: '状态' })
   'status': string = undefined;
 }
@@ -55,7 +57,7 @@ export class FVO_company {
 export class QDTO_company extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = ['user', 'name', 'tags', 'phone', 'type', 'person', 'create_time', 'is_show', 'status'];
+    const props = ['user', 'name', 'tags', 'phone', 'type', 'person', 'create_time', 'companyStatus','is_show', 'status'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -75,6 +77,8 @@ export class QDTO_company extends SearchBase {
   'create_time': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_show': string = undefined;
+  @ApiProperty({ description: '公司状态' })
+  'companyStatus': string = undefined;
   @ApiProperty({ description: '状态' })
   'status': string = undefined;
 }
@@ -138,6 +142,9 @@ export class CDTO_company {
   @ApiProperty({ description: '是否公开' })
   @Rule(RuleType['string']().empty(''))
   'is_show': string = undefined;
+  @ApiProperty({ description: '公司状态' })
+  @Rule(RuleType['string']().empty(''))
+  'companyStatus': string = undefined;
   @ApiProperty({ description: '状态' })
   @Rule(RuleType['string']().empty(''))
   'status': string = undefined;

+ 1 - 8
src/interface/users/competition.interface.ts

@@ -28,8 +28,6 @@ export class FVO_competition {
   'address': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_show': string = undefined;
-  @ApiProperty({ description: '公司状态' })
-  'companyStatus': string = undefined;
   @ApiProperty({ description: '状态' })
   'status': string = undefined;
 }
@@ -37,7 +35,7 @@ export class FVO_competition {
 export class QDTO_competition extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = ['user', 'name', 'person', 'person_phone', 'is_show', 'companyStatus', 'status'];
+    const props = ['user', 'name', 'person', 'person_phone', 'is_show', 'status'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -53,8 +51,6 @@ export class QDTO_competition extends SearchBase {
   'is_show': string = undefined;
   @ApiProperty({ description: '状态' })
   'status': string = undefined;
-  @ApiProperty({ description: '公司状态' })
-  'companyStatus': string = undefined;
 }
 
 export class QVO_competition extends FVO_competition {
@@ -86,9 +82,6 @@ export class CDTO_competition {
   @ApiProperty({ description: '是否公开' })
   @Rule(RuleType['string']().empty(''))
   'is_show': string = undefined;
-  @ApiProperty({ description: '公司状态' })
-  @Rule(RuleType['string']().empty(''))
-  'companyStatus': string = undefined;
   @ApiProperty({ description: '状态' })
   @Rule(RuleType['string']().empty(''))
   'status': string = undefined;

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

@@ -18,6 +18,8 @@ export class FVO_expert {
   'user': string = undefined;
   @ApiProperty({ description: '专家姓名' })
   'name': string = undefined;
+  @ApiProperty({ description: '头像' })
+  'icon': Array<any> = undefined;
   @ApiProperty({ description: '性别' })
   'gender': string = undefined;
   @ApiProperty({ description: '出生年月' })
@@ -91,6 +93,9 @@ export class CDTO_expert {
   @ApiProperty({ description: '专家姓名' })
   @Rule(RuleType['string']().empty(''))
   'name': string = undefined;
+  @ApiProperty({ description: '头像' })
+  @Rule(RuleType['array']().empty(''))
+  'icon': Array<any> = undefined;
   @ApiProperty({ description: '性别' })
   @Rule(RuleType['string']().empty(''))
   'gender': string = undefined;