zs 1 năm trước cách đây
mục cha
commit
cb1e813090
2 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 2 0
      src/entity/config.entity.ts
  2. 5 0
      src/interface/config.interface.ts

+ 2 - 0
src/entity/config.entity.ts

@@ -14,6 +14,8 @@ export class Config extends BaseModel {
   contacts: string;
   @prop({ required: false, index: false, zh: '联系电话' })
   tel: string;
+  @prop({ required: false, index: false, zh: '用户协议' })
+  agreement: string;
   @prop({ required: false, index: false, zh: '底部文案' })
   bottom_title: string;
 }

+ 5 - 0
src/interface/config.interface.ts

@@ -24,6 +24,8 @@ export class FVO_config {
   'contacts': string = undefined;
   @ApiProperty({ description: '联系电话' })
   'tel': string = undefined;
+  @ApiProperty({ description: '用户协议' })
+  'agreement': string = undefined;
   @ApiProperty({ description: '底部文案' })
   'bottom_title': string = undefined;
 }
@@ -60,6 +62,9 @@ export class CDTO_config {
   @ApiProperty({ description: '联系电话' })
   @Rule(RuleType['string']().empty(''))
   'tel': string = undefined;
+  @ApiProperty({ description: '用户协议' })
+  @Rule(RuleType['string']().empty(''))
+  'agreement': string = undefined;
   @ApiProperty({ description: '底部文案' })
   @Rule(RuleType['string']().empty(''))
   'bottom_title': string = undefined;