浏览代码

添加地址

zs 1 年之前
父节点
当前提交
3f270aff60
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 2 0
      src/entity/users/competition.entity.ts
  2. 5 0
      src/interface/users/competition.interface.ts

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

@@ -14,6 +14,8 @@ export class Competition extends BaseModel {
   person_phone: string;
   @prop({ required: false, index: false, zh: '简介' })
   brief: string;
+  @prop({ required: false, index: false, zh: '地址' })
+  address: string;
   @prop({ required: false, index: true, zh: '是否公开' })
   is_show: string;
   @prop({ required: false, index: true, zh: '状态' })

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

@@ -24,6 +24,8 @@ export class FVO_competition {
   'person_phone': string = undefined;
   @ApiProperty({ description: '简介' })
   'brief': string = undefined;
+  @ApiProperty({ description: '地址' })
+  'address': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_show': string = undefined;
   @ApiProperty({ description: '状态' })
@@ -74,6 +76,9 @@ export class CDTO_competition {
   @ApiProperty({ description: '简介' })
   @Rule(RuleType['string']().empty(''))
   'brief': string = undefined;
+  @ApiProperty({ description: '地址' })
+  @Rule(RuleType['string']().empty(''))
+  'address': string = undefined;
   @ApiProperty({ description: '是否公开' })
   @Rule(RuleType['string']().empty(''))
   'is_show': string = undefined;