diff --git a/apps/api/src/module/locker/controller/dto/object/locker.object.ts b/apps/api/src/module/locker/controller/dto/object/locker.object.ts index d879b8c..2b6d7d8 100644 --- a/apps/api/src/module/locker/controller/dto/object/locker.object.ts +++ b/apps/api/src/module/locker/controller/dto/object/locker.object.ts @@ -12,6 +12,15 @@ export class LockerObject implements Locker { @MaxLength(32) name!: string; + @Field(() => Number, { nullable: false }) + lat!: number; + + @Field(() => Number, { nullable: false }) + lng!: number; + + @Field(() => String, { nullable: false }) + location!: string; + @Field(() => Date, { nullable: false }) createdAt!: Date; } diff --git a/apps/api/src/module/locker/domain/locker.model.ts b/apps/api/src/module/locker/domain/locker.model.ts index 43aabf2..9447392 100644 --- a/apps/api/src/module/locker/domain/locker.model.ts +++ b/apps/api/src/module/locker/domain/locker.model.ts @@ -3,11 +3,20 @@ export class Locker { readonly name: string; + readonly lat: number; + + readonly lng: number; + + readonly location: string; + readonly createdAt: Date; - constructor({ id, name, createdAt }: Locker) { + constructor({ id, name, lat, lng, location, createdAt }: Locker) { this.id = id; this.name = name; + this.lat = lat; + this.lng = lng; + this.location = location; this.createdAt = createdAt; } }