create get and post home api

This commit is contained in:
faris Aljohari
2024-03-10 22:43:02 +03:00
parent a553481c9a
commit 63411cada4
11 changed files with 183 additions and 0 deletions

View File

@ -12,4 +12,8 @@ export class HomeDto {
@IsString()
@IsNotEmpty()
public homeId: string;
@IsString()
@IsNotEmpty()
public homeName: string;
}

View File

@ -22,6 +22,11 @@ export class HomeEntity extends AbstractEntity<HomeDto> {
})
public homeId: string;
@Column({
nullable: false,
})
public homeName: string;
constructor(partial: Partial<HomeEntity>) {
super();
Object.assign(this, partial);