Browse Source

修改数据类型

zs 7 months ago
parent
commit
8d8f8c5a12

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

@@ -43,8 +43,8 @@ export class Expert extends BaseModel {
   status: string;
   @Column({ type: 'character varying', nullable: true, comment: '产业类型' })
   industry_type: string;
-  @Column({ type: 'character varying', nullable: true, comment: '所属产业' })
-  industry: string;
+  @Column({ type: 'jsonb', nullable: true, comment: '所属产业' })
+  industry: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '工作单位类型' })
   work_type: string;
 }

+ 4 - 3
src/interface/system/user.interface.ts

@@ -14,7 +14,7 @@ export class FVO_user {
   @ApiProperty({ description: '密码' })
   'password': string = undefined;
   @ApiProperty({ description: '所属产业' })
-  'industry': string = undefined;
+  'industry': Array<any> = undefined;
   @ApiProperty({ description: '昵称' })
   'nick_name': string = undefined;
   @ApiProperty({ description: '性别' })
@@ -39,7 +39,7 @@ export class QDTO_user {
   @ApiProperty({ description: '昵称' })
   'nick_name': string = undefined;
   @ApiProperty({ description: '所属产业' })
-  'industry': string = undefined;
+  'industry': Array<any> = undefined;
   @ApiProperty({ description: '手机号' })
   'phone': string = undefined;
   @ApiProperty({ description: '电子邮箱' })
@@ -66,7 +66,8 @@ export class CDTO_user {
   @Rule(RuleType['string']().empty(''))
   'password': string = undefined;
   @ApiProperty({ description: '所属产业' })
-  'industry': string = undefined;
+  @Rule(RuleType['array']().empty(''))
+  'industry': Array<any> = undefined;
   @ApiProperty({ description: '昵称' })
   @Rule(RuleType['string']().empty(''))
   'nick_name': string = undefined;

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

@@ -36,7 +36,7 @@ export class FVO_expert {
   @ApiProperty({ description: '工作类型' })
   'work_type': string = undefined;
   @ApiProperty({ description: '所属产业' })
-  'industry': string = undefined;
+  'industry': Array<any> = undefined;
   @ApiProperty({ description: '产业类型' })
   'industry_type': string = undefined;
   @ApiProperty({ description: '职称' })
@@ -75,7 +75,7 @@ export class QDTO_expert {
   @ApiProperty({ description: '工作类型' })
   'work_type': string = undefined;
   @ApiProperty({ description: '所属产业' })
-  'industry': string = undefined;
+  'industry': Array<any> = undefined;
   @ApiProperty({ description: '产业类型' })
   'industry_type': string = undefined;
   @ApiProperty({ description: '是否公开' })
@@ -135,8 +135,8 @@ export class CDTO_expert {
   @Rule(RuleType['string']().empty(''))
   'industry_type': string = undefined;
   @ApiProperty({ description: '所属产业' })
-  @Rule(RuleType['string']().empty(''))
-  'industry': string = undefined;
+  @Rule(RuleType['array']().empty(''))
+  'industry': Array<any> = undefined;
   @ApiProperty({ description: '工作类型' })
   @Rule(RuleType['string']().empty(''))
   'work_type': string = undefined;