zs 1 年之前
父节点
当前提交
b647eeae31
共有 2 个文件被更改,包括 45 次插入17 次删除
  1. 25 17
      src/entity/estimate.entity.ts
  2. 20 0
      src/interface/estimate.interface.ts

+ 25 - 17
src/entity/estimate.entity.ts

@@ -4,20 +4,28 @@ import { BaseModel } from 'free-midway-component';
   schemaOptions: { collection: 'estimate' },
 })
 export class Estimate extends BaseModel {
-  @prop({"required":false,"index":false,"zh":"微信用户"})
-  openid: string
-  @prop({"required":false,"index":false,"zh":"品牌","remark":""})
-  brand: string
-  @prop({"required":false,"index":false,"zh":"上牌日期"})
-  start: string
-  @prop({"required":false,"index":false,"zh":"所在地区"})
-  place: string
-  @prop({"required":false,"index":false,"zh":"联系人"})
-  contacts: string
-  @prop({"required":false,"index":false,"zh":"联系电话"})
-  tel: string
-  @prop({"required":false,"index":false,"zh":"预估金额","remark":"单位:万元"})
-  estimate: string
-  @prop({"required":false,"index":false,"zh":"状态"})
-  status: string
-}
+  @prop({ required: false, index: false, zh: '微信用户' })
+  openid: string;
+  @prop({ required: false, index: false, zh: '品牌' })
+  brand: string;
+  @prop({ required: false, index: false, zh: '车型' })
+  type: string;
+  @prop({ required: false, index: false, zh: '车系' })
+  bank: string;
+  @prop({ required: false, index: false, zh: '上牌日期' })
+  start: string;
+  @prop({ required: false, index: false, zh: '行驶里程' })
+  course: string;
+  @prop({ required: false, index: false, zh: '上牌城市' })
+  city: string;
+  @prop({ required: false, index: false, zh: '所在地区' })
+  place: string;
+  @prop({ required: false, index: false, zh: '联系人' })
+  contacts: string;
+  @prop({ required: false, index: false, zh: '联系电话' })
+  tel: string;
+  @prop({ required: false, index: false, zh: '预估金额', remark: '单位:万元' })
+  estimate: string;
+  @prop({ required: false, index: false, zh: '状态', default: '0' })
+  status: string;
+}

+ 20 - 0
src/interface/estimate.interface.ts

@@ -18,8 +18,16 @@ export class FVO_estimate {
   'openid': string = undefined;
   @ApiProperty({ description: '品牌' })
   'brand': string = undefined;
+  @ApiProperty({ description: '车型' })
+  'type': string = undefined;
+  @ApiProperty({ description: '车系' })
+  'bank': string = undefined;
   @ApiProperty({ description: '上牌日期' })
   'start': string = undefined;
+  @ApiProperty({ description: '行驶里程' })
+  'course': string = undefined;
+  @ApiProperty({ description: '上牌城市' })
+  'city': string = undefined;
   @ApiProperty({ description: '所在地区' })
   'place': string = undefined;
   @ApiProperty({ description: '联系人' })
@@ -55,9 +63,21 @@ export class CDTO_estimate {
   @ApiProperty({ description: '品牌' })
   @Rule(RuleType['string']().empty(''))
   'brand': string = undefined;
+  @ApiProperty({ description: '车型' })
+  @Rule(RuleType['string']().empty(''))
+  'type': string = undefined;
+  @ApiProperty({ description: '车系' })
+  @Rule(RuleType['string']().empty(''))
+  'bank': string = undefined;
   @ApiProperty({ description: '上牌日期' })
   @Rule(RuleType['string']().empty(''))
   'start': string = undefined;
+  @ApiProperty({ description: '行驶里程' })
+  @Rule(RuleType['string']().empty(''))
+  'course': string = undefined;
+  @ApiProperty({ description: '上牌城市' })
+  @Rule(RuleType['string']().empty(''))
+  'city': string = undefined;
   @ApiProperty({ description: '所在地区' })
   @Rule(RuleType['string']().empty(''))
   'place': string = undefined;