zs hai 1 ano
pai
achega
3f270aff60

+ 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;