wuyi 1 mēnesi atpakaļ
vecāks
revīzija
0903c8a53a

+ 15 - 0
src/dto/goods-info.dto.ts

@@ -25,6 +25,11 @@ export class CreateGoodsInfoDto {
   @IsEmail()
   @MaxLength(100)
   contactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 
 export class UpdateGoodsInfoDto {
@@ -58,6 +63,11 @@ export class UpdateGoodsInfoDto {
   @IsEmail()
   @MaxLength(100)
   contactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 
 export class QueryGoodsInfoDto {
@@ -120,5 +130,10 @@ export class AdminUpdateGoodsInfoDto {
   @IsEmail()
   @MaxLength(100)
   contactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 

+ 15 - 0
src/dto/person-info.dto.ts

@@ -37,6 +37,11 @@ export class CreatePersonInfoDto {
   @IsEmail()
   @MaxLength(100)
   emergencyContactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 
 export class UpdatePersonInfoDto {
@@ -83,6 +88,11 @@ export class UpdatePersonInfoDto {
   @IsEmail()
   @MaxLength(100)
   emergencyContactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 
 export class QueryPersonInfoDto {
@@ -158,5 +168,10 @@ export class AdminUpdatePersonInfoDto {
   @IsEmail()
   @MaxLength(100)
   emergencyContactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 

+ 15 - 0
src/dto/pet-info.dto.ts

@@ -25,6 +25,11 @@ export class CreatePetInfoDto {
   @IsEmail()
   @MaxLength(100)
   contactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 
 export class UpdatePetInfoDto {
@@ -58,6 +63,11 @@ export class UpdatePetInfoDto {
   @IsEmail()
   @MaxLength(100)
   contactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 
 export class QueryPetInfoDto {
@@ -120,5 +130,10 @@ export class AdminUpdatePetInfoDto {
   @IsEmail()
   @MaxLength(100)
   contactEmail?: string
+
+  @IsOptional()
+  @IsString()
+  @MaxLength(500)
+  location?: string
 }
 

+ 3 - 0
src/entities/goods-info.entity.ts

@@ -35,6 +35,9 @@ export class GoodsInfo {
   @Column({ length: 500, nullable: true })
   remark: string
 
+  @Column({ length: 500, nullable: true })
+  location: string
+
   @CreateDateColumn()
   createdAt: Date
 

+ 3 - 0
src/entities/person-info.entity.ts

@@ -53,6 +53,9 @@ export class PersonInfo {
   @Column({ length: 500, nullable: true })
   remark: string
 
+  @Column({ length: 500, nullable: true })
+  location: string
+
   @CreateDateColumn()
   createdAt: Date
 

+ 3 - 0
src/entities/pet-info.entity.ts

@@ -35,6 +35,9 @@ export class PetInfo {
   @Column({ length: 500, nullable: true })
   remark: string
 
+  @Column({ length: 500, nullable: true })
+  location: string
+
   @CreateDateColumn()
   createdAt: Date