ソースを参照

公司添加字段

zs 1 年間 前
コミット
5062238a65

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

@@ -40,6 +40,8 @@ export class Company extends BaseModel {
   brief: string;
   @prop({ required: false, index: true, zh: '是否公开' })
   is_show: string;
+  @prop({ required: false, index: true, zh: '公司状态', default: '0' })
+  companyStatus: string;
   @prop({ required: false, index: true, zh: '状态', default: '0' })
   status: string;
 }

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

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